00001
00011 #ifndef __Sound_H__
00012 #define __Sound_H__
00013
00014
00015
00016
00017 class Asset;
00018
00019
00020 class Sound
00021 {
00022 public:
00026 Sound(
00027 const Asset& asset
00028 );
00029
00033 ~Sound();
00034
00035
00036
00037 void Play(float priority = 0, bool looping = false) const;
00038
00039 const void* GetData() const;
00040
00045 int GetChannels() const;
00046
00051 int GetFrequency() const;
00052
00056 int GetBitsPerSample() const;
00057
00063 int GetSize() const;
00064
00065 private:
00066 void* data_;
00067 int channels_;
00068 int frequency_;
00069 int bitsPerSample_;
00070 int size_;
00071
00072 };
00073
00074 #endif
00075