MicrophoneAudio

class MicrophoneAudio

Bases: MovieAudio

Class MicrophoneAudio provides the means to read raw audio samples from a microphone.

Inheritance diagram

Inheritance diagram of MicrophoneAudio

int get_channels(void) const

Returns the number of channels.

static TypeHandle get_class_type(void)
static int get_num_options(void)

Returns the number of microphone options. An “option” consists of a device plus a set of configuration parameters. For example, “Soundblaster Audigy Line in at 44,100 samples/sec” would be an option.

static PointerTo<MicrophoneAudio> get_option(int n)

Returns the nth microphone option.

int get_rate(void) const

Returns the sample rate.