This is my code:
private void m_pStream_Receivced(object sender,RTP_PacketEventArgs e)
{
AudioCodec codec = null;
if (!m_pAudioCodecs.TryGetValue(e.Packet.PayloadType, out codec))
{
// Unknown codec(payload value), skip it.
return;
}
byte[] data = e.Packet.Data;
byte[] decodeData = codec.Decode(data, 0, data.Length);
m_pBinaryWriter.Write(decodeData, 0, decodeData.Length);
}
I called sip:music@iptel.org and recorded music to test.raw.
When I used toolsoft-audio-player to play the file, player display sample rate of test.raw is 441000, but I can
only hear noise when playing, then I modified sample rate(8000) of input format in the player's options. Finally, that
works. Is this a problem of the player?