Comment 2 for bug 1285450

Revision history for this message
Owen Williams (ywwg) wrote :

From the .h file:

/**
     * Tell the stretcher exactly how many input samples it will
     * receive. This is only useful in Offline mode, when it allows
     * the stretcher to ensure that the number of output samples is
     * exactly correct. In RealTime mode no such guarantee is
     * possible and this value is ignored.
     */
    void setExpectedInputDuration(size_t samples);

Maybe we should keep track of the amount of error and try to correct for it in subsequent calls to the scaler?