balaji shanmugam
2004-07-20 13:27:08 UTC
<html><div style='background-color:'><DIV class=RTE></DIV>
<DIV>Hi </DIV>
<DIV> </DIV>
<DIV>I have recently started using the MAD decoder. My requirement is to use the MP3 library for the ARM 32 bit processor environement. I have compiled the library with the option FPM_ARM selected (I have modified the MACRO functions for my compiler support keeping the assembly instructions the same). But the audio output was not clear at all. Then I had selected FPM_DEFAULT. With that I am able to hear a feeble (but with noise) audio.</DIV>
<DIV> </DIV>
<DIV>/**** mad_f_mul ****/</DIV>
<DIV>#define FPM_ARM</DIV>
<DIV># define SIZEOF_INT 4<BR># define SIZEOF_LONG 4<BR># define SIZEOF_LONG_LONG 8</DIV>
<DIV> </DIV>
<DIV># define MAD_F_FRACBITS 28</DIV>
<DIV>#define MAD_F_SCALEBITS MAD_F_FRACBITS</DIV>
<DIV> </DIV>
<DIV>static mad_fixed_t mad_f_mul(mad_fixed_t x,mad_fixed_t y)<BR>{<BR> mad_fixed_t result;<BR> mad_fixed64hi_t hi;<BR> mad_fixed64lo_t lo;</DIV>
<DIV> _asm(-1000,"<BR> smull %0,%1,%3,%4<BR> movs %0,lsr(%0,%5)<BR> adc %2,%0,lsl(%1,%6)<BR> ",<BR> __reg_gen(__obj_modify(lo)),<BR> __reg_gen(__obj_modify(hi)),<BR> __reg_gen(__obj_assign(result)),<BR> __reg_gen(x),<BR> __reg_gen(y),<BR> MAD_F_SCALEBITS,<BR> (32 - MAD_F_SCALEBITS)<BR> );</DIV>
<DIV> return result;<BR>}</DIV>
<DIV>/****Ends****/</DIV>
<DIV>I like to know if I am missing something? </DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>Balaji Shanmugam</DIV>
<DIV> </DIV></div><br clear=all><hr>Marriage? <a href="http://g.msn.com/8HMAENIN/2734??PS=47575">Join BharatMatrimony.com for free.</a> </html>
<DIV>Hi </DIV>
<DIV> </DIV>
<DIV>I have recently started using the MAD decoder. My requirement is to use the MP3 library for the ARM 32 bit processor environement. I have compiled the library with the option FPM_ARM selected (I have modified the MACRO functions for my compiler support keeping the assembly instructions the same). But the audio output was not clear at all. Then I had selected FPM_DEFAULT. With that I am able to hear a feeble (but with noise) audio.</DIV>
<DIV> </DIV>
<DIV>/**** mad_f_mul ****/</DIV>
<DIV>#define FPM_ARM</DIV>
<DIV># define SIZEOF_INT 4<BR># define SIZEOF_LONG 4<BR># define SIZEOF_LONG_LONG 8</DIV>
<DIV> </DIV>
<DIV># define MAD_F_FRACBITS 28</DIV>
<DIV>#define MAD_F_SCALEBITS MAD_F_FRACBITS</DIV>
<DIV> </DIV>
<DIV>static mad_fixed_t mad_f_mul(mad_fixed_t x,mad_fixed_t y)<BR>{<BR> mad_fixed_t result;<BR> mad_fixed64hi_t hi;<BR> mad_fixed64lo_t lo;</DIV>
<DIV> _asm(-1000,"<BR> smull %0,%1,%3,%4<BR> movs %0,lsr(%0,%5)<BR> adc %2,%0,lsl(%1,%6)<BR> ",<BR> __reg_gen(__obj_modify(lo)),<BR> __reg_gen(__obj_modify(hi)),<BR> __reg_gen(__obj_assign(result)),<BR> __reg_gen(x),<BR> __reg_gen(y),<BR> MAD_F_SCALEBITS,<BR> (32 - MAD_F_SCALEBITS)<BR> );</DIV>
<DIV> return result;<BR>}</DIV>
<DIV>/****Ends****/</DIV>
<DIV>I like to know if I am missing something? </DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>Balaji Shanmugam</DIV>
<DIV> </DIV></div><br clear=all><hr>Marriage? <a href="http://g.msn.com/8HMAENIN/2734??PS=47575">Join BharatMatrimony.com for free.</a> </html>