#include <lib_snd.h>
A class that describes a sound.
- See also
- BaseSound::GetSoundInfo
◆ GeSndInfo() [1/2]
◆ GeSndInfo() [2/2]
Constructs with a BaseSound.
- Parameters
-
[in] | bs | The sound to initialize from. |
◆ GetChannelCount()
Int32 GetChannelCount |
( |
void |
| ) |
const |
Gets the the number of channels.
- Returns
- The number of channels.
◆ GetBitsPerChannel()
Int32 GetBitsPerChannel |
( |
void |
| ) |
const |
Gets the number of bits per channel.
- Returns
- The number of bits per channel.
◆ GetSampleRate()
Float GetSampleRate |
( |
void |
| ) |
const |
Gets the sample rate.
- Returns
- The sample rate in Hz.
◆ GetSampleCount()
Int32 GetSampleCount |
( |
void |
| ) |
const |
Gets the the duration/length of the sound in samples.
- Returns
- The length of the sound in samples.
◆ GetLength()
Gets the length of the sound as BaseTime.
- Returns
- The length of the sound.
◆ channel_cnt
◆ bits_per_channel
◆ sample_rate
◆ sample_cnt
◆ data