Comment #4 on issue 2070 by baranowb: Support for stream reassembly after silence period
http://code.google.com/p/mobicents/issues/detail?id=2070

/**
* Resets read/write aspects of buffer. For instance after period of silence, buffer calls this method to
     * prepare itself for continuation of stream.
     */
    public void softReset() {
        
        duration = 0;

        drift = 0;
        r = 0;
        s = 0;

        ready = false;
        readStarted = true;
        writeStarted = false;

        readCursor = 0;
        writeCursor = 0;
        lastRtpPackReceivedTimeStamp = 0;
    }

    public void reset()
    {
         softReset();
         clock.reset();
         seqNoCycles = 0;
         firstSeqNumberReceived = 0;
    }

Reply via email to