CPU usage problem with the Windows sound mapper

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Post Reply
user222
Rookie
Posts: 15
Joined: Sun Feb 13, 2005 8:26 am

CPU usage problem with the Windows sound mapper

Post by user222 »

Leave ZSNES running in the background, then play an audio file using another application, the CPU usage of ZSNES will increase. The CPU usage of ZSNES goes back down when the sound mapper is not simultaneously used by another application.
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Is this a problem with ZSNES or Windows?
[u][url=http://bash.org/?577451]#577451[/url][/u]
user222
Rookie
Posts: 15
Joined: Sun Feb 13, 2005 8:26 am

Post by user222 »

Noxious Ninja wrote:Is this a problem with ZSNES or Windows?
Playing sound in other applications should not increase the CPU usage of the ZSNES process. I think it's a DirectSound problem in ZSNES. By the way, if you're using a sound card that doesn't support DirectSound, you won't even be able to play sounds in other applications. I wonder why ZSNES takes exclusive access of the sound mapper, even when there's no game is running, or when the emulation is paused
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Sure it should. ZSNES now how to output sound in a friendly way instead of taking full control of the sound card.

You might also want to play with the primary buffer setting.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Post Reply