Make extra disk buffering optional.

This commit is contained in:
Jonathan Moore Liles 2008-04-29 23:42:28 -05:00
parent 4756fe3361
commit 1b5cac563b
1 changed files with 4 additions and 3 deletions

View File

@ -68,9 +68,10 @@ Disk_Stream::Disk_Stream ( Track *th, float frame_rate, nframes_t nframes, int c
size_t bufsize = _total_blocks * nframes * sizeof( sample_t ); size_t bufsize = _total_blocks * nframes * sizeof( sample_t );
_disk_io_blocks = ( bufsize * channels ) / ( disk_io_kbytes * 1024 ); if ( disk_io_kbytes )
_disk_io_blocks = ( bufsize * channels ) / ( disk_io_kbytes * 1024 );
assert( _disk_io_blocks ); else
_disk_io_blocks = 1;
for ( int i = channels; i--; ) for ( int i = channels; i--; )
_rb.push_back( jack_ringbuffer_create( bufsize ) ); _rb.push_back( jack_ringbuffer_create( bufsize ) );