Пример #1
0
 public static bool AudioEncodingNeeded(EncoderProfile aProfile)
 {
     switch (aProfile.Type)
     {
         case ProfileType.AC3:
         case ProfileType.FLAC:
             return true;
         default:
             return false;
     }
 }
Пример #2
0
        public bool RemoveProfile(EncoderProfile inProfile)
        {
            if (ProfileList == null)
            {
                return(false);
            }

            ProfileList.Remove(inProfile);
            TriggerUpdate();

            return(true);
        }
Пример #3
0
 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;
 }
Пример #4
0
        public bool RemoveProfile(EncoderProfile inProfile)
        {
            if (ProfileList == null) return false;

            ProfileList.Remove(inProfile);
            TriggerUpdate();

            return true;
        }