From 6340365e2f2d1cee7f4620a3afa364c29a6664cc Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Mon, 10 Sep 2012 20:02:53 -0700 Subject: [PATCH] simpleaudio-sndfile: fix minimodem tx_interactive Un-break tx_interactive: minimodem enables tx_interactive whenever the stream_name is NULL, so go back to using the stream_name as the sndfile filename. --- src/minimodem.c | 2 +- src/simpleaudio-sndfile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/minimodem.c b/src/minimodem.c index 09a02fe..f1c71e0 100644 --- a/src/minimodem.c +++ b/src/minimodem.c @@ -674,7 +674,7 @@ main( int argc, char*argv[] ) if ( filename ) { sa_backend = SA_BACKEND_FILE; - sa_backend_device = filename; + stream_name = filename; } /* diff --git a/src/simpleaudio-sndfile.c b/src/simpleaudio-sndfile.c index 4403679..8e52596 100644 --- a/src/simpleaudio-sndfile.c +++ b/src/simpleaudio-sndfile.c @@ -166,7 +166,7 @@ sa_sndfile_open_stream( unsigned int rate, unsigned int channels, char *app_name, char *stream_name ) { - const char *path = backend_device; + const char *path = stream_name; int sf_format; switch ( sa->format ) {