comparison tools/mod2wav.c @ 2389:647671a9a0b8

More printf() format specifier size_t -related fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 09 Jan 2020 20:14:58 +0200
parents c146033f1f6a
children b7cd5dd0b82e
comparison
equal deleted inserted replaced
2388:2dbbc1c91231 2389:647671a9a0b8
303 { 303 {
304 dmErrorMsg("Could not allocate mixing buffer\n"); 304 dmErrorMsg("Could not allocate mixing buffer\n");
305 return 5; 305 return 5;
306 } 306 }
307 307
308 dmMsg(1, "Using fmt=%d, bits=%d, channels=%d, freq=%d [%d / sample]\n", 308 dmMsg(1, "Using fmt=%d, bits=%d, channels=%d, freq=%d [%" DM_PRIu_SIZE_T " / sample]\n",
309 optOutFormat, jvmGetSampleRes(dev), optOutChannels, optOutFreq, 309 optOutFormat, jvmGetSampleRes(dev), optOutChannels, optOutFreq,
310 sampSize); 310 sampSize);
311 311
312 // Initialize player 312 // Initialize player
313 if ((plr = jmpInit(dev)) == NULL) 313 if ((plr = jmpInit(dev)) == NULL)
350 // Write initial header 350 // Write initial header
351 dmWriteWAVHeader(outFile, jvmGetSampleRes(dev), optOutFreq, optOutChannels, 1024); 351 dmWriteWAVHeader(outFile, jvmGetSampleRes(dev), optOutFreq, optOutChannels, 1024);
352 352
353 // Render audio data and output to file 353 // Render audio data and output to file
354 if (optUsePlayTime) 354 if (optUsePlayTime)
355 dmMsg(1, "Rendering module (%d seconds) ...\n", optPlayTime); 355 dmMsg(1, "Rendering module (%" DM_PRIu_SIZE_T " seconds) ...\n", optPlayTime);
356 else 356 else
357 dmMsg(1, "Rendering module ...\n"); 357 dmMsg(1, "Rendering module ...\n");
358 358
359 optPlayTime *= optOutFreq; 359 optPlayTime *= optOutFreq;
360 dataTotal = 0; 360 dataTotal = 0;