瀏覽代碼

REDESIGN: ExportWave()

Use new file I/O ABI
pull/1113/head
Ray 5 年之前
父節點
當前提交
ac73e3b5e2
共有 1 個檔案被更改,包括 1 行新增3 行删除
  1. +1
    -3
      src/raudio.c

+ 1
- 3
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);

Loading…
取消
儲存