# HG changeset patch # User rfelker # Date 1042485506 0 # Node ID 9821db5b213f9092d50ce02d1ba277f12a69a52d # Parent e96921e6418bbaf287e8fa3b29bcef83e45bb2bc 1000l, this clips!! IMO rg_scale nonsense should be removed with tremor anyway since people using tremor want max performance! diff -r e96921e6418b -r 9821db5b213f libmpcodecs/ad_libvorbis.c --- a/libmpcodecs/ad_libvorbis.c Mon Jan 13 14:53:51 2003 +0000 +++ b/libmpcodecs/ad_libvorbis.c Mon Jan 13 19:18:26 2003 +0000 @@ -133,7 +133,7 @@ if(ov->rg_scale > 15.) ov->rg_scale = 15.; #ifdef TREMOR - ov->rg_scale_int = (int)(ov->rg_scale*128.f); + ov->rg_scale_int = (int)(ov->rg_scale*64.f); #endif mp_msg(MSGT_DECAUDIO,MSGL_V,"OggVorbis: Bitstream is %d channel%s, %dHz, %dbit/s %cBR\n",(int)ov->vi.channels,ov->vi.channels>1?"s":"",(int)ov->vi.rate,(int)ov->vi.bitrate_nominal, (ov->vi.bitrate_lower!=ov->vi.bitrate_nominal)||(ov->vi.bitrate_upper!=ov->vi.bitrate_nominal)?'V':'C'); @@ -212,7 +212,7 @@ #ifdef TREMOR ogg_int32_t *mono=pcm[i]; for(j=0;jrg_scale_int)>>(9+7); + int val=(mono[j]*ov->rg_scale_int)>>(9+6); #else float *mono=pcm[i]; for(j=0;j