mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
[Summary] Moved session buffers adjustment during butler thread set up to the place we are ready to handle them.
This commit is contained in:
parent
a6b202879f
commit
331a918633
1 changed files with 6 additions and 3 deletions
|
|
@ -124,6 +124,7 @@ Butler::setup_request_pipe ()
|
|||
int
|
||||
Butler::start_thread()
|
||||
{
|
||||
// set up capture and playback buffering
|
||||
Diskstream::set_buffering_parameters (Config->get_buffering_preset());
|
||||
|
||||
/* size is in Samples, not bytes */
|
||||
|
|
@ -131,9 +132,6 @@ Butler::start_thread()
|
|||
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);
|
||||
|
||||
_session.adjust_capture_buffering ();
|
||||
_session.adjust_playback_buffering ();
|
||||
|
||||
/* size is in bytes
|
||||
* XXX: Jack needs to tell us the MIDI buffer size
|
||||
* (i.e. how many MIDI bytes we might see in a cycle)
|
||||
|
|
@ -155,6 +153,11 @@ Butler::start_thread()
|
|||
|
||||
//pthread_detach (thread);
|
||||
have_thread = true;
|
||||
|
||||
// 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