Exemplo n.º 1
0
        public void GenerateOgg()
        {
            ApplyValues();
            if (!CheckAllUIFilled())
            {
                return;
            }


            string path;

            if (isMp3 || !skipOffset)
            {
                trimAudio.SetAudioLength(loadedSong, Path.Combine(Application.streamingAssetsPath, "FFMPEG", "output.ogg"), 0, DefaultBPM, skipOffset);
                path = AudicaGenerator.Generate(Path.Combine(Application.streamingAssetsPath, "FFMPEG", "output.ogg"), (songName + "-" + mapperName), songName, "artist", DefaultBPM, "event:/song_end/song_end_C#", mapperName, 0);
            }
            else
            {
                path = AudicaGenerator.Generate(loadedSong, (songName + "-" + mapperName), songName, "artist", DefaultBPM, "event:/song_end/song_end_C#", mapperName, 0);
            }

            timeline.LoadAudicaFile(false, path);
            editorInput.SelectMode(EditorMode.Compose);

            genAudicaButton.interactable  = true;
            selectSongButton.interactable = false;
        }
Exemplo n.º 2
0
        public void GenerateOgg()
        {
            ApplyValues();
            if (!CheckAllUIFilled())
            {
                return;
            }


            string path;

            if (isMp3 || !skipOffset)
            {
                trimAudio.SetAudioLength(loadedSong, Path.Combine(Application.streamingAssetsPath, "FFMPEG", "output.ogg"), 0, DefaultBPM, skipOffset);
                path = AudicaGenerator.Generate(Path.Combine(Application.streamingAssetsPath, "FFMPEG", "output.ogg"), moggSongVolume, RemoveSpecialCharacters(songName + "-" + mapperName), songName, artistName, DefaultBPM, songEndEvent, mapperName, 0, loadedMidi, loadedArt);
            }
            else
            {
                path = AudicaGenerator.Generate(loadedSong, moggSongVolume, RemoveSpecialCharacters(songName + "-" + mapperName), songName, artistName, DefaultBPM, songEndEvent, mapperName, 0, loadedMidi, loadedArt);
            }

            timeline.LoadAudicaFile(false, path);
            editorInput.SelectMode(EditorMode.Compose);

            genAudicaButton.interactable  = true;
            selectSongButton.interactable = false;
            selectMidiButton.interactable = false;
            selectArtButton.interactable  = false;
        }
Exemplo n.º 3
0
        public void GenerateOgg()
        {
            trimAudio.SetAudioLength(loadedSong, Path.Combine(Application.streamingAssetsPath, "FFMPEG", "output.ogg"), offset, bpm);
            string path = AudicaGenerator.Generate(Path.Combine(Application.streamingAssetsPath, "FFMPEG", "output.ogg"), (songName + "-" + mapperName), (songName + "-" + mapperName), "artist", bpm, "event:/song_end/song_end_C#", mapperName, 0);

            timeline.LoadAudicaFile(false, path);
            editorInput.SelectMode(EditorMode.Compose);

            applyButton.interactable      = false;
            genAudicaButton.interactable  = false;
            selectSongButton.interactable = false;
        }