Mercurial > hg > dmlib
comparison mod2wav.c @ 39:281b080e8c44
More cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 29 Sep 2012 20:47:08 +0300 |
parents | 8b04b0b51edc |
children | 033c660c25f5 |
comparison
equal
deleted
inserted
replaced
38:8b04b0b51edc | 39:281b080e8c44 |
---|---|
278 return 3; | 278 return 3; |
279 } | 279 } |
280 | 280 |
281 // Open mixer | 281 // Open mixer |
282 d = jvmInit(optOutFormat, optOutChannels, optOutFreq, JMIX_AUTO); | 282 d = jvmInit(optOutFormat, optOutChannels, optOutFreq, JMIX_AUTO); |
283 if (!d) { | 283 if (!d) |
284 { | |
284 fprintf(stderr, "jvmInit() returned NULL\n"); | 285 fprintf(stderr, "jvmInit() returned NULL\n"); |
285 return 4; | 286 return 4; |
286 } | 287 } |
287 | 288 |
288 sampSize = jvmGetSampleSize(d); | 289 sampSize = jvmGetSampleSize(d); |
289 mb = dmMalloc(bufLen * sampSize); | 290 mb = dmMalloc(bufLen * sampSize); |
290 if (!mb) { | 291 if (!mb) |
292 { | |
291 fprintf(stderr, "Could not allocate mixing buffer\n"); | 293 fprintf(stderr, "Could not allocate mixing buffer\n"); |
292 return 5; | 294 return 5; |
293 } | 295 } |
294 | 296 |
295 dmMsg(1, "Using fmt=%d, bits=%d, channels=%d, freq=%d [%d / sample]\n", | 297 dmMsg(1, "Using fmt=%d, bits=%d, channels=%d, freq=%d [%d / sample]\n", |