Browse Source

reduced audio buffer size

Wei Mingzhi 7 years ago
parent
commit
d00b545f64
1 changed files with 2 additions and 2 deletions
  1. 2 2
      aviplay.c

+ 2 - 2
aviplay.c

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