Skip to content

Commit

Permalink
rate update
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Nov 29, 2023
1 parent 6489927 commit f8f20d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rae_hw/src/speakers_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace rae_hw

// Set ALSA parameters

snd_pcm_set_params(alsaHandle, SND_PCM_FORMAT_S16_LE, SND_PCM_ACCESS_RW_INTERLEAVED, channels, rate, 2, 50000);
snd_pcm_set_params(alsaHandle, SND_PCM_FORMAT_S16_LE, SND_PCM_ACCESS_RW_INTERLEAVED, channels,rate*channels, 2, 50000);

// Read and play MP3 file
size_t buffer_size = mpg123_outblock(mh) * 4;
Expand Down

0 comments on commit f8f20d0

Please sign in to comment.