We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2225 - SDL_PauseAudio(false) never returns
Summary: SDL_PauseAudio(false) never returns
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: audio (show other bugs)
Version: 2.0.1
Hardware: x86 Windows (XP)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-11 15:34 UTC by Daniel Knobe
Modified: 2014-07-08 07:34 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Knobe 2013-11-11 15:34:58 UTC
Hallo,
I have found a bug in SDL 2.0.1 and may be below.
Calling the function
SDL_PauseAudio(false) 
twice under some WinXP configurations leads to a problem. The second call never returns.

I know this function is deprecated but I think the compatibility layer should work, too^^.

Best regards
Daniel
Comment 1 Sam Lantinga 2013-11-23 10:07:43 UTC
Hey Ryan, can you look at this really quick?
Comment 2 Andreas Schiffler 2014-07-08 06:40:19 UTC
Recommend to close this bug as no repro.

Added test automation for this case which can be run using
  ./testautomation.exe --filter audio_pauseUnpauseAudio
and cannot verify this issue on Win7/cygwin build.

$ ./testautomation.exe --filter audio_pauseUnpauseAudio
INFO:  07/07/14 23:35:56: ::::: Test Run /w seed '0CZWFAXDEWQTNSWA' started
...
INFO:  07/07/14 23:35:56: ----- Test Case 1.15: 'audio_pauseUnpauseAudio' started
...
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_AudioInit('directsound')': Pass
...
INFO:  07/07/14 23:35:56: Pause/Unpause iteration: 1
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(0), call 1': Pass
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(0), call 2': Pass
INFO:  07/07/14 23:35:56: Assert 'Verify callback counter; expected: >0 got: 1': Passed
INFO:  07/07/14 23:35:56: Assert 'Verify callback length; expected: >0 got: 16384': Passed
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(1), call 1': Pass
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(339), call 2': Pass
INFO:  07/07/14 23:35:56: Assert 'Verify callback counter; expected: 1, got: 1': Passed
INFO:  07/07/14 23:35:56: Pause/Unpause iteration: 2
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(0), call 1': Pass
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(0), call 2': Pass
INFO:  07/07/14 23:35:56: Assert 'Verify callback counter; expected: >0 got: 1': Passed
INFO:  07/07/14 23:35:56: Assert 'Verify callback length; expected: >0 got: 16384': Passed
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(1), call 1': Pass
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(4548), call 2': Pass
INFO:  07/07/14 23:35:56: Assert 'Verify callback counter; expected: 1, got: 1': Passed
INFO:  07/07/14 23:35:56: Pause/Unpause iteration: 3
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(0), call 1': Pass
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(0), call 2': Pass
INFO:  07/07/14 23:35:56: Assert 'Verify callback counter; expected: >0 got: 1': Passed
INFO:  07/07/14 23:35:56: Assert 'Verify callback length; expected: >0 got: 16384': Passed
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(1), call 1': Pass
INFO:  07/07/14 23:35:56: Assert 'Call to SDL_PauseAudio(2721), call 2': Pass
INFO:  07/07/14 23:35:56: Assert 'Verify callback counter; expected: 1, got: 1': Passed
...
INFO:  07/07/14 23:36:01: Total Run runtime: 0.0 sec
INFO:  07/07/14 23:36:01: Run Summary: Total=1 Passed=1 Failed=0 Skipped=0
INFO:  07/07/14 23:36:01: >>> Run /w seed '0CZWFAXDEWQTNSWA': Passed
INFO:  07/07/14 23:36:01: Exit code: 0
Comment 3 Sam Lantinga 2014-07-08 07:34:49 UTC
This works in the test case Andreas created. Please reopen this bug if you're still seeing the issue.