14 #ifndef USERDATAAUDIO_H 15 #define USERDATAAUDIO_H 34 UserDataAudio(
int rate,
int channels,
bool remove_after_read=
true);
38 void append(int16_t *data,
int n);
40 void append(
const std::string &str);
44 void read_samples(
int n, int16_t *data);
47 int _desired_channels;
51 bool _remove_after_read;
58 static void init_type() {
59 MovieAudio::init_type();
61 MovieAudio::get_class_type());
64 return get_class_type();
66 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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A UserDataAudioCursor is a means to manually supply a sequence of raw audio samples.
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.
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.