Loading api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -3539,6 +3539,7 @@ package android.media { } public class HwAudioSource { method public boolean isPlaying(); method public void start(); method public void stop(); } Loading media/java/android/media/HwAudioSource.java +9 −0 Original line number Diff line number Diff line Loading @@ -129,12 +129,21 @@ public class HwAudioSource extends PlayerBase { * Starts the playback from {@link AudioDeviceInfo}. */ public void start() { Preconditions.checkState(!isPlaying(), "HwAudioSource is currently playing"); baseStart(); mNativeHandle = AudioSystem.startAudioSource( mAudioDeviceInfo.getPort().activeConfig(), mAudioAttributes); } /** * Checks whether the HwAudioSource player is playing. * @return true if currently playing, false otherwise */ public boolean isPlaying() { return mNativeHandle != 0; } /** * Stops the playback from {@link AudioDeviceInfo}. */ Loading Loading
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -3539,6 +3539,7 @@ package android.media { } public class HwAudioSource { method public boolean isPlaying(); method public void start(); method public void stop(); } Loading
media/java/android/media/HwAudioSource.java +9 −0 Original line number Diff line number Diff line Loading @@ -129,12 +129,21 @@ public class HwAudioSource extends PlayerBase { * Starts the playback from {@link AudioDeviceInfo}. */ public void start() { Preconditions.checkState(!isPlaying(), "HwAudioSource is currently playing"); baseStart(); mNativeHandle = AudioSystem.startAudioSource( mAudioDeviceInfo.getPort().activeConfig(), mAudioAttributes); } /** * Checks whether the HwAudioSource player is playing. * @return true if currently playing, false otherwise */ public boolean isPlaying() { return mNativeHandle != 0; } /** * Stops the playback from {@link AudioDeviceInfo}. */ Loading