mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-17 08:56:42 -05:00
echo-cancel: Get rid of annoying compiler warnings
This commit is contained in:
parent
837ac4c225
commit
394d8a6b6b
1 changed files with 4 additions and 3 deletions
|
|
@ -675,6 +675,7 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
|
||||||
if (plen > u->blocksize && u->source_skip == 0) {
|
if (plen > u->blocksize && u->source_skip == 0) {
|
||||||
uint8_t *rdata, *pdata, *cdata;
|
uint8_t *rdata, *pdata, *cdata;
|
||||||
pa_memchunk cchunk;
|
pa_memchunk cchunk;
|
||||||
|
int unused;
|
||||||
|
|
||||||
if (u->sink_skip) {
|
if (u->sink_skip) {
|
||||||
size_t to_skip;
|
size_t to_skip;
|
||||||
|
|
@ -706,9 +707,9 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
|
||||||
|
|
||||||
if (u->save_aec) {
|
if (u->save_aec) {
|
||||||
if (u->captured_file)
|
if (u->captured_file)
|
||||||
fwrite(rdata, 1, u->blocksize, u->captured_file);
|
unused = fwrite(rdata, 1, u->blocksize, u->captured_file);
|
||||||
if (u->played_file)
|
if (u->played_file)
|
||||||
fwrite(pdata, 1, u->blocksize, u->played_file);
|
unused = fwrite(pdata, 1, u->blocksize, u->played_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* perform echo cancellation */
|
/* perform echo cancellation */
|
||||||
|
|
@ -716,7 +717,7 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
|
||||||
|
|
||||||
if (u->save_aec) {
|
if (u->save_aec) {
|
||||||
if (u->canceled_file)
|
if (u->canceled_file)
|
||||||
fwrite(cdata, 1, u->blocksize, u->canceled_file);
|
unused = fwrite(cdata, 1, u->blocksize, u->canceled_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
pa_memblock_release(cchunk.memblock);
|
pa_memblock_release(cchunk.memblock);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue