mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-25 15:06:21 +02:00
sampleFormat
git-svn-id: svn://elaine/murooma/trunk@207 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
ea3da221db
commit
746933a96a
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ void player(Stream* stream)
|
|||
if ((pcm = snd_pcm_hw_params_set_rate_near(pcm_handle, params, &rate, 0)) < 0)
|
||||
cout << "ERROR: Can't set rate. " << snd_strerror(pcm) << "\n";
|
||||
|
||||
long unsigned int periodsize = 2*rate / 100;
|
||||
long unsigned int periodsize = 2*rate / 50;
|
||||
if ((pcm = snd_pcm_hw_params_set_buffer_size_near(pcm_handle, params, &periodsize)) < 0)
|
||||
cout << "Unable to set buffer size " << (long int)periodsize << ": " << snd_strerror(pcm) << "\n";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue