Add float support to ByteBuffer AudioTrack write

Change-Id: I887b944ea40966b9849bd08c093994049671c9b4
This commit is contained in:
Andy Hung
2014-07-08 15:40:51 -07:00
parent 16f54aadcf
commit 806114bc6f

View File

@@ -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;