Add float support to ByteBuffer AudioTrack write
Change-Id: I887b944ea40966b9849bd08c093994049671c9b4
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user