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

[patch] Mix_OpenAudioDevice support #210

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

[patch] Mix_OpenAudioDevice support #210

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@SDLBugzilla
Copy link
Collaborator

SDLBugzilla commented Feb 11, 2021

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.1
Reported for operating system, platform: All, All

Comments on the original bug report:

On 2015-10-28 21:38:06 +0000, Francisco de la Peña wrote:

Created attachment 2292
Mix_OpenAudioDevice patch

This patch Adds a Mix_OpenAudioDevice function which allows to control device ID, frequency, channel and format changes.

We are using this patch to make timidity and libmodplug work in Emscripten, which uses a 32 bit float audio format and they are not using SDL_ConvertAudio, then allows to force conversion from AUDIO_S16SYS which is supported by them.

This patch is not working properly yet, e.g. it fails to reproduce some wav and ogg files (plays silence instead). Amendments are welcome.

On 2016-01-30 15:03:54 +0000, Francisco de la Peña wrote:

Implemented since https://hg.libsdl.org/SDL_mixer/rev/fb0562cc1559
Thanks, Juha!

@SDLBugzilla SDLBugzilla added the enhancement New feature or request label Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant