added setting buffer size for jack

This commit is contained in:
Volker Fischer 2009-03-09 18:06:27 +00:00
parent 2fcb37d0e9
commit 69c7bbab2d

View file

@ -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 );