Mercurial > hg > dmlib
changeset 640:55743025d628
Change audio default setup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 Apr 2013 08:58:02 +0300 |
parents | 62f5861d332b |
children | c3852e49a610 |
files | dmsimple.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dmsimple.c Mon Apr 15 08:34:45 2013 +0300 +++ b/dmsimple.c Mon Apr 15 08:58:02 2013 +0300 @@ -625,12 +625,13 @@ // Initialize audio parts if (engine.optAfmt.freq == 0 && engine.optAfmt.channels == 0) { - // Defaults, if none seem to be set engine.optAfmt.freq = 44100; engine.optAfmt.format = AUDIO_S16SYS; engine.optAfmt.channels = 2; - engine.optAfmt.samples = engine.optAfmt.freq / 16; } + + if (engine.optAfmt.samples == 0) + engine.optAfmt.samples = engine.optAfmt.freq / 16; #ifdef DM_USE_JSS jssInit();