#include <SoundFile.h>

Public Member Functions | |
| SoundCue () | |
| SoundCue (string name, Abst_SoundFile *file=0, int start=1, int stop=-1) | |
| Constructor. | |
| ~SoundCue () | |
| void | readFrom (FILE *input) |
| for loading file lists | |
| void | dump (void) |
| void | nextBuffer (Buffer &outputBuffer) throw (CException) |
| UGen operations. | |
| bool | isActive () |
| query whether I'm currently active (Envelopes can go inactive) | |
| unsigned | channels () const |
| void | setToEnd (void) |
| void | trigger (void) |
| float | duration () const |
| duration in frames | |
Public Attributes | |
| string | mName |
| my name | |
| Abst_SoundFile * | mFile |
| the file I point into | |
| int | mStart |
| int | mStop |
| int | mCurrent |
| the start/stop samples I represent | |
| UnitGenerator * | mReadRate |
| my playback rate | |
Protected Attributes | |
| float | mFloatCurrent |
| current pointer as a float | |
| SoundCue::SoundCue | ( | string | name, | |
| Abst_SoundFile * | file = 0, |
|||
| int | start = 1, |
|||
| int | stop = -1 | |||
| ) |
| SoundCue::~SoundCue | ( | ) |
| void SoundCue::readFrom | ( | FILE * | input | ) |
| void SoundCue::dump | ( | void | ) | [virtual] |
pretty-print me
Reimplemented from csl::UnitGenerator.
References csl::Abst_SoundFile::channels(), csl::UnitGenerator::frameRate(), csl::logMsg(), mFile, mName, mStart, and mStop.
| void SoundCue::nextBuffer | ( | Buffer & | outputBuffer | ) | throw (CException) [virtual] |
| bool SoundCue::isActive | ( | ) | [virtual] |
query whether I'm currently active (Envelopes can go inactive)
Reimplemented from csl::UnitGenerator.
| unsigned csl::SoundCue::channels | ( | ) | const [inline] |
References csl::Abst_SoundFile::channels(), and mFile.
| void SoundCue::trigger | ( | void | ) |
References mCurrent, mFloatCurrent, and mStart.
Referenced by phonemes(), play_crackle(), play_nfile(), play_sns(), and play_wood().
| float csl::SoundCue::duration | ( | ) | const [inline] |
| string csl::SoundCue::mName |
Referenced by dump(), duration(), readFrom(), SoundCue(), and trigger().
Referenced by dump(), duration(), isActive(), readFrom(), and setToEnd().
the start/stop samples I represent
Referenced by isActive(), readFrom(), setToEnd(), SoundCue(), and trigger().
float csl::SoundCue::mFloatCurrent [protected] |
1.5.8