Defined in here since it requires access to methods and variables private to the #AudioEngine class.
More...
#include <AudioEngineTests.h>
|
| static void | checkAudioConsistency (const std::vector< std::shared_ptr< Note > > oldNotes, const std::vector< std::shared_ptr< Note > > newNotes, const QString &sContext, int nPassedFrames, bool bTestAudio=true, float fPassedTicks=0.0) |
| | Takes two instances of Sampler::m_playingNotesQueue and checks whether matching notes have exactly nPassedFrames difference in their SelectedLayerInfo::SamplePosition.
|
| |
| static void | checkTransportPosition (std::shared_ptr< TransportPosition > pPos, const QString &sContext) |
| | Checks the consistency of the transport position pPos by converting the current tick, frame, column, pattern start tick etc.
|
| |
| static std::vector< std::shared_ptr< Note > > | copySongNoteQueue () |
| |
| static void | mergeQueues (std::vector< std::shared_ptr< Note > > *noteList, std::vector< Note * > newNotes) |
| |
| static void | mergeQueues (std::vector< std::shared_ptr< Note > > *noteList, std::vector< std::shared_ptr< Note > > newNotes) |
| | Add every Note in newNotes not yet contained in noteList to the latter.
|
| |
| static int | processTransport (const QString &sContext, int nFrames, long long *nLastLookahead, long long *nLastTransportFrame, long long *nTotalFrames, long *nLastPlayheadTick, double *fLastTickIntervalEnd, bool bCheckLookahead=true) |
| |
| static void | resetSampler (const QString &sContext) |
| |
| static void | throwException (const QString &sMsg) |
| |
| static void | toggleAndCheckConsistency (int nToggleColumn, int nToggleRow, const QString &sContext) |
| | Toggles the grid cell defined by nToggleColumn and nToggleRow twice and checks whether the transport position and the audio processing remains consistent.
|
| |
Defined in here since it requires access to methods and variables private to the #AudioEngine class.
Definition at line 41 of file AudioEngineTests.h.
◆ checkAudioConsistency()
| void checkAudioConsistency |
( |
const std::vector< std::shared_ptr< Note > > | oldNotes, |
|
|
const std::vector< std::shared_ptr< Note > > | newNotes, |
|
|
const QString & | sContext, |
|
|
int | nPassedFrames, |
|
|
bool | bTestAudio = true, |
|
|
float | fPassedTicks = 0.0 ) |
|
staticprivate |
◆ checkTransportPosition()
| void checkTransportPosition |
( |
std::shared_ptr< TransportPosition > | pPos, |
|
|
const QString & | sContext ) |
|
staticprivate |
Checks the consistency of the transport position pPos by converting the current tick, frame, column, pattern start tick etc.
into each other and comparing the results.
- Parameters
-
| pPos | Transport position to check |
| sContext | String identifying the calling function and used for logging |
Definition at line 1590 of file AudioEngineTests.cpp.
◆ copySongNoteQueue()
| std::vector< std::shared_ptr< Note > > copySongNoteQueue |
( |
| ) |
|
|
staticprivate |
◆ mergeQueues() [1/2]
| void mergeQueues |
( |
std::vector< std::shared_ptr< Note > > * | noteList, |
|
|
std::vector< Note * > | newNotes ) |
|
staticprivate |
◆ mergeQueues() [2/2]
| void mergeQueues |
( |
std::vector< std::shared_ptr< Note > > * | noteList, |
|
|
std::vector< std::shared_ptr< Note > > | newNotes ) |
|
staticprivate |
◆ processTransport()
| int processTransport |
( |
const QString & | sContext, |
|
|
int | nFrames, |
|
|
long long * | nLastLookahead, |
|
|
long long * | nLastTransportFrame, |
|
|
long long * | nTotalFrames, |
|
|
long * | nLastPlayheadTick, |
|
|
double * | fLastTickIntervalEnd, |
|
|
bool | bCheckLookahead = true ) |
|
staticprivate |
◆ resetSampler()
| void resetSampler |
( |
const QString & | sContext | ) |
|
|
staticprivate |
◆ testFrameToTickConversion()
| void testFrameToTickConversion |
( |
| ) |
|
|
static |
Unit test checking for consistency when converting frames to ticks and back.
Definition at line 45 of file AudioEngineTests.cpp.
◆ testHumanization()
| void testHumanization |
( |
| ) |
|
|
static |
Unit test checking that custom note properties take effect and that humanization works as expected.
Definition at line 1226 of file AudioEngineTests.cpp.
◆ testLoopMode()
Unit test checking that loop mode as well as deactivating it works.
Definition at line 432 of file AudioEngineTests.cpp.
◆ testNoteEnqueuing()
| void testNoteEnqueuing |
( |
| ) |
|
|
static |
Unit test checking that all notes in a song are picked up once.
Definition at line 842 of file AudioEngineTests.cpp.
◆ testNoteEnqueuingTimeline()
| void testNoteEnqueuingTimeline |
( |
| ) |
|
|
static |
Checks whether the order of notes enqueued and processed by the Sampler is consistent on tempo change.
Definition at line 1125 of file AudioEngineTests.cpp.
◆ testSongSizeChange()
| void testSongSizeChange |
( |
| ) |
|
|
static |
Unit test checking consistency of transport position when playback was looped at least once and the song size is changed by toggling a pattern.
Definition at line 704 of file AudioEngineTests.cpp.
◆ testSongSizeChangeInLoopMode()
| void testSongSizeChangeInLoopMode |
( |
| ) |
|
|
static |
Unit test checking consistency of transport position when playback was looped at least once and the song size is changed by toggling a pattern.
Definition at line 753 of file AudioEngineTests.cpp.
◆ testTransportProcessing()
| void testTransportProcessing |
( |
| ) |
|
|
static |
Unit test checking the incremental update of the transport position in audioEngine_process().
Definition at line 97 of file AudioEngineTests.cpp.
◆ testTransportProcessingTimeline()
| void testTransportProcessingTimeline |
( |
| ) |
|
|
static |
More detailed test of the transport and playhead integrity in case Timeline/tempo markers are involved.
Definition at line 294 of file AudioEngineTests.cpp.
◆ testTransportRelocation()
| void testTransportRelocation |
( |
| ) |
|
|
static |
Unit test checking the relocation of the transport position in audioEngine_process().
Definition at line 642 of file AudioEngineTests.cpp.
◆ throwException()
| void throwException |
( |
const QString & | sMsg | ) |
|
|
staticprivate |
◆ toggleAndCheckConsistency()
| void toggleAndCheckConsistency |
( |
int | nToggleColumn, |
|
|
int | nToggleRow, |
|
|
const QString & | sContext ) |
|
staticprivate |
Toggles the grid cell defined by nToggleColumn and nToggleRow twice and checks whether the transport position and the audio processing remains consistent.
Definition at line 1769 of file AudioEngineTests.cpp.