SDL_OpenAudio: WASAPI can´t initialize audio client: CoInitialize has not been called


#1

Hi there,
I´m new in the site and with SDL. I was trying this example


with the SDL version 2.0.7 downloaded from here
https://www.libsdl.org/download-2.0.php
under windows 7 Pro.
When I run the program I get the following error
WASAPI can´t initialize audio client: CoInitialize has not been called
in this part of the code
if(SDL_OpenAudio(&wanted_spec, &spec) < 0) {
fprintf(stderr, “SDL_OpenAudio: %s\n”, SDL_GetError());
return -1;
}
I´m building the code with qt5 using VisualStudio 2013 in x64

Thanks in advance for any help