Commits

Anonymous committed cf9d85b

mixer uses requested format/size

  • Participants
  • Parent commits 5a0b284

Comments (0)

Files changed (1)

 		if(SDL_InitSubSystem(SDL_INIT_AUDIO) == -1)
 			return PyInt_FromLong(0);
 
-		if(Mix_OpenAudio(freq, size, stereo, 1024) == -1)
+		if(Mix_OpenAudio(freq, (Uint16)size, stereo, 1024) == -1)
 		{
 			SDL_QuitSubSystem(SDL_INIT_AUDIO);
 			return PyInt_FromLong(0);