aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2017-12-21 03:03:42 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2017-12-21 03:03:42 +0300
commit51830f29b68e60f4c5f748d14abe9672929d136e (patch)
treea366cafc095ae2ed96ee0d5d9461a6c787a5cada /src
parentea817e9192c4c749701f89844b7a29c0616193b1 (diff)
downloadlibADLMIDI-51830f29b68e60f4c5f748d14abe9672929d136e.tar.gz
libADLMIDI-51830f29b68e60f4c5f748d14abe9672929d136e.tar.bz2
libADLMIDI-51830f29b68e60f4c5f748d14abe9672929d136e.zip
Remove no more needed "device" argument from SendStereoAudio
Diffstat (limited to 'src')
-rw-r--r--src/adlmidi.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index 55825a4..3ad4508 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -504,8 +504,7 @@ ADLMIDI_EXPORT void adl_setDebugMessageHook(struct ADL_MIDIPlayer *device, ADL_D
-inline static void SendStereoAudio(MIDIplay::Setup &device,
- int &samples_requested,
+inline static void SendStereoAudio(int &samples_requested,
ssize_t &in_size,
short *_in,
ssize_t out_pos,
@@ -606,7 +605,7 @@ ADLMIDI_EXPORT int adl_play(ADL_MIDIPlayer *device, int sampleCount, short *out)
}
}
/* Process it */
- SendStereoAudio(setup, sampleCount, in_generatedStereo, out_buf, gotten_len, out);
+ SendStereoAudio(sampleCount, in_generatedStereo, out_buf, gotten_len, out);
left -= (int)in_generatedPhys;
gotten_len += (in_generatedPhys) /* - setup.stored_samples*/;
@@ -696,7 +695,7 @@ ADLMIDI_EXPORT int adl_generate(struct ADL_MIDIPlayer *device, int sampleCount,
}
}
/* Process it */
- SendStereoAudio(setup, sampleCount, in_generatedStereo, out_buf, gotten_len, out);
+ SendStereoAudio(sampleCount, in_generatedStereo, out_buf, gotten_len, out);
left -= (int)in_generatedPhys;
gotten_len += (in_generatedPhys) /* - setup.stored_samples*/;