forked from auracaster/pyalsaaudio
remove redundant snd_pcm_hw_params_any() call
we just called it (and even error-checked it) a few lines above.
This commit is contained in:
@@ -409,7 +409,6 @@ static int alsapcm_setup(alsapcm_t *self)
|
|||||||
We don't care if any of this fails - we'll read the actual values
|
We don't care if any of this fails - we'll read the actual values
|
||||||
back out.
|
back out.
|
||||||
*/
|
*/
|
||||||
snd_pcm_hw_params_any(self->handle, hwparams);
|
|
||||||
snd_pcm_hw_params_set_access(self->handle, hwparams,
|
snd_pcm_hw_params_set_access(self->handle, hwparams,
|
||||||
SND_PCM_ACCESS_RW_INTERLEAVED);
|
SND_PCM_ACCESS_RW_INTERLEAVED);
|
||||||
snd_pcm_hw_params_set_format(self->handle, hwparams, self->format);
|
snd_pcm_hw_params_set_format(self->handle, hwparams, self->format);
|
||||||
|
|||||||
Reference in New Issue
Block a user