Mercurial > sdl-ios-xcode
diff src/audio/nto/SDL_nto_audio.c @ 283:3d8b6b9f1e18
Date: Mon, 18 Feb 2002 16:46:59 +1200
From: Julian Kinraid <jkinraid@clear.net.nz>
Subject: Patches for photon port of SDL
Hi,
A couple more patches for photon and the nto audio. Adds mouse grabbing
support, fixed cursor images, unicode keyboard events (though no unicode
data on kye release, is that a problem?), hopefully fixing some audio
lag problems, and a few other fixes.
Thanks,
Julian Kinraid
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 20 Feb 2002 01:05:51 +0000 |
parents | e8157fcb3114 |
children | f6ffac90895c |
line wrap: on
line diff
--- a/src/audio/nto/SDL_nto_audio.c Wed Feb 20 01:02:33 2002 +0000 +++ b/src/audio/nto/SDL_nto_audio.c Wed Feb 20 01:05:51 2002 +0000 @@ -55,7 +55,7 @@ #define DEFAULT_CPARAMS_VOICES 1 #define DEFAULT_CPARAMS_FRAG_SIZE 4096 //was 512 #define DEFAULT_CPARAMS_FRAGS_MIN 1 -#define DEFAULT_CPARAMS_FRAGS_MAX -1 +#define DEFAULT_CPARAMS_FRAGS_MAX 1 /* Open the audio device for playback, and don't block if busy */ #define OPEN_FLAGS SND_PCM_OPEN_PLAYBACK @@ -384,9 +384,9 @@ } /* enable count status parameter */ - if ((rval = snd_plugin_set_disable(audio_handle, PLUGIN_DISABLE_MMAP))<0) + if ((rval = snd_pcm_plugin_set_disable(audio_handle, PLUGIN_DISABLE_MMAP))<0) { - SDL_SetError("snd_plugin_set_disable failed: %s\n", snd_strerror(rval)); + SDL_SetError("snd_pcm_plugin_set_disable failed: %s\n", snd_strerror(rval)); return(-1); }