Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

VS1063

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


Related

Wiki: Home