Skip to content

你好 请问这个可以实现 Pcm指定位置插入背景音乐吗? #5

Description

@CodeK1988

我今天搞了一天 尝试Pcm 指定位置插入 一段 mp3背景音乐~
DecodeEngine.getInstance().beginDecodeMusicFile(musicPath, pcmPath, play_begin/1000, (play_end-play_begin)/1000+2,
this);

@OverRide
public void decodeSuccess() {
Log.d("加速处理", "decodeSuccess: ");

ComposeAudio(tempRecord + tempWordName + "/" + tempWordName + "_" + play_begin + ".pcm", cacheRecord + tempWordName+".mp3", cacheRecord + tempWordName+"_test.mp3", false,
        1.5f, 0.5f,  -1 * 2 / 2 * (44100 * 2 * 1), this);

} 混合之后 得到的一个7秒的杂音? 可以帮忙看一下吗? 万分感激~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions