flashcard-archive/archive/r4dspro.com/old/r4dspro.com_Kernel_1.50/MOONSHL/plugin/aac.txt
lifehackerhansol 2c4bf9f2dc
Start moving kernels to old folder
Carts that use BL2CK:
- r4dspro.com
- r4i3d.com except original
- r4infinity.com except R4infinity 2
- r4isdhc.com Dual-Core
- r4isdhc.hk pre-2019
- r4isdhc.in 2014
- r4itt.net NEW/RTS
- r4ixds.com 2014-2016/black

Carts that use Wood R4Li:
- r4infinity 2 (Gateway Blue)

Carts that use YSMenu:
- r4i3d.com original
- r4isdhc.com RTS black
- r4itt.net original
- r4ixds.com 2017
2023-08-13 22:26:33 -07:00

53 lines
1.9 KiB
Plaintext

FAAD2 fix for low stack machine.
FAAD2 2.5 uses quite a lot stacks, it makes difficult to run on low stack machines like Nintedno DS.
AAC decoding code on DS just results in frozing by stack overflow.
For example, "element" structure in channel_pair_element function is more than 20000 bytes.
The size of "trans_buf" array in ifilter_bank function is 8192 bytes.
Those large local variable arrays and structures in syntax.c, specrec.c, and filtbank.c was modified to static.
This fix will help low stack application for FAAD2.
TODO: Only part of large local variables was modified. Changing compile options and sound format other than AAC may still contain large local variables. All of the large local variables should be fixed.
Moonlight wrote. (2006/12/18 09:46 GMT+09:00)
filtbank.c
Line.190 comment out. : memset(transf_buf, 0, sizeof(2*1024*sizeof(real_t)));
syntax.c
Line.597 comment out. : memset(&sce, 0, sizeof(element));
Line.598 comment out. : memset(spec_data, 0, 1024*sizeof(int16_t));
Line.648 comment out. : memset(spec_data1, 0, 1024*sizeof(int16_t));
Line.649 comment out. : memset(spec_data2, 0, 1024*sizeof(int16_t));
Line.650 comment out. : memset(&cpe, 0, sizeof(element));
Moonlight wrote. (2006/12/20 11:07 GMT+09:00)
re-enabled all 2006/12/18 comment out. (for Accuracy memory initializer)
common.h
enabled SBR_DEC and SBR_LOW_POWER.
sbr_hfgen.c
Line.211 add mask value. : uint32_t pow2, mask, exp;
sbr_hfadj.c
Line.1507 fix undefined reference to 'SBR_SQRT_Q2'.
Reffer http://www.audiocoding.com/modules/newbb/viewtopic.php?topic_id=223&forum=2&PHPSESSID=6a43abb3f8b2a3a84812e529303cf45a
Moonlight wrote. (2006/12/24 22:53 GMT+09:00)
re-comment out all 2006/12/18 comment out. (for Fast initializer)
Moonlight wrote. (2006/12/27 23:12 GMT+09:00)
Disabled SBR.
Functions.
MPEG-4 format: LTP/LD profile AAC
DRM (copyright protection mechanism) is unsupported.
High-bitrate stream is unsupported.
Seek cannot be done.