Re: [hatari-devel] SDL1 vs. SDL2 sound pausing

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On 09/07/2016 10:43 PM, Jerome Vernet wrote:
Le 07/09/2016 à 19:51, Eero Tamminen a écrit :
Does it help if you use:
    https://wiki.libsdl.org/SDL_PauseAudioDevice

To pause audio buffer playback while emulation is paused
(i.e. doesn't fill audio buffer)?

MacOsx GUI do not call any SDL function directly, only thru Hatari core.
The problem is that clicking on a menu title such "File" do not call
anything, and cannot call anything.

So as I cannot call anything, I can't pause anything myself.... Only
when selecting a menu like "Open disk A" under File menu.

I read the SDL2 docs & Hatari source a bit and while
Hatari uses the legacy SDL_PauseAudio() function, that
should work fine with SDL2.  It does work fine for me
with SDL2, sound is paused when emulation is paused.

I suspect that your SDL2 version is buggy.


	- Eero



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/