[pulseaudio-commits] 2 commits - src/modules

Arun Raghavan arun at kemper.freedesktop.org
Mon Aug 29 09:45:31 PDT 2011


 src/modules/echo-cancel/module-echo-cancel.c |    7 ++++---
 src/modules/module-equalizer-sink.c          |    2 ++
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 3fd07a33eed3f0bb87b8c477294c1e65efabbd80
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date:   Mon Aug 29 22:14:04 2011 +0530

    equalizer: Comment out unused function
    
    Gets rid of a compiler warning

diff --git a/src/modules/module-equalizer-sink.c b/src/modules/module-equalizer-sink.c
index 0120d81..285ca0e 100644
--- a/src/modules/module-equalizer-sink.c
+++ b/src/modules/module-equalizer-sink.c
@@ -700,6 +700,7 @@ static void sink_input_mute_changed_cb(pa_sink_input *i) {
     pa_sink_mute_changed(u->sink, i->muted);
 }
 
+#if 0
 static void reset_filter(struct userdata *u){
     size_t fs = pa_frame_size(&u->sink->sample_spec);
     size_t max_request;
@@ -715,6 +716,7 @@ static void reset_filter(struct userdata *u){
     max_request = PA_MAX(max_request, u->window_size);
     pa_sink_set_max_request_within_thread(u->sink, max_request * fs);
 }
+#endif
 
 /* Called from I/O thread context */
 static void sink_input_process_rewind_cb(pa_sink_input *i, size_t nbytes) {

commit 394d8a6b6bb07394009f40fa5ad2834c2ff0e12d
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date:   Mon Aug 29 22:13:44 2011 +0530

    echo-cancel: Get rid of annoying compiler warnings

diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index acfbc04..a30b936 100644
--- a/src/modules/echo-cancel/module-echo-cancel.c
+++ b/src/modules/echo-cancel/module-echo-cancel.c
@@ -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) {
             uint8_t *rdata, *pdata, *cdata;
             pa_memchunk cchunk;
+            int unused;
 
             if (u->sink_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->captured_file)
-                        fwrite(rdata, 1, u->blocksize, u->captured_file);
+                        unused = fwrite(rdata, 1, u->blocksize, u->captured_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 */
@@ -716,7 +717,7 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
 
                 if (u->save_aec) {
                     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);



More information about the pulseaudio-commits mailing list