CSL
6.0
|
The CSL system defaults class. More...
#include <CGestalt.h>
Static Public Member Functions | |
static unsigned | frameRate () |
default frame rate More... | |
static float | frameRateF () |
default frame rate as a float More... | |
static void | setFrameRate (unsigned frameRate) |
static sample | framePeriod () |
default frame rate More... | |
static unsigned | numInChannels () |
default number of input channels More... | |
static void | setNumInChannels (unsigned numChannels) |
static unsigned | numOutChannels () |
default number of output channels More... | |
static void | setNumOutChannels (unsigned numChannels) |
static unsigned | blockSize () |
the default block size More... | |
static void | setBlockSize (unsigned blockSize) |
static unsigned | maxBufferFrames () |
the max num frames that can be requested More... | |
static void | setMaxBufferFrames (unsigned numFrames) |
static unsigned | maxSndFileFrames () |
the max num frames that can be cached More... | |
static void | setMaxSndFileFrames (unsigned numFrames) |
static unsigned | sndFileFrames () |
the default num frames that are cached More... | |
static void | setSndFileFrames (unsigned numFrames) |
static unsigned | verbosity () |
the default logging verbosity More... | |
static void | setVerbosity (unsigned verbosity) |
static unsigned | loggingPeriod () |
the default logging period More... | |
static void | setLoggingPeriod (unsigned loggingPeriod) |
static unsigned | outPort () |
the default RemoteIO output port More... | |
static void | setOutPort (unsigned outPort) |
static std::string | dataFolder () |
the default directory for test data More... | |
static void | setDataFolder (std::string dFolder) |
typ. "~/Code/CSL/CSL_Data/" More... | |
static bool | stopNow () |
flag to stop threads and timers More... | |
static void | setStopNow () |
static void | clearStopNow () |
static std::string | initFileText (char key) |
read/write the init file (typ. ~/.cslrc) More... | |
static void | storeToInitFile (char key, std::string data) |
static std::string | sndFileName () |
pick a new sound file name to use based on OUT_SFILE_NAME More... | |
static unsigned | screenWidth () |
current screen width More... | |
static void | setScreenWidth (unsigned numPixels) |
static unsigned | screenHeight () |
current screen height More... | |
static void | setScreenHeight (unsigned numPixels) |
The CSL system defaults class.
Definition at line 39 of file CGestalt.h.
|
static |
default frame rate
CGestalt Accessors for system constants.
Definition at line 51 of file CGestalt.cpp.
References mFrameRate.
Referenced by csl::AirAbsorptionCue::compute(), createEffectInstance(), createGrains(), CSLComponent::CSLComponent(), csl::Filter::init(), csl::PAIO::initialize(), csl::KarplusString::KarplusString(), csl::FileIO::open(), csl::PAIO::open(), csl::iPhoneIO::open(), oscServer(), CSLComponent::recordOnOff(), csl::KarplusString::setFrequency(), csl::FileIO::start(), and csl::GrainCloud::startThreads().
|
static |
default frame rate as a float
Definition at line 52 of file CGestalt.cpp.
References mFrameRateF.
Referenced by csl::Biquad::Biquad(), csl::IO::capture_on(), csl::Buffer::duration(), csl::Buffer::normalize(), csl::FilterSpecification::planFilter(), and csl::IO::printTimeStatistics().
|
static |
Definition at line 81 of file CGestalt.cpp.
References mFramePeriod, mFrameRate, and mFrameRateF.
Referenced by csl::PAIO::initialize().
|
static |
|
static |
default number of input channels
Definition at line 58 of file CGestalt.cpp.
References mNumInChannels.
Referenced by CSLComponent::buttonClicked(), createEffectInstance(), CSLComponent::CSLComponent(), csl::PAIO::initialize(), and oscServer().
|
static |
Definition at line 93 of file CGestalt.cpp.
References mNumInChannels.
Referenced by csl::PAIO::initialize().
|
static |
default number of output channels
Definition at line 59 of file CGestalt.cpp.
References mNumOutChannels.
Referenced by CSLComponent::buttonClicked(), createEffectInstance(), CSLComponent::CSLComponent(), csl::DelayLine::DelayLine(), csl::PAIO::initialize(), csl::FileIO::open(), oscServer(), and csl::PAIO::test().
|
static |
Definition at line 94 of file CGestalt.cpp.
References mNumOutChannels.
Referenced by csl::PAIO::initialize().
|
static |
the default block size
Definition at line 57 of file CGestalt.cpp.
References mBlockSize.
Referenced by csl::UnitGenerator::addOutput(), csl::Mixer::allocateOpBuffer(), csl::Port::checkBuffer(), createEffectInstance(), CSLComponent::CSLComponent(), csl::PAIO::initialize(), csl::AmbisonicMixer::initialize(), csl::FileIO::open(), csl::PAIO::open(), csl::iPhoneIO::open(), oscServer(), csl::IO::printTimeStatistics(), csl::SpatialPanner::SpatialPanner(), csl::PAIO::test(), and csl::Window::Window().
|
static |
Definition at line 92 of file CGestalt.cpp.
References mBlockSize.
Referenced by csl::PAIO::initialize().
|
static |
the max num frames that can be requested
Definition at line 54 of file CGestalt.cpp.
References mMaxBufferFrames.
Referenced by csl::DelayLine::DelayLine(), and CSLComponent::recordOnOff().
|
static |
Definition at line 89 of file CGestalt.cpp.
References mMaxBufferFrames.
|
static |
the max num frames that can be cached
Definition at line 56 of file CGestalt.cpp.
References mMaxSndFileFrames.
Referenced by csl::CASoundFile::openForRead(), csl::JSoundFile::openForRead(), and csl::LSoundFile::openForRead().
|
static |
Definition at line 90 of file CGestalt.cpp.
References mMaxSndFileFrames.
|
static |
the default num frames that are cached
Definition at line 55 of file CGestalt.cpp.
References mSndFileFrames.
|
static |
Definition at line 91 of file CGestalt.cpp.
References mSndFileFrames.
|
static |
|
static |
Definition at line 95 of file CGestalt.cpp.
References mVerbosity.
|
static |
|
static |
Definition at line 96 of file CGestalt.cpp.
References mLoggingPeriod.
|
static |
the default RemoteIO output port
Definition at line 62 of file CGestalt.cpp.
References mOutPort.
Referenced by main(), and oscServer().
|
static |
Definition at line 97 of file CGestalt.cpp.
References mOutPort.
|
static |
the default directory for test data
Definition at line 71 of file CGestalt.cpp.
References mDataFolder.
Referenced by csl::HRTFDatabase::convertDB(), csl::HRTFDatabase::Database(), csl::SHARCLibrary::loadDefault(), sndFileName(), testDynamicVoice(), and testSAFilter().
|
static |
|
static |
flag to stop threads and timers
Definition at line 64 of file CGestalt.cpp.
References mStopNow.
Referenced by CSLComponent::audioDeviceIOCallback(), LThread::run(), and csl::sleepUsec().
|
static |
Definition at line 100 of file CGestalt.cpp.
References mStopNow.
Referenced by CSLComponent::startStop().
|
static |
Definition at line 101 of file CGestalt.cpp.
References mStopNow.
Referenced by LThread::run(), and CSLComponent::startStop().
|
static |
read/write the init file (typ. ~/.cslrc)
Definition at line 126 of file CGestalt.cpp.
References CSL_LINE_LEN, and initFileName().
Referenced by CSLComponent::CSLComponent().
|
static |
Definition at line 145 of file CGestalt.cpp.
References CSL_STR_LEN, initFileName(), and len.
Referenced by CSLComponent::startStop().
|
static |
pick a new sound file name to use based on OUT_SFILE_NAME
Definition at line 186 of file CGestalt.cpp.
References cheapPrintf, CSL_NAME_LEN, dataFolder(), csl::logMsg(), and OUT_SFILE_NAME.
Referenced by csl::FileIO::FileIO(), and CSLComponent::recordOnOff().
|
static |
|
static |
Definition at line 103 of file CGestalt.cpp.
References sScreenWidth.
|
static |
|
static |
Definition at line 104 of file CGestalt.cpp.
References sScreenHeight.