public static bool AudioEncodingNeeded(EncoderProfile aProfile) { switch (aProfile.Type) { case ProfileType.AC3: case ProfileType.FLAC: return true; default: return false; } }
public bool RemoveProfile(EncoderProfile inProfile) { if (ProfileList == null) { return(false); } ProfileList.Remove(inProfile); TriggerUpdate(); return(true); }
public static bool AudioProcessingNeeded(EncoderProfile aProfile) { int sampleRate = -1, channelOrder = -1; switch (aProfile.Type) { case ProfileType.AC3: sampleRate = ((AC3Profile)aProfile).SampleRate; channelOrder = ((AC3Profile)aProfile).OutputChannels; break; case ProfileType.FLAC: break; default: return false; } return sampleRate > -1 || channelOrder > -1; }
public bool RemoveProfile(EncoderProfile inProfile) { if (ProfileList == null) return false; ProfileList.Remove(inProfile); TriggerUpdate(); return true; }