From 69c7bbab2d3741a17cdee72fdf4caadfb8c50fef Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 9 Mar 2009 18:06:27 +0000 Subject: [PATCH] added setting buffer size for jack --- linux/sound.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linux/sound.cpp b/linux/sound.cpp index 33dab110..46fc44b5 100755 --- a/linux/sound.cpp +++ b/linux/sound.cpp @@ -122,9 +122,11 @@ void CSound::Stop() int CSound::Init ( const int iNewPrefMonoBufferSize ) { + // try setting buffer size + jack_set_buffer_size ( pJackClient, iNewPrefMonoBufferSize ); -// TEST -iJACKBufferSizeMono = jack_get_buffer_size ( pJackClient ); + // get actual buffer size + iJACKBufferSizeMono = jack_get_buffer_size ( pJackClient ); // init base clasee CSoundBase::Init ( iJACKBufferSizeMono );