Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b04e113 authored by Chen Chen's avatar Chen Chen Committed by Gerrit Code Review
Browse files

Merge "SpatialAudio: Init codec and buffer size from startStream()"

parents 72358dab 0a68a920
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ package android.hardware.bluetooth.audio;
@VintfStability
interface IBluetoothAudioPort {
  android.hardware.bluetooth.audio.PresentationPosition getPresentationPosition();
  void startStream();
  void startStream(boolean isLowLatency);
  void stopStream();
  void suspendStream();
  void updateSourceMetadata(in android.hardware.audio.common.SourceMetadata sourceMetadata);
+4 −1
Original line number Diff line number Diff line
@@ -47,8 +47,11 @@ interface IBluetoothAudioPort {
     * This indicates that the caller of this method has opened the data path
     * and wants to start an audio stream. The caller must wait for a
     * IBluetoothAudioProvider.streamStarted(Status) call.
     *
     * @param isLowLatency true if the stream being started with the latency
     * control mechanism.
     */
    void startStream();
    void startStream(boolean isLowLatency);

    /**
     * This indicates that the caller of this method wants to stop the audio
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ class BluetoothAudioPort : public BnBluetoothAudioPort {
 public:
  BluetoothAudioPort() {}

  ndk::ScopedAStatus startStream() { return ScopedAStatus::ok(); }
  ndk::ScopedAStatus startStream(bool) { return ScopedAStatus::ok(); }

  ndk::ScopedAStatus suspendStream() { return ScopedAStatus::ok(); }

+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ bool BluetoothAudioSession::StartStream() {
               << " has NO session";
    return false;
  }
  auto hal_retval = stack_iface_->startStream();
  auto hal_retval = stack_iface_->startStream(false);
  if (!hal_retval.isOk()) {
    LOG(WARNING) << __func__ << " - IBluetoothAudioPort SessionType="
                 << toString(session_type_) << " failed";