From b1a0a0f7c162bf7da3b1fefbae0f2003a3f7c99c Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Thu, 23 Jun 2011 23:06:46 -0700 Subject: [PATCH] cleanup --- src/minimodem.c | 2 +- src/simpleaudio-sndfile.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/minimodem.c b/src/minimodem.c index 7783d46..ffa35d2 100644 --- a/src/minimodem.c +++ b/src/minimodem.c @@ -484,7 +484,7 @@ main( int argc, char*argv[] ) ssize_t r; r = simpleaudio_read(sa, samples_readptr, read_nsamples); debug_log("simpleaudio_read(samplebuf+%ld, n=%lu) returns %ld\n", - samples_readptr - samplebuf, samples_nvalid, r); + samples_readptr - samplebuf, read_nsamples, r); if ( r < 0 ) { fprintf(stderr, "simpleaudio_read: error\n"); ret = -1; diff --git a/src/simpleaudio-sndfile.c b/src/simpleaudio-sndfile.c index b51ed57..436e987 100644 --- a/src/simpleaudio-sndfile.c +++ b/src/simpleaudio-sndfile.c @@ -70,7 +70,7 @@ sa_sndfile_close( simpleaudio *sa ) } -static const struct simpleaudio_backend simpleaudio_backend_pulse = { +static const struct simpleaudio_backend simpleaudio_backend_sndfile = { sa_sndfile_read, sa_sndfile_write, sa_sndfile_close, @@ -110,7 +110,7 @@ simpleaudio_open_stream_sndfile( } sa->rate = sfinfo.samplerate; sa->channels = sfinfo.channels; - sa->backend = &simpleaudio_backend_pulse; + sa->backend = &simpleaudio_backend_sndfile; sa->backend_handle = s; sa->backend_framesize = sa->channels * sizeof(float);