浏览代码

reduced audio buffer size

Wei Mingzhi 7 年之前
父节点
当前提交
d00b545f64
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      aviplay.c

+ 2 - 2
aviplay.c

@@ -58,7 +58,7 @@ typedef struct
 {
 {
     FILE         *fp;                 // pointer to the AVI file
     FILE         *fp;                 // pointer to the AVI file
     SDL_Surface  *surface;            // video buffer
     SDL_Surface  *surface;            // video buffer
-    
+
     DWORD         dwVideoEndOffset;
     DWORD         dwVideoEndOffset;
     WORD          wWidth, wHeight;    // width and height of video
     WORD          wWidth, wHeight;    // width and height of video
     WORD          wMsPerFrame;        // milliseconds per frame
     WORD          wMsPerFrame;        // milliseconds per frame
@@ -68,7 +68,7 @@ typedef struct
     SDL_AudioCVT  cvt;
     SDL_AudioCVT  cvt;
 
 
     SDL_mutex    *mtxAudioData;
     SDL_mutex    *mtxAudioData;
-    BYTE          bAudioBuf[25600000];  // ring buffer for audio data
+    BYTE          bAudioBuf[256000];  // ring buffer for audio data
     DWORD         dwAudioReadPos;
     DWORD         dwAudioReadPos;
     DWORD         dwAudioWritePos;
     DWORD         dwAudioWritePos;
 } AVIPlayState;
 } AVIPlayState;