From 843cbae5da75dee9345f7922af51ff33fe67a2ac Mon Sep 17 00:00:00 2001
From: kramm <kramm>
Date: Mon, 20 May 2002 12:04:22 +0000
Subject: [PATCH] fixed block size.

---
 lib/modules/swfsound.c |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/modules/swfsound.c b/lib/modules/swfsound.c
index 67adab9..ac90930 100644
--- a/lib/modules/swfsound.c
+++ b/lib/modules/swfsound.c
@@ -73,12 +73,12 @@ void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int numsamples, char first)
     
 static lame_global_flags*lame_flags;
 
-void swf_SetSoundStreamHead(TAG*tag, U16 avgnumsamples)
+void swf_SetSoundStreamHead(TAG*tag, int avgnumsamples)
 {
     unsigned char buf[4096];
-    int bufsize = 4096;
+    int bufsize = 1152*2;
     int len;
-    short int samples[1152];
+    short int samples[1152*2];
 
     U8 playbackrate = 1; // 0 = 5.5 Khz, 1 = 11 Khz, 2 = 22 Khz, 3 = 44 Khz
     U8 playbacksize = 1; // 0 = 8 bit, 1 = 16 bit
@@ -122,11 +122,12 @@ void swf_SetSoundStreamHead(TAG*tag, U16 avgnumsamples)
     //printf("init:flush():%d\n", len);
 }
 
-void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int numsamples, char first)
+void swf_SetSoundStreamBlock(TAG*tag, S16*samples, char first)
 {
     char*buf;
     int oldlen=0,len = 0;
     int bufsize = 16384;
+    int numsamples = 1152*2;
 
     buf = malloc(bufsize);
     if(!buf)
-- 
1.7.10.4