公共成员函数 |
|
GeSndInfo () | |
GeSndInfo ( BaseSound *bs) | |
Int32 | GetChannelCount (void) const |
Int32 | GetBitsPerChannel (void) const |
Float | GetSampleRate (void) const |
Int32 | GetSampleCount (void) const |
BaseTime | GetLength (void) const |
Private Attributes |
|
Int32 | channel_cnt |
Int32 | bits_per_channel |
Float | sample_rate |
Int32 | sample_cnt |
Char * | data |
GeSndInfo | ( | ) |
Default constructor.
|
explicit |
Constructs with a BaseSound .
[in] | bs | The sound to initialize from. |
Int32 GetChannelCount | ( | void | ) | const |
Gets the the number of channels.
Int32 GetBitsPerChannel | ( | void | ) | const |
Gets the number of bits per channel.
Float GetSampleRate | ( | void | ) | const |
Gets the sample rate.
Int32 GetSampleCount | ( | void | ) | const |
Gets the the duration/length of the sound in samples.
BaseTime GetLength | ( | void | ) | const |
Gets the length of the sound as BaseTime .
|
private |
|
private |
|
private |
|
private |
|
private |