Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ITADSP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institute of Technical Acoustics (ITA)
ITADSP
Commits
62c3c542
Commit
62c3c542
authored
8 years ago
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Downloads
Patches
Plain Diff
Fixing interface problems with SIMO VDL
parent
d5cbfac6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ITASIMOVariableDelayLine.h
+1
-0
1 addition, 0 deletions
include/ITASIMOVariableDelayLine.h
src/ITASIMOVariableDelayLine.cpp
+8
-10
8 additions, 10 deletions
src/ITASIMOVariableDelayLine.cpp
with
9 additions
and
10 deletions
include/ITASIMOVariableDelayLine.h
+
1
−
0
View file @
62c3c542
...
...
@@ -29,6 +29,7 @@
//! Vorwärtsdeklarationen
class
ITASampleBuffer
;
class
ITASampleFrame
;
class
IITAVDLInterpolationRoutine
;
//! Single-input multiple-output block-based variable delay line
...
...
This diff is collapsed.
Click to expand it.
src/ITASIMOVariableDelayLine.cpp
+
8
−
10
View file @
62c3c542
...
...
@@ -221,16 +221,19 @@ void CITASIMOVariableDelayLine::SetDelayTime( const int iCursorID, const float f
SetDelaySamples
(
iCursorID
,
fDelaySeconds
*
(
float
)
m_dSampleRate
);
}
void
CITASIMOVariableDelayLine
::
ReadBlock
(
const
int
iID
,
ITASampleBuffer
*
psbOutput
)
void
CITASIMOVariableDelayLine
::
ReadBlock
(
const
int
i
Cursor
ID
,
ITASampleBuffer
*
psbOutput
)
{
if
(
!
CursorExists
(
iCursorID
)
)
ITA_EXCEPT1
(
INVALID_PARAMETER
,
"Could not find requested read cursor"
);
m_swProcess
.
start
();
// Lokale Kopie des gewnschten Algorithmus (Atomare Membervariable)
int
iAlgorithm
=
m_iSwitchingAlgorithm
;
// Lokale Kopie der neuen Verzgerung
float
fCurrentDelay
=
m_
fCurrentDelay
;
float
fNewDelay
=
m_
fNewDelay
;
float
fCurrentDelay
=
m_
lUserCursors
[
iCursorID
].
fOldReadCursorSamples
;
float
fNewDelay
=
m_
lUserCursors
[
iCursorID
].
fNewReadCursorSamples
;
// --= Keine nderung der Verzgerung (fr rasant schnelle statische Szenen) =--
...
...
@@ -383,19 +386,14 @@ void CITASIMOVariableDelayLine::ReadBlock( const int iID, ITASampleBuffer* psbOu
}
// end case switch
// Neue Verzgerung speichern
m_
fCurrentDelay
=
fNewDelay
;
m_
lUserCursors
[
iCursorID
].
fOldReadCursorSamples
=
fNewDelay
;
// Schreibzeiger inkrementieren
// (Hinweis: Der Schreibzeiger ist immer Vielfaches der Blocklnge)
m_iWriteCursor
=
(
m_iWriteCursor
+
m_iBlockLength
)
%
m_iVDLBufferSize
;
// Zeitnahme
double
t
=
m_swProcess
.
stop
();
if
(
t
>
m_iBlockLength
/
m_dSampleRate
)
{
m_iNumberOfDropouts
++
;
}
double
t
=
m_swProcess
.
stop
();
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment