From 51830f29b68e60f4c5f748d14abe9672929d136e Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Thu, 21 Dec 2017 03:03:42 +0300 Subject: Remove no more needed "device" argument from SendStereoAudio --- src/adlmidi.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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*/; -- cgit v1.2.3