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

Commit 806114bc authored by Andy Hung's avatar Andy Hung
Browse files

Add float support to ByteBuffer AudioTrack write

Change-Id: I887b944ea40966b9849bd08c093994049671c9b4
parent 16f54aad
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1376,11 +1376,6 @@ public class AudioTrack
            return ERROR_INVALID_OPERATION;
        }

        if (mAudioFormat == AudioFormat.ENCODING_PCM_FLOAT) {
            Log.e(TAG, "AudioTrack.write(ByteBuffer ...) not yet supported for ENCODING_PCM_FLOAT");
            return ERROR_INVALID_OPERATION;
        }

        if ((writeMode != WRITE_BLOCKING) && (writeMode != WRITE_NON_BLOCKING)) {
            Log.e(TAG, "AudioTrack.write() called with invalid blocking mode");
            return ERROR_BAD_VALUE;