The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
SDL HG & SDL_QueueAudio API
Gabriele Greco
Guest
Posted: Tue Sep 22, 2015 8:16 am
I found I can use the new SDL_QueueAudio API only opening audio with SDL_OpenAudio(), that's because you need to pass NULL as callback to be able to use the new API.
If I use SDL_OpenAudioDevice and pass NULL as want.func SDL_OpenAudioDevice fails to create the device:
SDL_GetError() -> SDL_OpenAudio() passed a NULL callback
I've tried with the HG head (today) version, but I fear this (small) problem is also in the 2.0.4
--
Ing. Gabriele Greco, DARTS Engineering
Tel: +39-0100980150 Â Fax: +39-0100980184
s-mail: Piazza Della Vittoria 9/3 - 16121 GENOVA (ITALY)
SDL HG & SDL_QueueAudio API
Gabriele Greco
Guest
Posted: Tue Sep 22, 2015 12:34 pm
On Tue, Sep 22, 2015 at 10:16 AM, Gabriele Greco wrote:
Quote:
I found I can use the new SDL_QueueAudio API only opening audio with SDL_OpenAudio(), that's because you need to pass NULL as callback to be able to use the new API.
Please ignore this, I had a dirty setup where the library or the header was of a pre 2.0.4 version.
Â