Lines Matching defs:audio
24 /* Allow access to the audio stream on BeOS */
39 /* Audio driver functions */
46 /* Audio driver bootstrap functions */
96 /* The BeOS callback for handling the audio buffer */
100 SDL_AudioDevice *audio = (SDL_AudioDevice *)device;
103 SDL_memset(stream, audio->spec.silence, len);
105 /* Only do soemthing if audio is enabled */
106 if ( ! audio->enabled )
109 if ( ! audio->paused ) {
110 if ( audio->convert.needed ) {
111 SDL_mutexP(audio->mixer_lock);
112 (*audio->spec.callback)(audio->spec.userdata,
113 (Uint8 *)audio->convert.buf,audio->convert.len);
114 SDL_mutexV(audio->mixer_lock);
115 SDL_ConvertAudio(&audio->convert);
116 SDL_memcpy(stream,audio->convert.buf,audio->convert.len_cvt);
118 SDL_mutexP(audio->mixer_lock);
119 (*audio->spec.callback)(audio->spec.userdata,
121 SDL_mutexV(audio->mixer_lock);
127 /* Dummy functions -- we don't use thread-based audio */
159 /* Parse the audio format and fill the Be raw audio format */
193 SDL_SetError("Unsupported audio format");
204 /* Calculate the final parameters for this audio specification */
207 /* Subscribe to the audio stream (creates a new thread) */
210 audio_obj = new BSoundPlayer(&format, "SDL Audio", FillSound,
217 SDL_SetError("Unable to start Be audio");