MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    silklame-在内存中转换mp3/pcm到silk

    其他项目发布
    1
    1
    133
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Executor-Cheng
      Executor-Cheng ⭐2021⭐ last edited by Executor-Cheng

      项目地址 https://github.com/Executor-Cheng/silklame
      头文件定义 https://github.com/Executor-Cheng/silklame/tree/master/include
      操作系统 nuget地址
      Windows https://www.nuget.org/packages/Mirai-CSharp.NativeAssets.Win32/
      Linux https://www.nuget.org/packages/Mirai-CSharp.NativeAssets.Linux/

      C#下对其中所有导出方法的封装: 点这里, 还有这里

      注意事项

      lameCoder_encodeToMp3, lameCoder_decodeToPcm, silkCoder_encodeToSilk, silkCoder_decodeToPcm 这四个方法输出的 destination 需要被正确free, 否则会导致内存泄漏
      一般情况下, 返回值0表示成功, 1表示OOM, 2表示参数错误, 3表示传了未初始化的lame_global_flags

      参考

      mzdluo123/silk4j (AGPLv3)

      许可

      AGPL-3.0 授权

      1 Reply Last reply Reply Quote 1
      • 1 / 1
      • First post
        Last post
      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact