Georg Ottinger

Reading the VU-Meter while in Encodingmode:

There are two words for left and right channel absolute maximum value in the parametric structure (encoding.channelMax[]). After you read the values, write them back to zero.

typedef unsigned short u_int16;
  u_int16 lr[2];
  /* read values */
  Mp3WriteRegister(SCI_WRAMADDR, 0x1e3c);
  lr[0] = Mp3ReadRegister(SCI_WRAM);
  lr[1] = Mp3ReadRegister(SCI_WRAM);
  /* clear values */
  Mp3WriteRegister(SCI_WRAMADDR, 0x1e3c);
  Mp3WriteRegister(SCI_WRAM, 0);
  Mp3WriteRegister(SCI_WRAM, 0);
  /* then use linear to dB conversion to get decibel scale */

This Info comes from pasi from vlsi.fi - they also run a forum for more information


Wiki: Home

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks