瀏覽代碼

REVIEWED: Need to set default buffer size for raw data #1770

This design should probably be changed...
pull/1864/head
raysan5 3 年之前
父節點
當前提交
e6aa713a37
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      examples/audio/audio_raw_stream.c

+ 3
- 1
examples/audio/audio_raw_stream.c 查看文件

@ -31,8 +31,10 @@ int main(void)
InitAudioDevice(); // Initialize audio device
SetAudioStreamBufferSizeDefault(4096);
// Init raw audio stream (sample rate: 22050, sample size: 16bit-short, channels: 1-mono)
AudioStream stream = LoadAudioStream(22050, 16, 1);
AudioStream stream = LoadAudioStream(44100, 16, 1);
// Buffer for the single cycle waveform we are synthesizing
short *data = (short *)malloc(sizeof(short)*MAX_SAMPLES);

Loading…
取消
儲存