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)
|