mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
Do not set the period.
This commit is contained in:
parent
94e23a3a02
commit
3bb78df86c
1 changed files with 0 additions and 5 deletions
5
alsa.c
5
alsa.c
|
|
@ -37,7 +37,6 @@ static snd_pcm_hw_params_t *params;
|
|||
snd_pcm_status_t *status;
|
||||
static unsigned int rate = 22050; /* sample rate */
|
||||
static int dir = 0;
|
||||
static snd_pcm_uframes_t frames;
|
||||
|
||||
void lock_audio_mutex(void)
|
||||
{
|
||||
|
|
@ -145,10 +144,6 @@ int init_audio(void)
|
|||
saved_rate = rate;
|
||||
snd_pcm_hw_params_set_rate_near(handle, params, &rate, &dir);
|
||||
|
||||
/* Set period size to 32 frames. */
|
||||
frames = 32;
|
||||
snd_pcm_hw_params_set_period_size_near(handle, params, &frames, &dir);
|
||||
|
||||
/* Write the parameters to the driver */
|
||||
rc = snd_pcm_hw_params(handle, params);
|
||||
if (rc < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue