Home | Download | Screen shots | Discussion | Documentation | Links |
---|
Public Methods | |
Audio (const std::string &url, Doc *relative=0) | |
Constructor. | |
~Audio () | |
Destructor. | |
bool | setURL (const std::string &url, Doc *relative=0) |
Set the URL of the audio file and read it from the document object. | |
bool | tryURLs (const MFString &urls, Doc *relative=0) |
Try a list of URLs. | |
const char * | url () const |
Get the URL of the clip. | |
AudioEncoding | encoding () const |
int | channels () const |
int | bitsPerSample () const |
int | samplesPerSec () const |
int | sampleBlockSize () const |
int | numSamples () const |
int | numBytes () const |
const unsigned char * | samples () const |
double | duration () const |
int | getByteIndex (double time_index) const |
Private Methods | |
bool | wavread (FILE *fp) |
Read a WAV file. | |
Private Attributes | |
Doc * | _doc |
AudioEncoding | _encoding |
int | _channels |
int | _bits_per_sample |
int | _samples_per_sec |
int | _sample_blocksize |
int | _num_samples |
unsigned char * | _samples |
|
Constructor.
|
|
Destructor.
|
|
Set the URL of the audio file and read it from the document object.
|
|
Try a list of URLs.
|
|
Get the URL of the clip.
|
|
Read a WAV file.
|