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.
This commit is contained in:
Kamal Mostafa 2012-09-10 20:02:53 -07:00
parent 093d9aa18a
commit 6340365e2f
2 changed files with 2 additions and 2 deletions

View File

@ -674,7 +674,7 @@ main( int argc, char*argv[] )
if ( filename ) {
sa_backend = SA_BACKEND_FILE;
sa_backend_device = filename;
stream_name = filename;
}
/*

View File

@ -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 ) {