예제 #1
0
        internal static RecorderFileFormat ToRecorderEnum(this StreamRecorderFileFormat value)
        {
            switch (value)
            {
            case StreamRecorderFileFormat.ThreeGp:
                return(RecorderFileFormat.ThreeGp);

            case StreamRecorderFileFormat.Mp4:
                return(RecorderFileFormat.Mp4);

            case StreamRecorderFileFormat.Amr:
                return(RecorderFileFormat.Amr);

            case StreamRecorderFileFormat.Adts:
                return(RecorderFileFormat.Adts);

            case StreamRecorderFileFormat.Wav:
                return(RecorderFileFormat.Wav);
            }

            Debug.Fail("Unknown file format value.");
            return(0);
        }
예제 #2
0
 internal static extern StreamRecorderErrorCode SetFileFormat(StreamRecorderHandle handle,
                                                              StreamRecorderFileFormat format);