Пример #1
0
AudioBuffer* BaseSynthEvent::getBuffer()
{
    if ( AudioEngineProps::EVENT_CACHING )
    {
        // if caching hasn't completed, fill cache fragment
        if ( !_cachingCompleted )
            doCache();
    }
    return _buffer;
}
Пример #2
0
/**
 * (pre-)cache the contents of the BaseSynthEvent in its entirety
 * this can be done in idle time to make optimum use of resources
 */
void BaseSynthEvent::cache( bool doCallback )
{
    if ( _buffer == 0 ) return; // cache request likely invoked after destruction

    _caching = true;

    doCache();

    if ( doCallback )
        sequencer::bulkCacher->cacheQueue();
}
Пример #3
0
/**
 * (pre-)cache the contents of the SynthEvent in its entirety
 * this can be done in idle time to make optimum use of resources
 */
void SynthEvent::cache( bool doCallback )
{
    if ( _buffer == 0 ) return; // cache request was invoked after destruction
    if ( hasParent )    return; // OSC2 is rendered via parents render

    _caching = true;

    doCache();

    if ( doCallback )
        sequencer::bulkCacher->cacheQueue();
}
Пример #4
0
/**
 * (pre-)cache the contents of the SynthEvent in its entirety
 * this can be done in idle time to make optimum use of resources
 */
void SynthEvent::cache( bool doCallback )
{
    if ( _buffer == 0 ) // this cache request was invoked after destruction
        return;

    _caching = true;

    doCache();

    if ( doCallback )
        sequencer::bulkCacher->cacheQueue();
}