| Previous | 199869 Revisions | Next |
| r32850 Tuesday 21st October, 2014 at 02:10:30 UTC by R. Belmont |
|---|
| Tell SDL to stop sound when volume is set to max attenuation. (nw) |
| [src/osd/modules/sound] | sdl_sound.c |
| r241361 | r241362 | |
|---|---|---|
| 355 | 355 | _attenuation = -32; |
| 356 | 356 | |
| 357 | 357 | attenuation = _attenuation; |
| 358 | ||
| 359 | if ((attenuation == -32) && (stream_in_initialized)) | |
| 360 | { | |
| 361 | SDL_PauseAudio(1); | |
| 362 | } | |
| 363 | else if (stream_in_initialized) | |
| 364 | { | |
| 365 | SDL_PauseAudio(0); | |
| 366 | } | |
| 358 | 367 | } |
| 359 | 368 | |
| 360 | 369 | //============================================================ |
| https://github.com/mamedev/mame/commit/5912fc0a5b0d1bca7457e4e0377aff300f25612b |
| Previous | 199869 Revisions | Next |