Increased robustness of audio module initialization (see issue #646.) Also changed Source:play to return a boolean indicating success.

This commit is contained in:
Alex Szpakowski
2014-01-29 05:24:47 -04:00
parent 7ef0a6b576
commit a49c2a88c1
14 changed files with 83 additions and 47 deletions
+1 -2
View File
@@ -48,8 +48,7 @@ public:
love::audio::Source *newSource(love::sound::SoundData *soundData);
int getSourceCount() const;
int getMaxSources() const;
void play(love::audio::Source *source);
void play();
bool play(love::audio::Source *source);
void stop(love::audio::Source *source);
void stop();
void pause(love::audio::Source *source);