Java Code Examples for android.media.AudioTrack#ERROR

The following examples show how to use android.media.AudioTrack#ERROR . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AudioPlayer.java    From connectivity-samples with Apache License 2.0 4 votes vote down vote up
@Override
protected boolean validSize(int size) {
  return size != AudioTrack.ERROR && size != AudioTrack.ERROR_BAD_VALUE;
}
 
Example 2
Source File: AudioPlayer.java    From react-native-google-nearby-connection with MIT License 4 votes vote down vote up
@Override
protected boolean validSize(int size) {
	return size != AudioTrack.ERROR && size != AudioTrack.ERROR_BAD_VALUE;
}