added setting buffer size for jack
This commit is contained in:
parent
2fcb37d0e9
commit
69c7bbab2d
1 changed files with 4 additions and 2 deletions
|
@ -122,9 +122,11 @@ void CSound::Stop()
|
||||||
|
|
||||||
int CSound::Init ( const int iNewPrefMonoBufferSize )
|
int CSound::Init ( const int iNewPrefMonoBufferSize )
|
||||||
{
|
{
|
||||||
|
// try setting buffer size
|
||||||
|
jack_set_buffer_size ( pJackClient, iNewPrefMonoBufferSize );
|
||||||
|
|
||||||
// TEST
|
// get actual buffer size
|
||||||
iJACKBufferSizeMono = jack_get_buffer_size ( pJackClient );
|
iJACKBufferSizeMono = jack_get_buffer_size ( pJackClient );
|
||||||
|
|
||||||
// init base clasee
|
// init base clasee
|
||||||
CSoundBase::Init ( iJACKBufferSizeMono );
|
CSoundBase::Init ( iJACKBufferSizeMono );
|
||||||
|
|
Loading…
Reference in a new issue