diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-10-25 03:01:50 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-10-25 03:01:50 +0300 |
commit | 0401ee9f58ea842cb4aef687e8e107380d46445c (patch) | |
tree | 900ba7dad4b6bb70bad88c401cff1494884de2bb /utils | |
parent | 6783770a8533dd099b39c51a5c3f7f5f4000b4bc (diff) | |
download | libADLMIDI-0401ee9f58ea842cb4aef687e8e107380d46445c.tar.gz libADLMIDI-0401ee9f58ea842cb4aef687e8e107380d46445c.tar.bz2 libADLMIDI-0401ee9f58ea842cb4aef687e8e107380d46445c.zip |
Clean-up
- Move all private variables into MIDIplay class away from public ADL_MIDIPlayer structure
- Comment out most of legacy code
- Implement new-style ReadVarLenEx for error-checked var-len value reading process
TODO: Stabilize this and implement missing fields and API calls (meta-data retreiving)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/midiplay/adlmidiplay.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/midiplay/adlmidiplay.cpp b/utils/midiplay/adlmidiplay.cpp index 45e1cf9..da04853 100644 --- a/utils/midiplay/adlmidiplay.cpp +++ b/utils/midiplay/adlmidiplay.cpp @@ -284,7 +284,7 @@ int main(int argc, char **argv) SDL_PauseAudio(0); #ifdef DEBUG_SEEKING_TEST - int delayBeforeSeek = 20; + int delayBeforeSeek = 50; std::fprintf(stdout, "DEBUG: === Random position set test is active! ===\n"); std::fflush(stdout); #endif @@ -316,7 +316,7 @@ int main(int argc, char **argv) #ifdef DEBUG_SEEKING_TEST if(delayBeforeSeek-- <= 0) { - delayBeforeSeek = rand() % 20; + delayBeforeSeek = rand() % 50; double seekTo = double((rand() % int(adl_totalTimeLength(myDevice)) - delayBeforeSeek - 1 )); adl_positionSeek(myDevice, seekTo); } |