Loading media/java/android/media/AudioTrack.java +1 −5 Original line number Diff line number Diff line Loading @@ -975,13 +975,9 @@ public class AudioTrack extends PlayerBase throw new UnsupportedOperationException( "Offload and low latency modes are incompatible"); } if (mAttributes.getUsage() != AudioAttributes.USAGE_MEDIA) { throw new UnsupportedOperationException( "Cannot create AudioTrack, offload requires USAGE_MEDIA"); } if (!AudioSystem.isOffloadSupported(mFormat, mAttributes)) { throw new UnsupportedOperationException( "Cannot create AudioTrack, offload format not supported"); "Cannot create AudioTrack, offload format / attributes not supported"); } } Loading Loading
media/java/android/media/AudioTrack.java +1 −5 Original line number Diff line number Diff line Loading @@ -975,13 +975,9 @@ public class AudioTrack extends PlayerBase throw new UnsupportedOperationException( "Offload and low latency modes are incompatible"); } if (mAttributes.getUsage() != AudioAttributes.USAGE_MEDIA) { throw new UnsupportedOperationException( "Cannot create AudioTrack, offload requires USAGE_MEDIA"); } if (!AudioSystem.isOffloadSupported(mFormat, mAttributes)) { throw new UnsupportedOperationException( "Cannot create AudioTrack, offload format not supported"); "Cannot create AudioTrack, offload format / attributes not supported"); } } Loading