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/AudioDescriptor.h

Diff revisions: vs.
  @@ -30,37 +30,37 @@
30 30
31 31 class AudioDescriptor : public Resource{
32 32 public:
33 - AudioDescriptor(const stringImpl& audioFile) : Resource(audioFile),
33 + AudioDescriptor(const stringImpl& audioFile) : Resource(audioFile),
34 34 _audioFile(audioFile),
35 - _is3D(false), _volume(100),
36 - _frequency(44.2f), _bitDepth(16),
37 - _channelId(-1), _isLooping(false)
38 - {
39 - }
40 -
41 - ~AudioDescriptor() {}
42 -
43 - bool unload() {return true;}
44 - inline const stringImpl& getAudioFile() {return _audioFile;}
45 - inline bool& isLooping() {return _isLooping;}
46 - inline bool& is3D() {return _is3D;}
47 -
48 - inline void setVolume(I8 value) {_volume = value;}
49 - inline I32 getVolume() {return _volume;}
50 -
51 - inline void setFrequency(F32 value) {_frequency = value;}
52 - inline F32 getFrequency() {return _frequency;}
53 -
54 - inline void setBitDepth(I8 bitDepth) {_bitDepth = bitDepth;}
55 - inline I8 getBitDepth() {return _bitDepth;}
56 - inline void setChannel(I8 id) {_channelId = id;}
57 - inline I8 getChannel() {return _channelId;}
35 + _is3D(false), _volume(100),
36 + _frequency(44.2f), _bitDepth(16),
37 + _channelId(-1), _isLooping(false)
38 + {
39 + }
40 +
41 + ~AudioDescriptor() {}
42 +
43 + bool unload() {return true;}
44 + inline const stringImpl& getAudioFile() {return _audioFile;}
45 + inline bool& isLooping() {return _isLooping;}
46 + inline bool& is3D() {return _is3D;}
47 +
48 + inline void setVolume(I8 value) {_volume = value;}
49 + inline I32 getVolume() {return _volume;}
50 +
51 + inline void setFrequency(F32 value) {_frequency = value;}
52 + inline F32 getFrequency() {return _frequency;}
53 +
54 + inline void setBitDepth(I8 bitDepth) {_bitDepth = bitDepth;}
55 + inline I8 getBitDepth() {return _bitDepth;}
56 + inline void setChannel(I8 id) {_channelId = id;}
57 + inline I8 getChannel() {return _channelId;}
58 58
59 59 private:
60 - bool _isLooping, _is3D;
61 - F32 _frequency;
62 - I8 _bitDepth, _channelId,_volume;
63 - stringImpl _audioFile;
60 + bool _isLooping, _is3D;
61 + F32 _frequency;
62 + I8 _bitDepth, _channelId,_volume;
63 + stringImpl _audioFile;
64 64 };
65 65
66 66 }; //namespace Divide