mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-21 13:15:40 -05:00
Fix OSS Input/Output on M17 8K Sample; #152
This commit is contained in:
@@ -2474,9 +2474,6 @@ main (int argc, char **argv)
|
|||||||
int fmt;
|
int fmt;
|
||||||
int speed = 48000;
|
int speed = 48000;
|
||||||
|
|
||||||
//Codec2 only running at 8k output currently, need to match for OSS
|
|
||||||
if (opts.frame_m17 == 1)
|
|
||||||
speed = 8000;
|
|
||||||
|
|
||||||
//NOTE: Both /dev/audio AND /dev/dsp randomly open multiple input streams in Linux under padsp wrapper
|
//NOTE: Both /dev/audio AND /dev/dsp randomly open multiple input streams in Linux under padsp wrapper
|
||||||
if((strncmp(opts.audio_in_dev, "/dev/audio", 10) == 0))
|
if((strncmp(opts.audio_in_dev, "/dev/audio", 10) == 0))
|
||||||
@@ -2525,6 +2522,10 @@ main (int argc, char **argv)
|
|||||||
opts.audio_in_type = 5; //5 will become OSS input type
|
opts.audio_in_type = 5; //5 will become OSS input type
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Codec2 only running at 8k output currently, need to match for OSS
|
||||||
|
if (opts.frame_m17 == 1)
|
||||||
|
speed = 8000;
|
||||||
|
|
||||||
if((strncmp(opts.audio_out_dev, "/dev/audio", 10) == 0))
|
if((strncmp(opts.audio_out_dev, "/dev/audio", 10) == 0))
|
||||||
{
|
{
|
||||||
sprintf (opts.audio_out_dev, "%s", "/dev/dsp");
|
sprintf (opts.audio_out_dev, "%s", "/dev/dsp");
|
||||||
|
|||||||
Reference in New Issue
Block a user