public override int start(MachineSound msound) { throw new NotImplementedException(); }
public override int chips_num(MachineSound msound) { throw new NotImplementedException(); }
public abstract int chips_clock(MachineSound msound);
public abstract int start(MachineSound msound);
int sound_clock(MachineSound msound) { if (msound.sound_type < SOUND_COUNT)// && sndintf[msound.sound_type].chips_clock) return sndintf[msound.sound_type].chips_clock(msound); else return 0; }
public abstract int chips_num(MachineSound msound);
public static string sound_name(MachineSound msound) { if (msound.sound_type < SOUND_COUNT) return sndintf[msound.sound_type].name; else return ""; }
public override int start(MachineSound msound) { if (SoundStart != null) return SoundStart(msound); else return 0; }
public override int start(MachineSound msound) { int i; int[] vol = new int[MIXER_MAX_CHANNELS]; Samplesinterface intf = (Samplesinterface)msound.sound_interface; /* read audio samples if available */ Machine.samples = readsamples(intf.samplenames, Machine.gamedrv.name); numchannels = intf.channels; for (i = 0; i < numchannels; i++) vol[i] = intf.volume; firstchannel = mixer_allocate_channels(numchannels, vol); for (i = 0; i < numchannels; i++) { string buf = sprintf("Sample #%d", i); mixer_set_name(firstchannel + i, buf); } return 0; }
public override int chips_num(MachineSound msound) { return 0; }
public override int chips_clock(MachineSound msound) { return 0; }