コード例 #1
0
        public static void ConvertAudioMP3ToWAV()
        {
            switch (EditorUtility.DisplayDialogComplex("Convert", "Convert selected to WAV?", "Yes - Suffix", "No", "Yes"))
            {
            case 0:
                FFMpeg.ConvertSelectedAudio("_wav", "wav", "mp3");
                break;

            case 1:

                break;

            case 2:
                FFMpeg.ConvertSelectedAudio("", "wav", "mp3");
                break;
            }
        }
コード例 #2
0
        public static void ConvertAudioAIFToOGG()
        {
            switch (EditorUtility.DisplayDialogComplex("Convert", "Convert selected to OGG?", "Yes - Suffix", "No", "Yes"))
            {
            case 0:
                FFMpeg.ConvertSelectedAudio("_ogg", "ogg", "aif");
                break;

            case 1:

                break;

            case 2:
                FFMpeg.ConvertSelectedAudio("", "ogg", "aif");
                break;
            }
        }
コード例 #3
0
        public static void ConvertAudioToMono()
        {
            switch (EditorUtility.DisplayDialogComplex("Convert", "Convert selected audio to MONO?", "Yes - Suffix", "No", "Yes"))
            {
            case 0:
                FFMpeg.ConvertSelectedAudioToMono("_mono");
                break;

            case 1:

                break;

            case 2:
                FFMpeg.ConvertSelectedAudioToMono("");
                break;
            }
        }