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

No audio self compiled Windows #692

Open
Danfun64 opened this Issue Oct 8, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@Danfun64

Danfun64 commented Oct 8, 2017

I'd have put this bug report in mupen64plus-audio-sdl if it weren't for the fact that you can't post bug reports there for some reason.

I don't know why, but I'm not getting any audio when using a MSYS2/MinGW-W64 self compiled dll of mupen64plus-audio-sdl. It compiles just fine. The only thing i'm sure of is that the "Obtained audio format/frequency differs from requested."

Any suggestions?

@Danfun64

This comment has been minimized.

Show comment
Hide comment
@Danfun64

Danfun64 Oct 9, 2017

Actually, I don't think this issue is with mupen64plus-audio-sdl but sdl in general...

edit: Confirmed, the issue was solved when I downgraded my SDL2 binary from 2.0.6-1 to 2.0.5-2

Danfun64 commented Oct 9, 2017

Actually, I don't think this issue is with mupen64plus-audio-sdl but sdl in general...

edit: Confirmed, the issue was solved when I downgraded my SDL2 binary from 2.0.6-1 to 2.0.5-2

@Danfun64 Danfun64 closed this Oct 9, 2017

@loganmc10

This comment has been minimized.

Show comment
Hide comment
@loganmc10

loganmc10 Oct 9, 2017

Member

It's not a bug in SDL, it is an issue with mupen64plus-audio-sdl

SDL 2.0.6 changed the audio backend on Windows to WASAPI, with that change, the audio format is forced to 32bit floating point samples. Audio-sdl only outputs 16 bit integer samples currently, so it needs to convert the samples to the proper format before feeding them to SDL

Member

loganmc10 commented Oct 9, 2017

It's not a bug in SDL, it is an issue with mupen64plus-audio-sdl

SDL 2.0.6 changed the audio backend on Windows to WASAPI, with that change, the audio format is forced to 32bit floating point samples. Audio-sdl only outputs 16 bit integer samples currently, so it needs to convert the samples to the proper format before feeding them to SDL

@Danfun64 Danfun64 reopened this Oct 9, 2017

@Zapeth

This comment has been minimized.

Show comment
Hide comment
@Zapeth

Zapeth Jun 25, 2018

As a workaround you can call the SDL_OpenAudio() function in sdl_backend.c with parameter NULL instead of &obtained (and also set obtained = desired to avoid problems in the following checks).

This forces SDL to use the specified audio settings (and deals with the conversion specifics internally), as described in the SDL wiki -> https://wiki.libsdl.org/SDL_OpenAudio

Zapeth commented Jun 25, 2018

As a workaround you can call the SDL_OpenAudio() function in sdl_backend.c with parameter NULL instead of &obtained (and also set obtained = desired to avoid problems in the following checks).

This forces SDL to use the specified audio settings (and deals with the conversion specifics internally), as described in the SDL wiki -> https://wiki.libsdl.org/SDL_OpenAudio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment