mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
Loopback API improvement - added silence block.
This commit is contained in:
parent
b77f3a40fd
commit
b316062856
2 changed files with 6 additions and 1 deletions
|
|
@ -229,6 +229,10 @@ ssize_t snd_pcm_loopback_read(snd_pcm_loopback_t *lb, snd_pcm_loopback_callbacks
|
|||
callbacks->position_change(callbacks->private_data, pos);
|
||||
}
|
||||
break;
|
||||
case SND_PCM_LB_TYPE_SILENCE:
|
||||
if (callbacks->silence)
|
||||
callbacks->silence(callbacks->private_data, header.size);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue