浏览代码

Tweaks

pull/1113/head
Ray 5 年前
父节点
当前提交
05992a6fce
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. +1
    -0
      src/raudio.c
  2. +1
    -1
      src/raylib.h

+ 1
- 0
src/raudio.c 查看文件

@ -745,6 +745,7 @@ void ExportWave(Wave wave, const char *fileName)
// Export raw sample data (without header) // Export raw sample data (without header)
// NOTE: It's up to the user to track wave parameters // NOTE: It's up to the user to track wave parameters
SaveFileData(fileName, wave.data, wave.sampleCount*wave.channels*wave.sampleSize/8); SaveFileData(fileName, wave.data, wave.sampleCount*wave.channels*wave.sampleSize/8);
success = true;
} }
if (success) TRACELOG(LOG_INFO, "Wave exported successfully: %s", fileName); if (success) TRACELOG(LOG_INFO, "Wave exported successfully: %s", fileName);

+ 1
- 1
src/raylib.h 查看文件

@ -104,7 +104,7 @@
#define RL_MALLOC(sz) malloc(sz) #define RL_MALLOC(sz) malloc(sz)
#endif #endif
#ifndef RL_CALLOC #ifndef RL_CALLOC
#define RL_CALLOC(ptr,sz) calloc(ptr,sz)
#define RL_CALLOC(n,sz) calloc(n,sz)
#endif #endif
#ifndef RL_REALLOC #ifndef RL_REALLOC
#define RL_REALLOC(ptr,sz) realloc(ptr,sz) #define RL_REALLOC(ptr,sz) realloc(ptr,sz)

正在加载...
取消
保存