MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

BPzeBanshee
MAME Fan
Reged: 07/22/12
Posts: 19
Send PM
Re: Setting sound chip volume off within the driver?
09/24/14 10:58 AM


Thanks Robbbert! That helped put me in the right direction and was able to find a solution without butchering any more code.

Unlike the DAC in hankin.c the ymf271 wasn't set up to be directly handled, so there wasn't a "m_ymf" to deal with and attempting to add it in made everything go haywire. Instead I had to add a bit of machine().device line to it similar to some drivers I found that used such lines for setting base addresses and other stuff I , the end result being (with lessthan/morethan signs around ymf271_device):

machine().device(ymf271_device)("ymf")->set_output_gain(0,0);
machine().device(ymf271_device)("ymf")->set_output_gain(1,0);

Seems a little complicated but it does function correctly and will only ever be used under that circumstance.

Edited by BPzeBanshee (09/24/14 11:00 AM)







Entire thread
Subject Posted by Posted on
* Setting sound chip volume off within the driver? BPzeBanshee 09/22/14 04:28 PM
. * Re: Setting sound chip volume off within the driver? Robbbert  09/24/14 07:11 AM
. * Re: Setting sound chip volume off within the driver? BPzeBanshee  09/24/14 10:58 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 59 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2886