public static string GetStringFromAudioConfig(AUDIOCONFIG cfg) { switch (cfg) { case AUDIOCONFIG.NO_AUDIO: return(CFG_NO_AUDIO); case AUDIOCONFIG.MICROPHONE_ONLY: return(CFG_MICROPHONE_ONLY); case AUDIOCONFIG.DESKTOP_ONLY: return(CFG_DESKTOP_ONLY); case AUDIOCONFIG.MICROPHONE_AND_DESKTOP: return(CFG_MICROPHONE_AND_DESKTOP); default: return(CFG_NO_AUDIO); } }
public static extern int setCfgAudioDecodeAsync(IntPtr audioAsyncInterface, AUDIOCONFIG audioCfg);
public static extern IntPtr createAudioDecodeAsync(string deviceName, int numChannels, int samplingRate, int bitsPerSample, int delayMs, AUDIOCONFIG audioCfg, int chunksPerSec = MixCastAV.chunksPerSec);