Mercurial > sdl-ios-xcode
comparison src/audio/baudio/SDL_beaudio.cc @ 114:dabc453ce7f7
Now returns an error if unable to open audio on BeOS
Fixed bugs in fullscreen/windowed mode changes, removed duplicated code.
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Fri, 20 Jul 2001 20:07:53 +0000 |
parents | 74212992fb08 |
children | e8157fcb3114 |
comparison
equal
deleted
inserted
replaced
113:e21ac1dd30f1 | 114:dabc453ce7f7 |
---|---|
199 SDL_MaskSignals(&omask); | 199 SDL_MaskSignals(&omask); |
200 audio_obj = new BSoundPlayer(&format, "SDL Audio", FillSound, | 200 audio_obj = new BSoundPlayer(&format, "SDL Audio", FillSound, |
201 NULL, _this); | 201 NULL, _this); |
202 SDL_UnmaskSignals(&omask); | 202 SDL_UnmaskSignals(&omask); |
203 } | 203 } |
204 audio_obj->Start(); | 204 if ( audio_obj->Start() == B_NO_ERROR ) { |
205 audio_obj->SetHasData(true); | 205 audio_obj->SetHasData(true); |
206 } else { | |
207 SDL_SetError("Unable to start Be audio"); | |
208 return(-1); | |
209 } | |
206 | 210 |
207 /* We're running! */ | 211 /* We're running! */ |
208 return(1); | 212 return(1); |
209 } | 213 } |
210 | 214 |