Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e4c4f12 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Fix bit rot in AudioStreamInSource

It obviously had not been compiled in a while.

Change-Id: If514f474808e557a67a671c3b833572ad4a88338
parent c26d9237
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ public:
    // FIXME Use an audio HAL API to query the buffer filling status when it's available.
    virtual ssize_t availableToRead() { return mStreamBufferSizeBytes / mFrameSize; }

    virtual ssize_t read(void *buffer, size_t count);
    virtual ssize_t read(void *buffer, size_t count, int64_t readPTS);

    // NBAIO_Sink end

+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ size_t AudioStreamInSource::framesOverrun()
    return mFramesOverrun;
}

ssize_t AudioStreamInSource::read(void *buffer, size_t count)
ssize_t AudioStreamInSource::read(void *buffer, size_t count, int64_t readPTS __unused)
{
    if (CC_UNLIKELY(!Format_isValid(mFormat))) {
        return NEGOTIATE;