write sound data information
authorkramm <kramm>
Thu, 10 Jan 2002 19:58:42 +0000 (19:58 +0000)
committerkramm <kramm>
Thu, 10 Jan 2002 19:58:42 +0000 (19:58 +0000)
lib/modules/swfsound.c

index 5ccc756..5804921 100644 (file)
@@ -54,6 +54,8 @@ void swf_SetSoundStreamBlock(TAG*tag, U16*samples, int numsamples)
     len += codecFlush (&buf[len]);
     len += codecExit(&buf[len]);
 
+    swf_SetU16(tag, numsamples); // number of samples
+    swf_SetU16(tag, 0); // seek
     swf_SetBlock(tag, buf, len);
     free(buf);
 }