/// <summary>
/// Audio frames are generally contained within a single RTP packet. This method is a shortcut
/// to construct a frame from a single RTP packet.
/// </summary>
public static RTPFrame MakeSinglePacketFrame(RTPPacket rtpPacket)
{
RTPFrame frame = new RTPFrame();
frame.AddRTPPacket(rtpPacket);
frame.Timestamp = rtpPacket.Header.Timestamp;
return(frame);
}