mirror of https://github.com/raysan5/raylib
parent
1be68d8cfe
commit
ac73e3b5e2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue