mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
correct placement of buffering adjustments w.r.t Butler thread creation
This commit is contained in:
parent
e52375aa40
commit
30a698f42e
1 changed files with 9 additions and 9 deletions
|
|
@ -104,16 +104,16 @@ Butler::config_changed (std::string p)
|
|||
int
|
||||
Butler::start_thread()
|
||||
{
|
||||
// set up capture and playback buffering
|
||||
Diskstream::set_buffering_parameters (Config->get_buffering_preset());
|
||||
|
||||
// set up capture and playback buffering
|
||||
Diskstream::set_buffering_parameters (Config->get_buffering_preset());
|
||||
|
||||
/* size is in Samples, not bytes */
|
||||
const float rate = (float)_session.frame_rate();
|
||||
const float rate = (float)_session.frame_rate();
|
||||
audio_dstream_capture_buffer_size = (uint32_t) floor (Config->get_audio_capture_buffer_seconds() * rate);
|
||||
audio_dstream_playback_buffer_size = (uint32_t) floor (Config->get_audio_playback_buffer_seconds() * rate);
|
||||
|
||||
/* size is in bytes
|
||||
* XXX: Jack needs to tell us the MIDI buffer size
|
||||
* XXX: AudioEngine needs to tell us the MIDI buffer size
|
||||
* (i.e. how many MIDI bytes we might see in a cycle)
|
||||
*/
|
||||
midi_dstream_buffer_size = (uint32_t) floor (Config->get_midi_track_buffer_seconds() * rate);
|
||||
|
|
@ -130,10 +130,10 @@ Butler::start_thread()
|
|||
//pthread_detach (thread);
|
||||
have_thread = true;
|
||||
|
||||
// we are ready to request buffer adjustments
|
||||
_session.adjust_capture_buffering ();
|
||||
_session.adjust_playback_buffering ();
|
||||
|
||||
// we are ready to request buffer adjustments
|
||||
_session.adjust_capture_buffering ();
|
||||
_session.adjust_playback_buffering ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue