diff options
| author | Ray <[email protected]> | 2020-02-12 13:16:18 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-12 13:16:18 +0100 |
| commit | 484c6b360f4da17c5034aa1408b3a3bef092eeea (patch) | |
| tree | cbb564a72a1ba0353e643d17aa9f76bfcb9db08a /src/raudio.c | |
| parent | dec85f741a1605b58e7ae819cbbb9bd82f16e60d (diff) | |
| download | raylib-484c6b360f4da17c5034aa1408b3a3bef092eeea.tar.gz raylib-484c6b360f4da17c5034aa1408b3a3bef092eeea.zip | |
Reviewed Cppcheck issues #1098
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/raudio.c b/src/raudio.c index cebd6ec0..c5ffed73 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -791,10 +791,10 @@ void ExportWaveAsCode(Wave wave, const char *fileName) #endif fprintf(txtFile, "// Wave data information\n"); - fprintf(txtFile, "#define %s_SAMPLE_COUNT %i\n", varFileName, wave.sampleCount); - fprintf(txtFile, "#define %s_SAMPLE_RATE %i\n", varFileName, wave.sampleRate); - fprintf(txtFile, "#define %s_SAMPLE_SIZE %i\n", varFileName, wave.sampleSize); - fprintf(txtFile, "#define %s_CHANNELS %i\n\n", varFileName, wave.channels); + fprintf(txtFile, "#define %s_SAMPLE_COUNT %d\n", varFileName, wave.sampleCount); + fprintf(txtFile, "#define %s_SAMPLE_RATE %d\n", varFileName, wave.sampleRate); + fprintf(txtFile, "#define %s_SAMPLE_SIZE %d\n", varFileName, wave.sampleSize); + fprintf(txtFile, "#define %s_CHANNELS %d\n\n", varFileName, wave.channels); // Write byte data as hexadecimal text fprintf(txtFile, "static unsigned char %s_DATA[%i] = { ", varFileName, dataSize); |
