14 #ifndef MICROPHONEAUDIO_H
15 #define MICROPHONEAUDIO_H
30 static int get_num_options();
32 MAKE_SEQ(get_options, get_num_options, get_option);
34 INLINE
int get_channels()
const;
35 INLINE
int get_rate()
const;
37 MAKE_SEQ_PROPERTY(options, get_num_options, get_option);
38 MAKE_PROPERTY(channels, get_channels);
39 MAKE_PROPERTY(rate, get_rate);
44 static void find_all_microphones();
56 static void init_type() {
57 MovieAudio::init_type();
59 MovieAudio::get_class_type());
62 return get_class_type();
64 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
Class MicrophoneAudio provides the means to read raw audio samples from a microphone.
A MovieAudio is actually any source that provides a sequence of audio samples.
A MovieAudio is actually any source that provides a sequence of audio samples.
TypeHandle is the identifier used to differentiate C++ class types.
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...