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:
parent
093d9aa18a
commit
6340365e2f
|
@ -674,7 +674,7 @@ main( int argc, char*argv[] )
|
||||||
|
|
||||||
if ( filename ) {
|
if ( filename ) {
|
||||||
sa_backend = SA_BACKEND_FILE;
|
sa_backend = SA_BACKEND_FILE;
|
||||||
sa_backend_device = filename;
|
stream_name = filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -166,7 +166,7 @@ sa_sndfile_open_stream(
|
||||||
unsigned int rate, unsigned int channels,
|
unsigned int rate, unsigned int channels,
|
||||||
char *app_name, char *stream_name )
|
char *app_name, char *stream_name )
|
||||||
{
|
{
|
||||||
const char *path = backend_device;
|
const char *path = stream_name;
|
||||||
|
|
||||||
int sf_format;
|
int sf_format;
|
||||||
switch ( sa->format ) {
|
switch ( sa->format ) {
|
||||||
|
|
Loading…
Reference in New Issue