#include <FileIO.h>
Inheritance diagram for csl::FileIO:

Public Member Functions | |
| FileIO (char *path) | |
| the path name determines the file type, e.g., xx.aiff, zz.snd, or yy.wav | |
| ~FileIO () | |
| void | open () throw (CException) |
| void | start (float seconds=0) throw (CException) |
| void | stop () throw (CException) |
| void | close () throw (CException) |
| void | test () throw (CException) |
| Buffer & | getInput () throw (CException) |
| test the IO's graph | |
| Buffer & | getInput (unsigned numFrames, unsigned numChannels) throw (CException) |
| Get the current input from the sound card. | |
Public Attributes | |
| bool | mIsPlaying |
| whether or not it's playing | |
| bool | mIsThreadRunning |
| is the background thread running? | |
| unsigned | mDuration |
| the file's buffer rate; | |
Protected Member Functions | |
| void | writeNextBuffer () |
Static Protected Member Functions | |
| static void * | threadFunction (void *) |
Protected Attributes | |
| char * | mPath |
| Get the current input from the sound card. | |
| SoundFile | mFile |
| Thread * | mThread |
| Buffer | mInBuffer |
| Buffer | mOutBuffer |
|
|
the path name determines the file type, e.g., xx.aiff, zz.snd, or yy.wav
|
|
|
|
|
|
|
|
|
seconds is optional. If not passed, starts a background thread, playing and writing. otherwise run for x seconds (so it doesn't return until done). |
|
|
|
|
|
|
|
|
|
|
|
test the IO's graph
|
|
||||||||||||
|
Get the current input from the sound card.
|
|
|
|
|
|
|
|
|
whether or not it's playing
|
|
|
is the background thread running?
|
|
|
the file's buffer rate;
|
|
|
Get the current input from the sound card.
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5-20051010