mirror of
https://github.com/holub/mame
synced 2025-05-21 21:29:15 +03:00
Enable wavwrite (and aviwrite) sound even if -nosound is specified.
This commit is contained in:
parent
4a74bdbf24
commit
dc07b3d04a
@ -372,7 +372,7 @@ static TIMER_CALLBACK( sound_update )
|
||||
|
||||
/* force all the speaker streams to generate the proper number of samples */
|
||||
for (speaker_device *speaker = speaker_first(*machine); speaker != NULL; speaker = speaker_next(speaker))
|
||||
speaker->mix(leftmix, rightmix, samples_this_update, !global->enabled || global->nosound_mode);
|
||||
speaker->mix(leftmix, rightmix, samples_this_update, !global->enabled);
|
||||
|
||||
/* now downmix the final result */
|
||||
finalmix_step = video_get_speed_factor();
|
||||
@ -403,6 +403,7 @@ static TIMER_CALLBACK( sound_update )
|
||||
/* play the result */
|
||||
if (finalmix_offset > 0)
|
||||
{
|
||||
if (!global->nosound_mode)
|
||||
osd_update_audio_stream(machine, finalmix, finalmix_offset / 2);
|
||||
video_avi_add_sound(machine, finalmix, finalmix_offset / 2);
|
||||
if (global->wavfile != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user