瀏覽代碼

Update audio_raw_stream.c

pull/2622/head
Ray 2 年之前
父節點
當前提交
c457835938
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      examples/audio/audio_raw_stream.c

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

@ -125,7 +125,7 @@ int main(void)
if (frequency != oldFrequency)
{
// Compute wavelength. Limit size in both directions.
int oldWavelength = waveLength;
o">//int oldWavelength = waveLength;
waveLength = (int)(22050/frequency);
if (waveLength > MAX_SAMPLES/2) waveLength = MAX_SAMPLES/2;
if (waveLength < 1) waveLength = 1;

Loading…
取消
儲存