Skip to content

Commit

Permalink
Merge pull request cebix#241 from rakslice/remove_mixaudio_volume
Browse files Browse the repository at this point in the history
bin/cue: removed unused MixAudio volume param
  • Loading branch information
kanjitalk755 authored Jan 8, 2025
2 parents 51e3a90 + 3eff56b commit 3498324
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BasiliskII/src/SDL/audio_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static void stream_func(void *arg, uint8 *stream, int stream_len)
}

#if defined(BINCUE)
MixAudio_bincue(stream, stream_len, get_audio_volume());
MixAudio_bincue(stream, stream_len);
#endif

}
Expand Down
2 changes: 1 addition & 1 deletion BasiliskII/src/SDL/audio_sdl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ static void SDLCALL stream_func(void *, SDL_AudioStream *stream, int stream_len,
//int r = SDL_GetAudioStreamFormat(stream, NULL, &audio_spec);// little endianが帰ってくる
SDL_MixAudio(dst, src, audio_spec.format, stream_len, get_audio_volume());
#if defined(BINCUE)
MixAudio_bincue(dst, stream_len, get_audio_volume());
MixAudio_bincue(dst, stream_len);
#endif
SDL_PutAudioStreamData(stream, dst, stream_len);
}
Expand Down
2 changes: 1 addition & 1 deletion BasiliskII/src/bincue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ bool HaveAudioToMix_bincue() {
return currently_playing != NULL;
}

void MixAudio_bincue(uint8 *stream, int stream_len, int volume)
void MixAudio_bincue(uint8 *stream, int stream_len)
{
if (currently_playing) {

Expand Down
2 changes: 1 addition & 1 deletion BasiliskII/src/include/bincue.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern void CDGetVol_bincue(void *, uint8 *, uint8 *);
#ifdef USE_SDL_AUDIO
extern void OpenAudio_bincue(int, int, int, uint8, int);
extern bool HaveAudioToMix_bincue(void);
extern void MixAudio_bincue(uint8 *, int, int);
extern void MixAudio_bincue(uint8 *, int);
extern void CloseAudio_bincue(void);
#endif

Expand Down

0 comments on commit 3498324

Please sign in to comment.