GeSndInfo Class Reference Library » Sound

#include <lib_snd.h>

详细描述

A class that describes a sound.

另请参阅
BaseSound::GetSoundInfo

公共成员函数

  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() [1/2]

GeSndInfo ( )

Default constructor.

◆  GeSndInfo() [2/2]

GeSndInfo ( BaseSound bs )
explicit

Constructs with a BaseSound .

参数
[in] bs The sound to initialize from.

成员函数文档编制

◆  GetChannelCount()

Int32 GetChannelCount ( void  ) const

Gets the the number of channels.

返回
The number of channels.

◆  GetBitsPerChannel()

Int32 GetBitsPerChannel ( void  ) const

Gets the number of bits per channel.

返回
The number of bits per channel.

◆  GetSampleRate()

Float GetSampleRate ( void  ) const

Gets the sample rate.

返回
The sample rate in Hz.

◆  GetSampleCount()

Int32 GetSampleCount ( void  ) const

Gets the the duration/length of the sound in samples.

返回
The length of the sound in samples.

◆  GetLength()

BaseTime GetLength ( void  ) const

Gets the length of the sound as BaseTime .

返回
The length of the sound.

Member Data Documentation

◆  channel_cnt

Int32 channel_cnt
private

◆  bits_per_channel

Int32 bits_per_channel
private

◆  sample_rate

Float sample_rate
private

◆  sample_cnt

Int32 sample_cnt
private

◆  data

Char * data
private