forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sound driver instability

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Brunni



Joined: 08 Oct 2005
Posts: 186

PostPosted: Sat Oct 28, 2006 11:58 pm    Post subject: Sound driver instability Reply with quote

Hello,

I've got problems with sound, sometimes my PSP will randomly crash.
In fact that's emulated sound, which is ran in parallel of a menu. There's two threads:
* main thread (draws & execute menu), normal priority
* sound thread (generates and output the sound, can take a lot of time**), high priority
** depends on the currently used channels, instruments used, additional selected effects, etc. - varies a lot during a second
Sound will take over the main thread and menu framerate will simply drop when there's not enough power. With some songs requiring a lot of power, the sound will slow down (and thus produce a few "clicks") because it can keep up the correct speed (that's normal), but the problem is, then the PSP will randomly crash (can be after 2 seconds to a few minutes). Before crashing it usually outputs a "sshh" noise and continues for a 1/2 second before locking up (screen is frozen as is, music stopped, no key - neither home - will respond).

However, if I set CPU to a very low frequency and play songs that require a lot of power, it's outputing a lot of clicks (because too slow) but not crashing. It seems only to happen when a music only *occasionnaly* (but not always) uses too much power. I don't care about clicks, it's normal, but I would like to eliminate those crashes which are quite annoying :-(

Note: It seems generating sound from the main thread (and just use the sound thread to copy/output the buffer) works perfectly, even when lagging, but the problem is that the menu will sometimes do very heavy tasks like listing a directory and this will stop sound :-( so it really has to be run in parallel...

Has anyone had such a problem or has any hint to give to me?
Thanks in advance ^^
_________________
Sorry for my bad english
Oldschool library for PSP - PC version released
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group