olofson / audiality2

A realtime scripted modular audio engine for video games and musical applications.
http://audiality.org/
zlib License
79 stars 5 forks source link

Use the new SDL_OpenAudioDevice() API in SDL2 #340

Closed olofson closed 6 years ago

olofson commented 6 years ago

It appears that SDL2 audio now fails to open on Windows 10, for no obvious reason. This happens with SDL 2.0.7 as well as 2.0.4, which is known to work with A2 1.9.2.

olofson commented 6 years ago

This can happen with various Windows and SDL versions, and the reason is that we're not getting the requested sample format, since we're not strictly demanding that. The solution is to move to the new SDL_OpenAudioDevice() API, which offers more control.