From ac73e3b5e2d46805f32aa3cc57cd7fce2e2110dc Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 27 Feb 2020 16:15:20 +0100 Subject: [PATCH] REDESIGN: ExportWave() Use new file I/O ABI --- src/raudio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/raudio.c b/src/raudio.c index 8a192c74..c9b9b41c 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -744,9 +744,7 @@ void ExportWave(Wave wave, const char *fileName) { // Export raw sample data (without header) // NOTE: It's up to the user to track wave parameters - FILE *rawFile = fopen(fileName, "wb"); - success = fwrite(wave.data, wave.sampleCount*wave.channels*wave.sampleSize/8, 1, rawFile); - fclose(rawFile); + SaveFileData(fileName, wave.data, wave.sampleCount*wave.channels*wave.sampleSize/8); } if (success) TRACELOG(LOG_INFO, "Wave exported successfully: %s", fileName);