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();}
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Class MicrophoneAudio provides the means to read raw audio samples from a microphone.
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A MovieAudio is actually any source that provides a sequence of audio samples.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
A MovieAudio is actually any source that provides a sequence of audio samples.