15 #ifndef USERDATAAUDIO_H
16 #define USERDATAAUDIO_H
18 #include "movieAudio.h"
19 #include "datagramIterator.h"
38 UserDataAudio(
int rate,
int channels,
bool remove_after_read=
true);
42 void append(PN_int16 *data,
int n);
44 void append(
const string &str);
48 void read_samples(
int n, PN_int16 *data);
51 int _desired_channels;
55 bool _remove_after_read;
62 static void init_type() {
63 MovieAudio::init_type();
64 register_type(_type_handle,
"UserDataAudio",
65 MovieAudio::get_class_type());
68 return get_class_type();
70 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
76 #include "userDataAudio.I"
A UserDataAudioCursor is a means to manually supply a sequence of raw audio samples.
A MovieAudio is actually any source that provides a sequence of audio samples.
A UserDataAudio is a way for the user to manually supply raw audio samples.
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
A MovieAudio is actually any source that provides a sequence of audio samples.