Пример #1
0
 public override int start(MachineSound msound)
 {
     throw new NotImplementedException();
 }
Пример #2
0
 public override int chips_num(MachineSound msound)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 public abstract int chips_clock(MachineSound msound);
Пример #4
0
 public abstract int start(MachineSound msound);
Пример #5
0
 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;
 }
Пример #6
0
 public abstract int chips_num(MachineSound msound);
Пример #7
0
 public static string sound_name(MachineSound msound)
 {
     if (msound.sound_type < SOUND_COUNT)
         return sndintf[msound.sound_type].name;
     else
         return "";
 }
Пример #8
0
 public override int start(MachineSound msound)
 {
     if (SoundStart != null) return SoundStart(msound); else return 0;
 }
Пример #9
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;
            }
Пример #10
0
 public override int chips_num(MachineSound msound)
 {
     return 0;
 }
Пример #11
0
 public override int chips_clock(MachineSound msound)
 {
     return 0;
 }