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

Commit 0f5d6912 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Remove deprecation FIXMEs for TRANSFER_OBTAIN mode

Change-Id: I7f43aabdb092e1465d79cd0eea5944fff18b93db
parent 3e414355
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ public:
    enum transfer_type {
        TRANSFER_DEFAULT,   // not specified explicitly; determine from the other parameters
        TRANSFER_CALLBACK,  // callback EVENT_MORE_DATA
        TRANSFER_OBTAIN,    // FIXME deprecated: call obtainBuffer() and releaseBuffer()
        TRANSFER_OBTAIN,    // call obtainBuffer() and releaseBuffer()
        TRANSFER_SYNC,      // synchronous read()
    };

@@ -344,9 +344,6 @@ public:
     * or return WOULD_BLOCK depending on the value of the "waitCount"
     * parameter.
     *
     * obtainBuffer() and releaseBuffer() are deprecated for direct use by applications,
     * which should use read() or callback EVENT_MORE_DATA instead.
     *
     * Interpretation of waitCount:
     *  +n  limits wait time to n * WAIT_PERIOD_MS,
     *  -1  causes an (almost) infinite wait time,
@@ -367,9 +364,7 @@ public:
     *  raw         pointer to the buffer
     */

    /* FIXME Deprecated public API for TRANSFER_OBTAIN mode */
            status_t    obtainBuffer(Buffer* audioBuffer, int32_t waitCount)
                                __attribute__((__deprecated__));
            status_t    obtainBuffer(Buffer* audioBuffer, int32_t waitCount);

private:
    /* If nonContig is non-NULL, it is an output parameter that will be set to the number of
+2 −8
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ public:
    enum transfer_type {
        TRANSFER_DEFAULT,   // not specified explicitly; determine from the other parameters
        TRANSFER_CALLBACK,  // callback EVENT_MORE_DATA
        TRANSFER_OBTAIN,    // FIXME deprecated: call obtainBuffer() and releaseBuffer()
        TRANSFER_OBTAIN,    // call obtainBuffer() and releaseBuffer()
        TRANSFER_SYNC,      // synchronous write()
        TRANSFER_SHARED,    // shared memory
    };
@@ -522,9 +522,6 @@ public:
     * or return WOULD_BLOCK depending on the value of the "waitCount"
     * parameter.
     *
     * obtainBuffer() and releaseBuffer() are deprecated for direct use by applications,
     * which should use write() or callback EVENT_MORE_DATA instead.
     *
     * Interpretation of waitCount:
     *  +n  limits wait time to n * WAIT_PERIOD_MS,
     *  -1  causes an (almost) infinite wait time,
@@ -544,10 +541,8 @@ public:
     *  size        actual number of bytes available
     *  raw         pointer to the buffer
     */
    /* FIXME Deprecated public API for TRANSFER_OBTAIN mode */
            status_t    obtainBuffer(Buffer* audioBuffer, int32_t waitCount,
                                size_t *nonContig = NULL)
                                __attribute__((__deprecated__));
                                size_t *nonContig = NULL);

private:
    /* If nonContig is non-NULL, it is an output parameter that will be set to the number of
@@ -571,7 +566,6 @@ public:
     *  size        actual number of bytes filled, must be multiple of frameSize
     *  raw         ignored
     */
    // FIXME make private when obtainBuffer() for TRANSFER_OBTAIN is removed
            void        releaseBuffer(const Buffer* audioBuffer);

    /* As a convenience we provide a write() interface to the audio buffer.