git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5f40b8f
)
Applied patch from Marcus Doemling- blocksize is now 576 if the samplerate
author
kramm
<kramm>
Wed, 3 Dec 2003 19:17:56 +0000
(19:17 +0000)
committer
kramm
<kramm>
Wed, 3 Dec 2003 19:17:56 +0000
(19:17 +0000)
is 44100.
lib/modules/swfsound.c
patch
|
blob
|
history
diff --git
a/lib/modules/swfsound.c
b/lib/modules/swfsound.c
index
428faec
..
8b2f631
100644
(file)
--- a/
lib/modules/swfsound.c
+++ b/
lib/modules/swfsound.c
@@
-152,7
+152,7
@@
void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int seek, char first)
char*buf;
int len = 0;
int bufsize = 16384;
char*buf;
int len = 0;
int bufsize = 16384;
- int numsamples = 576*(swf_mp3_in_samplerate/swf_mp3_out_samplerate);
+ int numsamples = ((swf_mp3_out_samplerate > 22050) ? 1152 : 576) * (swf_mp3_in_samplerate/swf_mp3_out_samplerate);
int fs = 0;
buf = malloc(bufsize);
int fs = 0;
buf = malloc(bufsize);
@@
-194,7
+194,7
@@
void swf_SetSoundDefine(TAG*tag, S16*samples, int num)
char*buf;
int oldlen=0,len = 0;
int bufsize = 16384;
char*buf;
int oldlen=0,len = 0;
int bufsize = 16384;
- int blocksize = 576*(swf_mp3_in_samplerate/swf_mp3_out_samplerate);
+ int blocksize = ((swf_mp3_out_samplerate > 22050) ? 1152 : 576) * (swf_mp3_in_samplerate/swf_mp3_out_samplerate);
int t;
int blocks;
int t;
int blocks;