示例#1
0
        public SequencerClientId RegisterFluidsynth(Synth synth)
        {
            ThrowIfDisposed();
            synth.ThrowIfDisposed();

            var id = LibFluidsynth.fluid_sequencer_register_fluidsynth(Handle, synth.Handle);

            if (id == LibFluidsynth.FluidFailed)
            {
                throw new FluidSynthInteropException("fluid_sequencer_register_fluidsynth failed");
            }

            return(new SequencerClientId(id));
        }