myMPX
Advertisement


Go Back MyMPx.org > MyMPx.org Forum > Mods and Themes

Simple clock/timer for Rockchip's players
Reply
Post New Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old 16th Sep 2009, 3:32 pm
Junior Member
 
Join Date: Sep 2009
Posts: 31
Default Simple clock/timer for Rockchip's players


Hi guys,

Sorry for my English.

"Menu" - setup the clock or the timer ( "V+" - increase time, "V-" - decrease , "Menu" - for the next digit)
"Long Menu" - exit application
"|<<" - start the timer (bell on 00:00:00 )
">||" - Stop/Continue
">>|" - start the clock

The applications set up internal clock to 12 MHz ( I am not sure that it is supports for all models )
Attached Files
File Type: zip timer.zip (12.3 KB, 92 views)
Reply With Quote
  #2 (permalink)  
Old 17th Sep 2009, 4:18 am
knob's Avatar
Senior Member
Valued Member
 
Join Date: May 2007
Posts: 1,285
Default

This is a good idea sig11.
I will test it out on my player.
__________________
-----------------------------------------------------------------------------------------------------------
Reply With Quote
  #3 (permalink)  
Old 17th Sep 2009, 4:46 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Default

Thanks for this application!

I can't hear a bell - when the timer becomes zero, there's only quiet hissing
Reply With Quote
  #4 (permalink)  
Old 17th Sep 2009, 5:31 am
Junior Member
 
Join Date: Sep 2009
Posts: 31
Default

Quote:
Originally Posted by WIZARD View Post
Thanks for this application!

I can't hear a bell - when the timer becomes zero, there's only quiet hissing
Do you have the sounds in the other games ( tanks,pirates, etc) ?
Reply With Quote
  #5 (permalink)  
Old 17th Sep 2009, 6:50 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Question Sounds

Yes, I have sounds and music in all games created by Rockchip company,
and simple apps for testing like Data-Viewer.
So, there's no any problem with my RK2608 320x240 player.

Were the Xonix and Chess created with sounds?
Reply With Quote
  #6 (permalink)  
Old 17th Sep 2009, 10:25 am
knob's Avatar
Senior Member
Valued Member
 
Join Date: May 2007
Posts: 1,285
Default

Another member flasher86 has made sound work, here is what he writes:-
Quote:
Yes I can put music, but currently only in PCM format, which is quite annoying (files are huge). Standard platform introduces functions to play MONO 11.025KHz 8-bit Unsigned PCM stream. You can prepare this format using e.x. Sony Sound Forge (save as RAW PCM). Make sure that you ticked UNSIGNED pcm, not signed. Otherwise you get strange noises. Also 16 bit pcm is not supported yet (also strange noises), but I've already given couple of shots, and maybe I will succeed with this.

BUT, I modded the platform to be able to play PCM streams at higher sample rate. Now I can play files at 22.050KHz, 32.000KHz and even 44100KHz (though at 44100 rate it sometimes pauses playing while running some complicated operations in your RKP file. The best is 32.000KHz which is really fine quality.

In this topic I mentioned how to mod the platform to increase sample rate. Just look through few previous pages.

ps. the pcm file must be mono, but you can actually play stereo files using some trick. Platform provides 5 channels to play sounds on, at same time mixing together. Also you can set the balance of each of these channels. Then to play stereo files you may use two pcm streams of each channel (right, left) and call them on different channel at totally opposite balance set. I successfully played STEREO 44.100KHz song.
__________________
-----------------------------------------------------------------------------------------------------------
Reply With Quote
  #7 (permalink)  
Old 17th Sep 2009, 10:57 am
knob's Avatar
Senior Member
Valued Member
 
Join Date: May 2007
Posts: 1,285
Default

This works ok on my player Rockchip Rk2608 320x240 screen.
Even the alarm sounds when it counts down to zero, it sounds like an old style telephone by the way.
__________________
-----------------------------------------------------------------------------------------------------------
Reply With Quote
Sponsored Links
  #8 (permalink)  
Old 30th Sep 2009, 2:46 pm
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

If someone wants to know how to increase frame rate of PCM Audio in RKP platform, you can use this code (if you dont want to digg through the forum).

Define write memory function somewhere in your header file:
Code:
#define write_mem(address, value)      (*((unsigned int volatile*)(address)) = (value))
To set a new frame rate put this AFTER calling the function MusicChannelAsk.
Default 11025Hz:
Code:
write_mem(0xF408, 0x0006);
write_mem(0xF408, 0x0055);
16000Hz:
Code:
write_mem(0xF408, 0x0006);
write_mem(0xF408, 0x0044);
22050Hz:
Code:
write_mem(0xF408, 0x0006);
write_mem(0xF408, 0x0033);
32000Hz:
Code:
write_mem(0xF408, 0x0006);
write_mem(0xF408, 0x0022);
44100Hz:
Code:
write_mem(0xF408, 0x0006);
write_mem(0xF408, 0x0011);
48000Hz: (not tested but should also work)
Code:
write_mem(0xF408, 0x0006);
write_mem(0xF408, 0x0080);
Reply With Quote
  #9 (permalink)  
Old 4th Oct 2009, 8:50 am
Junior Member
 
Join Date: Sep 2009
Posts: 31
Default

Quote:
Originally Posted by flasher86 View Post
If someone wants to know how to increase frame rate of PCM Audio in RKP platform, you can use this code (if you dont want to digg through the forum).

Define write memory function somewhere in your header file:
Code:
#define write_mem(address, value)      (*((unsigned int volatile*)(address)) = (value))
To set a new frame rate put this AFTER calling the function MusicChannelAsk.
Default 11025Hz:
I used the next code for the sound:
Code:
  (*MusicOn)();
  (*MusicChannelAsk)(ResourceIdexBuff[2],9983,0,1,100);
Is this correct?
Why it not works on the all players?
Reply With Quote
  #10 (permalink)  
Old 4th Oct 2009, 9:05 am
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
Reply

Sponsored Links



Similar Threads
Thread Thread Starter Forum Replies Last Post
8 gb Mp4 dead shown blue screen and egg timer gillz Support and How To 6 16th May 2009 12:43 am
screen appears blue with timer when i switch my mp4 on crasymama Dead Players 2 1st Jan 2008 9:04 am
blue screen with the timer icon, PC doesn't detect it Obzdadon Support and How To 15 30th Aug 2007 9:34 am
EGG TIMER STON eddie490_0 Dead Players 0 6th Aug 2007 9:23 am
2 simple Questions bedo Support and How To 2 9th Jun 2006 5:53 pm


All times are GMT -7. The time now is 8:19 am.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2
Back to Top

Designed by indiqo.media