mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
pcm: fix the pcm_frames_diff -> pcm_frame_diff typo
BugLink: https://github.com/alsa-project/alsa-lib/issues/85 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
ebe2f8b851
commit
0128af6f54
3 changed files with 7 additions and 7 deletions
|
|
@ -716,7 +716,7 @@ static snd_pcm_sframes_t snd_pcm_dmix_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t f
|
|||
* So they can be remixed.
|
||||
*/
|
||||
|
||||
size = pcm_frames_diff(dmix->last_appl_ptr, dmix->appl_ptr, pcm->boundary);
|
||||
size = pcm_frame_diff(dmix->last_appl_ptr, dmix->appl_ptr, pcm->boundary);
|
||||
if (frames < size)
|
||||
size = frames;
|
||||
snd_pcm_mmap_appl_backward(pcm, size);
|
||||
|
|
@ -728,10 +728,10 @@ static snd_pcm_sframes_t snd_pcm_dmix_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t f
|
|||
/* Always at this point last_appl_ptr == appl_ptr
|
||||
* So (appl_ptr - hw_ptr) indicates the frames which can be remixed
|
||||
*/
|
||||
size = pcm_frames_diff(dmix->appl_ptr, dmix->hw_ptr, pcm->boundary);
|
||||
size = pcm_frame_diff(dmix->appl_ptr, dmix->hw_ptr, pcm->boundary);
|
||||
if (size > frames)
|
||||
size = frames;
|
||||
slave_size = pcm_frames_diff(dmix->slave_appl_ptr, dmix->slave_hw_ptr, pcm->boundary);
|
||||
slave_size = pcm_frame_diff(dmix->slave_appl_ptr, dmix->slave_hw_ptr, pcm->boundary);
|
||||
if (slave_size < size)
|
||||
size = slave_size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue