diff options
author | Wohlstand <admin@wohlnet.ru> | 2020-09-28 19:35:24 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2020-09-28 19:35:24 +0300 |
commit | 455ac435481558c09ee1824b1e6dcc43f277527d (patch) | |
tree | 641268a2117543cd1a66ec9c4b3e3d790170f22e /utils/adlmidi-2/midiplay.cc | |
parent | 595a9dc35ad1c41dac96d7fd7e3b3c7ccaac9947 (diff) | |
parent | baefee8dbe094a05ae89b0f9b909d19982711dc7 (diff) | |
download | libADLMIDI-455ac435481558c09ee1824b1e6dcc43f277527d.tar.gz libADLMIDI-455ac435481558c09ee1824b1e6dcc43f277527d.tar.bz2 libADLMIDI-455ac435481558c09ee1824b1e6dcc43f277527d.zip |
Merge branch 'master' of github.com:Wohlstand/libADLMIDI
Diffstat (limited to 'utils/adlmidi-2/midiplay.cc')
-rw-r--r-- | utils/adlmidi-2/midiplay.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/adlmidi-2/midiplay.cc b/utils/adlmidi-2/midiplay.cc index 8a39f2f..b8f9551 100644 --- a/utils/adlmidi-2/midiplay.cc +++ b/utils/adlmidi-2/midiplay.cc @@ -1154,7 +1154,7 @@ static void SendStereoAudio(unsigned long count, short* samples) //static unsigned counter = 0; if(++counter < 8000) return; -#if defined(__WIN32__) && 0 +#if defined(_WIN32) && 0 // Cheat on dosbox recording: easier on the cpu load. {count*=2; std::vector<short> AudioBuffer(count); @@ -1185,7 +1185,7 @@ static void SendStereoAudio(unsigned long count, short* samples) reverb_data.chan[w].Process(count); // Convert to signed 16-bit int format and put to playback queue -#ifdef __WIN32__ +#ifdef _WIN32 std::vector<short> AudioBuffer(count*2); const size_t pos = 0; #else @@ -1299,7 +1299,7 @@ static void SendStereoAudio(unsigned long count, short* samples) } } #endif -#ifndef __WIN32__ +#ifndef _WIN32 AudioBuffer_lock.Unlock(); #else if(!WritePCMfile) @@ -1491,7 +1491,7 @@ bool AdlInstrumentTester::HandleInputChar(char ch) DoNoteOff(); break; case 3: -#if !((!defined(__WIN32__) || defined(__CYGWIN__)) && !defined(__DJGPP__)) +#if !((!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__)) case 27: #endif return false; |