99623fb833
ok pvalchev
24 lines
993 B
Plaintext
24 lines
993 B
Plaintext
$OpenBSD: patch-src_SndSys_cpp,v 1.1 2009/01/25 01:27:23 jakemsr Exp $
|
|
--- src/SndSys.cpp.orig Sun Mar 24 00:49:09 2002
|
|
+++ src/SndSys.cpp Sat Jan 24 04:52:38 2009
|
|
@@ -16,7 +16,7 @@ void Mix_Audio(void *udata, Uint8 *stream, int len)
|
|
|
|
int InitializeSoundSystem()
|
|
{
|
|
- SDL_AudioSpec wanted, obtained;
|
|
+ SDL_AudioSpec wanted;
|
|
|
|
/* Set the audio format */
|
|
// Not all sounds are of the same sampling rate which is why
|
|
@@ -28,8 +28,8 @@ int InitializeSoundSystem()
|
|
wanted.callback = Mix_Audio;
|
|
wanted.userdata = NULL;
|
|
|
|
- /* Open the audio device, forcing the desired format */
|
|
- if ( SDL_OpenAudio(&wanted, &obtained) < 0 ) {
|
|
+ /* Open the audio device, allowing SDL to apply conversions */
|
|
+ if ( SDL_OpenAudio(&wanted, NULL) < 0 ) {
|
|
fprintf(stderr, "InitSoundSystem: Couldn't open audio: %s\n", SDL_GetError());
|
|
fprintf(stderr, "Sound was disabled. \n");
|
|
return(-1);
|