C#如何将流编解码器G711转换为编解码器ogg或mp3?

时间:2016-05-20 16:57:24

标签: c# streaming codec live-streaming

如何将流G711编解码器转换为流式MP3或OGG?我使用LumiSoft.Net dll

我暂时收到G711流:

        byte[] decodedData = null;
        if (m_Codec == 0)
        {
            decodedData = G711.Decode_aLaw(e.Data, 0, e.Data.Length);
        }
        else if (m_Codec == 1)
        {
            decodedData = G711.Decode_uLaw(e.Data, 0, e.Data.Length);
        }

        m_pWaveOut.Play(decodedData, 0, decodedData.Length);

由于

0 个答案:

没有答案