Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound issues with SDL 2.0.6 #2643

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

Sound issues with SDL 2.0.6 #2643

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 2.0.6
Reported for operating system, platform: Other, x86

Comments on the original bug report:

On 2017-10-02 21:12:16 +0000, Simon Howard wrote:

Please see these bug reports for details:

chocolate-doom/chocolate-doom#945
bradharding/doomretro#410

I'm seeing conflicting reports that SDL either crashes or plays no sound with that SDL 2.0.6 (2.0.5 does not have this problem).

Using a larger audio buffer appears to resolve the problem, but it would be good if it was fixed on the SDL side. Apparently a new SDL_mixer release might also fix the problem?

On 2017-10-02 22:41:36 +0000, Sam Lantinga wrote:

Ryan, can you look at this ASAP?

On 2017-10-03 05:40:00 +0000, Ozkan Sezer wrote:

Can this be related to bug # 3848 or bug # 3849? (Haven't looked at your code.)

On 2017-10-03 06:50:00 +0000, David Carlier wrote:

Hi here the person who posted the error on GitHub.
It seems very likely it is, got a segmentation fault for similar reason, the 3849 leads me to think I was not extremely far from the truth.

On 2017-10-03 07:00:25 +0000, David Carlier wrote:

On Arch Linux, unlike Debian based distros, there is no separated packages with debug symbols but I started to have a look at the code and it seems there is quite a change between 2.0.5 and 2.0.6 ... could this be, somewhat, related to it ?

http://hg.libsdl.org/SDL/file/8df7a59b5528/src/audio/SDL_audiocvt.c#l807

On 2017-10-04 09:28:49 +0000, janisozaur wrote:

bug # 3848 and bug # 3849 do cover both issues spotted in 2.0.6 release. I think this report can be considered a duplicate of those two.

On 2017-10-11 03:02:46 +0000, Justin Jacobs wrote:

I think I've also encountered this bug. I've posted a trace here: https://github.com/clintbellanger/flare-engine/issues/1516#issuecomment-335667432

It appears that this bug happens when resampling sounds from high -> low frequencies. In our case, we're going from 44100Hz to 22050Hz. Using a higher frequency for Mix_OpenAudio() results in no crash.

On 2017-10-12 15:43:05 +0000, Sam Lantinga wrote:

Can you check to see if this is fixed in the latest snapshot?
http://www.libsdl.org/tmp/SDL-2.0.zip

Thanks!

On 2017-10-12 16:12:58 +0000, Justin Jacobs wrote:

The issue I was having appears to have been fixed in that snapshot. Nice work!

On 2017-10-12 16:18:01 +0000, Ryan C. Gordon wrote:

I think this is fixed along with the other mentioned reports, so I'm resolving this bug.

--ryan.

On 2017-10-27 17:19:11 +0000, Simon Howard wrote:

Multiple reports from Chocolate Doom users are that this is still not fixed.

chocolate-doom/chocolate-doom#945

On 2017-10-30 02:44:50 +0000, Eric Wasylishen wrote:

It looks like a bug in Chocolate Doom (buffer passed to SDL_ConvertAudio is smaller than the required len*len_mult), see my comment on chocolate-doom/chocolate-doom#945

On 2017-10-31 09:59:34 +0000, David Carlier wrote:

The question is, since the change from SDL_memcpy to SDL_memmove did not fully fix it (I think personally it s a good change to keep), and if the code consumers really need to allocate more memory than with versions <= 2.0.6, assuming it is intended and not a edgy bug, would it be relevant to mention it in changelogs, relevant C header file ... ? because not obvious unless you read the source code to realise it has been rewritten :-)

On 2017-11-01 04:43:52 +0000, Simon Howard wrote:

11 is correct. It looks like this was indeed a bug in Chocolate Doom, albeit one that appears to only have been exposed due to the recent audio changes.

A fix has now been merged in Chocolate Doom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant