浏览代码

Minor tweaks

pull/1097/head
raysan5 5 年前
父节点
当前提交
131132f17d
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      src/models.c
  2. +2
    -2
      src/raudio.c

+ 1
- 1
src/models.c 查看文件

@ -1655,7 +1655,7 @@ Mesh GenMeshCylinder(float radius, float height, int slices)
par_shapes_mesh *cylinder = par_shapes_create_cylinder(slices, 8);
par_shapes_scale(cylinder, radius, radius, height);
par_shapes_rotate(cylinder, -PI/2.0f, (float[]){ 1, 0, 0 });
par_shapes_rotate(cylinder, PI/2.0f, (float[]){ 0, 1, 0});
par_shapes_rotate(cylinder, PI/2.0f, (float[]){ 0, 1, 0 });
// Generate an orientable disk shape (top cap)
par_shapes_mesh *capTop = par_shapes_create_disk(radius, slices, (float[]){ 0, 0, 0 }, (float[]){ 0, 0, 1 });

+ 2
- 2
src/raudio.c 查看文件

@ -2064,7 +2064,7 @@ static Wave LoadFLAC(const char *fileName)
Wave wave;
// Decode an entire FLAC file in one go
n">uint64_t totalSampleCount;
kt">unsigned long long int totalSampleCount;
wave.data = drflac_open_file_and_read_pcm_frames_s16(fileName, &wave.channels, &wave.sampleRate, &totalSampleCount);
wave.sampleCount = (unsigned int)totalSampleCount;
@ -2088,7 +2088,7 @@ static Wave LoadMP3(const char *fileName)
Wave wave = { 0 };
// Decode an entire MP3 file in one go
n">uint64_t totalFrameCount = 0;
kt">unsigned long long int totalFrameCount = 0;
drmp3_config config = { 0 };
wave.data = drmp3_open_file_and_read_f32(fileName, &config, &totalFrameCount);

正在加载...
取消
保存