Can you try to make the application CPU ussage lower?It's way too much for an MP3 player.
There is sync sleep command and also i have this:
Originally posted by GatorHex, modified by me:
REM Project: cpusaver
REM Created: 02/08/2007 00:11:49
REM
REM ***** Main Source File *****
REM
sync on : sync rate 0
percent = 0
#constant kernel32num = 55
Load dll "kernel32.dll",kernel32num
`Play with "i" variable, try 1,100,1000,2000 with opened Task Manager to see what are the results.
for i=1 to 1
make object cube i,10
position object i,rnd(100),rnd(100),rnd(100)
next i
Do
`Automatic adjustment CPU ussage based on FPS results
if screen fps() <= 60
percent = percent + 1
if percent > 100 then percent = 100
else
percent = percent - 1
if percent < 0 then percent = 0
ENDIF
if time >= percent
sleep_cpu(1)
time = 0
endif
time = time + 1
`Manual adjustment of CPU ussage
`if inkey$() = "s" then percent = percent - 1 : if percent < 0 then percent = 0
`if inkey$() = "d" then percent = percent + 1 : if percent > 100 then percent = 100
text 0,0,"FPS: "+str$(screen fps())
text 0,15,"Percent: " + str$(percent)
text 0,30,"Timer: "+str$(time)
sync
loop
Function sleep_CPU(millisecs As Dword)
temp As Dword
temp = call dll(kernel32num,"SleepEx",millisecs)
Endfunction
Coding is My Kung Fu!
And My Kung Fu is better than Yours!