View Single Post
  #10 (permalink)  
Old 4th Oct 2009, 9:05 am
flasher86 flasher86 is offline
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

It should be as follows:

Code:
#define write_mem(address, value)      (*((unsigned int volatile*)(address)) = (value))
#define IC_DATA_CMD                    ((0x1e800 + 0x10)/2) 
#define P_ADD_CCR                      (0x0006)
...

(*MusicOn)();
(*MusicChannelAsk)(ResourceIdexBuff[2],9983,1,160,100);
 write_mem(IC_DATA_CMD, P_ADD_CCR);
 write_mem(IC_DATA_CMD, 0x0011); // for 44KHz
try this one with new MusicChannelAsk parameters. third parameter can be zero but it is safer to use 1. Fourth parameter is the balance set, to hear the sound in both speakers you should set it to 160 (central value in 0-320).

btw, on which players it doesnt work?

Last edited by flasher86; 4th Oct 2009 at 9:09 am.
Reply With Quote