Make extra disk buffering optional.
This commit is contained in:
parent
4756fe3361
commit
1b5cac563b
|
@ -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 ) );
|
||||||
|
|
Loading…
Reference in New Issue