am f32d06d8
: Merge "Allow set loop and position before write for static AudioTracks" into lmp-mr1-dev
* commit 'f32d06d855a6a7f2cb88886a58cb595518a2bd63': Allow set loop and position before write for static AudioTracks
This commit is contained in:
@ -1070,7 +1070,7 @@ public class AudioTrack
|
||||
* {@link #ERROR_INVALID_OPERATION}
|
||||
*/
|
||||
public int setPlaybackHeadPosition(int positionInFrames) {
|
||||
if (mDataLoadMode == MODE_STREAM || mState != STATE_INITIALIZED ||
|
||||
if (mDataLoadMode == MODE_STREAM || mState == STATE_UNINITIALIZED ||
|
||||
getPlayState() == PLAYSTATE_PLAYING) {
|
||||
return ERROR_INVALID_OPERATION;
|
||||
}
|
||||
@ -1100,7 +1100,7 @@ public class AudioTrack
|
||||
* {@link #ERROR_INVALID_OPERATION}
|
||||
*/
|
||||
public int setLoopPoints(int startInFrames, int endInFrames, int loopCount) {
|
||||
if (mDataLoadMode == MODE_STREAM || mState != STATE_INITIALIZED ||
|
||||
if (mDataLoadMode == MODE_STREAM || mState == STATE_UNINITIALIZED ||
|
||||
getPlayState() == PLAYSTATE_PLAYING) {
|
||||
return ERROR_INVALID_OPERATION;
|
||||
}
|
||||
|
Reference in New Issue
Block a user