aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/output/oss_plugin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/output/oss_plugin.c b/src/output/oss_plugin.c
index 53d047101..2992368d9 100644
--- a/src/output/oss_plugin.c
+++ b/src/output/oss_plugin.c
@@ -471,6 +471,13 @@ static int oss_open(OssData *od)
break;
case 16:
tmp = AFMT_S16_MPD;
+ break;
+
+ default:
+ /* not supported by OSS - fall back to 16 bit */
+ od->audio_format.bits = 16;
+ tmp = AFMT_S16_MPD;
+ break;
}
if (setParam(od, SNDCTL_DSP_SAMPLESIZE, &tmp)) {