MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

abelenki
Super Drunk
Reged: 10/20/03
Posts: 962
Loc: Perm, Russia
Send PM


switching audio cards in MAME/MESS
#305210 - 03/03/13 06:19 AM


is there a way to explicitly set output audio card for MAME/MESS?

i have two audio cards, one MB built-in audio with lcd panel speakers (default, for windows blips and blops) and esi juli@ with nice amp and speakers for music, movies and gaming.

i can set second card (esi juli@) in most applications as output device, but for MAME/MESS i have to manually switch esi juli@ to default device in windows, then return it back to secondary after playing.

that would be the great new option for MAME/MESS.



MAME Stuff | MAME favorites | Bubble Bobble Series chart / wiki | PC configuration



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: switching audio cards in MAME/MESS new [Re: abelenki]
#305213 - 03/03/13 08:19 AM


There's a command line utility called nircmd that allows you to set the default sound device from the command line in Windows 7/Vista/2008. It also does tons of other things from the command line too.

http://www.nirsoft.net/utils/nircmd.html

You could always start MAME with a batch file that runs nircmd before and after running MAME to toggle your desired sound device.



GroovyMAME support forum on BYOAC



abelenki
Super Drunk
Reged: 10/20/03
Posts: 962
Loc: Perm, Russia
Send PM


Re: switching audio cards in MAME/MESS new [Re: krick]
#305218 - 03/03/13 09:09 AM


oh, man. such a great advice!! thank you very much.

i did three batch files, for Emu Loader/HBMAME, Emu Loader/MAME and QMC2/MESS:

nircmd.exe setdefaultsounddevice "Mordaunt-Short MS908"
EmuLoader.exe
nircmd.exe setdefaultsounddevice "LG 32LC54"

nircmd.exe setdefaultsounddevice "Mordaunt-Short MS908"
EmuLoader.exe
nircmd.exe setdefaultsounddevice "LG 32LC54"

nircmd.exe setdefaultsounddevice "Mordaunt-Short MS908"
qmc2-mess.exe
nircmd.exe setdefaultsounddevice "LG 32LC54"

now esi julia@ is automatically chosen as default device when running those frontends and emulators inside them, then it switched back to MB audio card on exit.

that's just awesome!!

p.s.: i made the same nircmd batches for my PC games. no need to manually switch audio cards anymore. everything is scripted now



MAME Stuff | MAME favorites | Bubble Bobble Series chart / wiki | PC configuration


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 355 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1413