Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 336 vs 337 for /trunk/Source Code/Platform/Audio/Headers/SFXDevice.h

Diff revisions: vs.
  @@ -33,30 +33,30 @@
33 33
34 34 public:
35 35
36 - inline ErrorCode initAudioApi() { return _api.initAudioApi(); }
37 - inline void closeAudioApi() { _api.closeAudioApi(); }
36 + inline ErrorCode initAudioApi() { return _api.initAudioApi(); }
37 + inline void closeAudioApi() { _api.closeAudioApi(); }
38 38
39 - inline void playSound(AudioDescriptor* sound){_api.playSound(sound);}
40 - inline void playMusic(AudioDescriptor* music){_api.playMusic(music);}
39 + inline void playSound(AudioDescriptor* sound){_api.playSound(sound);}
40 + inline void playMusic(AudioDescriptor* music){_api.playMusic(music);}
41 41
42 - inline void pauseMusic() {_api.pauseMusic();}
43 - inline void stopMusic() {_api.stopMusic();}
44 - inline void stopAllSounds() {_api.stopAllSounds();}
42 + inline void pauseMusic() {_api.pauseMusic();}
43 + inline void stopMusic() {_api.stopMusic();}
44 + inline void stopAllSounds() {_api.stopAllSounds();}
45 45
46 - inline void setMusicVolume(I8 value){_api.setMusicVolume(value);}
47 - inline void setSoundVolume(I8 value){_api.setSoundVolume(value);}
46 + inline void setMusicVolume(I8 value){_api.setMusicVolume(value);}
47 + inline void setSoundVolume(I8 value){_api.setSoundVolume(value);}
48 48
49 49 private:
50 - SFXDevice(): _api(SDL_API::getOrCreateInstance()) //Defaulting to SDL if no api has been defined
51 - {
52 - }
53 -
54 - ~SFXDevice()
55 - {
56 - SDL_API::destroyInstance();
57 - }
50 + SFXDevice(): _api(SDL_API::getOrCreateInstance()) //Defaulting to SDL if no api has been defined
51 + {
52 + }
53 +
54 + ~SFXDevice()
55 + {
56 + SDL_API::destroyInstance();
57 + }
58 58
59 - AudioAPIWrapper& _api;
59 + AudioAPIWrapper& _api;
60 60
61 61 END_SINGLETON
62 62