public static float[] BASS_WASAPI_GetLevel(float length = 0.02f, BASSLevel flags = BASSLevel.BASS_LEVEL_ALL) { BASS_WASAPI_INFO bass_WASAPI_INFO = BassWasapi.BASS_WASAPI_GetInfo(); if (bass_WASAPI_INFO == null) { return(null); } int num = bass_WASAPI_INFO.chans; if ((flags & BASSLevel.BASS_LEVEL_MONO) == BASSLevel.BASS_LEVEL_MONO) { num = 1; } else if ((flags & BASSLevel.BASS_LEVEL_STEREO) == BASSLevel.BASS_LEVEL_STEREO) { num = 2; } float[] array = new float[num]; if (BassWasapi.BASS_WASAPI_GetLevel(array, length, flags)) { return(array); } return(null); }
public static float[] BASS_Mixer_ChannelGetLevel(int handle, float length = 0.02f, BASSLevel flags = BASSLevel.BASS_LEVEL_ALL) { BASS_CHANNELINFO bass_CHANNELINFO = Bass.BASS_ChannelGetInfo(handle); if (bass_CHANNELINFO == null) { return(null); } int num = bass_CHANNELINFO.chans; if ((flags & BASSLevel.BASS_LEVEL_MONO) == BASSLevel.BASS_LEVEL_MONO) { num = 1; } else if ((flags & BASSLevel.BASS_LEVEL_STEREO) == BASSLevel.BASS_LEVEL_STEREO) { num = 2; } float[] array = new float[num]; if (BassMix.BASS_Mixer_ChannelGetLevel(handle, array, length, flags)) { return(array); } return(null); }
public static extern bool BASS_WASAPI_GetLevel([In][Out] float[] levels, float length, BASSLevel flags);
public static extern bool BASS_Mixer_ChannelGetLevel(int handle, [In][Out] float[] levels, float length, BASSLevel flags);