예제 #1
0
        public static BASS_MIDI_EVENT[] BASS_MIDI_ConvertEvents(byte[] data, BASSMIDIEventMode flags)
        {
            int num = BassMidi.BASS_MIDI_ConvertEvents(data, null, 0, flags);

            if (num >= 0)
            {
                BASS_MIDI_EVENT[] array = new BASS_MIDI_EVENT[num];
                BassMidi.BASS_MIDI_ConvertEvents(data, array, num, flags);
                return(array);
            }
            return(null);
        }
예제 #2
0
        public static BASS_MIDI_EVENT[] BASS_MIDI_StreamGetEvents(int handle, int track, BASSMIDIEvent filter)
        {
            int num = BassMidi.BASS_MIDI_StreamGetEventsCount(handle, track, filter);

            if (num >= 0)
            {
                BASS_MIDI_EVENT[] array = new BASS_MIDI_EVENT[num];
                BassMidi.BASS_MIDI_StreamGetEvents(handle, track, filter, array);
                return(array);
            }
            return(null);
        }