mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 08:27:43 +01:00
two tweaks required to fix up previous commit
This commit is contained in:
parent
ae0ad6f695
commit
1be2866c4d
2 changed files with 2 additions and 2 deletions
|
|
@ -1239,7 +1239,7 @@ AudioDiskstream::_do_refill (Sample* mixdown_buffer, float* gain_buffer, framecn
|
|||
|
||||
/* total_space is in samples. We want to optimize read sizes in various sizes using bytes */
|
||||
|
||||
const size_t bits_per_sample = sndfile_data_width (_session.config.get_native_file_data_format());
|
||||
const size_t bits_per_sample = format_data_width (_session.config.get_native_file_data_format());
|
||||
size_t total_bytes = total_space * bits_per_sample / 8;
|
||||
|
||||
/* chunk size range is 256kB to 4MB. Bigger is faster in terms of MB/sec, but bigger chunk size always takes longer
|
||||
|
|
|
|||
|
|
@ -635,7 +635,7 @@ ARDOUR::get_microseconds ()
|
|||
*/
|
||||
|
||||
int
|
||||
format_data_width (ARDOUR::SampleFormat format)
|
||||
ARDOUR::format_data_width (ARDOUR::SampleFormat format)
|
||||
{
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue