Nearly all STK classes inherit from this class. The global sample rate and rawwave path variables can be queried and modified via Stk. In addition, this class provides error handling and byte-swapping functions.
by Perry R. Cook and Gary P. Scavone, 1995 - 2005.
|
Static Public Member Functions |
static StkFloat | sampleRate (void) |
| Static method which returns the current STK sample rate.
|
static void | setSampleRate (StkFloat rate) |
| Static method which sets the STK sample rate.
|
static std::string | rawwavePath (void) |
| Static method which returns the current rawwave path.
|
static void | setRawwavePath (std::string path) |
| Static method which sets the STK rawwave path.
|
static void | swap16 (unsigned char *ptr) |
| Static method which byte-swaps a 16-bit data type.
|
static void | swap32 (unsigned char *ptr) |
| Static method which byte-swaps a 32-bit data type.
|
static void | swap64 (unsigned char *ptr) |
| Static method which byte-swaps a 64-bit data type.
|
static void | sleep (unsigned long milliseconds) |
| Static cross-platform method to sleep for a number of milliseconds.
|
static void | handleError (const char *message, StkError::Type type) |
| Static function for error reporting and handling using c-strings.
|
static void | handleError (std::string message, StkError::Type type) |
| Static function for error reporting and handling using c++ strings.
|
static void | showWarnings (bool status) |
| Toggle display of WARNING and STATUS messages.
|
static void | printErrors (bool status) |
| Toggle display of error messages before throwing exceptions.
|
Static Public Attributes |
static const StkFormat | STK_SINT8 |
static const StkFormat | STK_SINT16 |
static const StkFormat | STK_SINT24 |
static const StkFormat | STK_SINT32 |
static const StkFormat | STK_FLOAT32 |
static const StkFormat | STK_FLOAT64 |
Protected Member Functions |
| Stk (void) |
| Default constructor.
|
virtual | ~Stk (void) |
| Class destructor.
|
void | handleError (StkError::Type type) |
| Internal function for error reporting which assumes message in errorString_ variable.
|