oboe icon indicating copy to clipboard operation
oboe copied to clipboard

Connecting Bluetooth Speaker from Bluetooth in Control Panel on a Paused or Stopped Stream Doesn't call Error Callback for MMAP Streams

Open RichardXiao13 opened this issue 2 years ago • 6 comments
trafficstars

Android version(s): 12 Android device(s): Samsung S10e, Pixel 6? (don't remember pixel version) Oboe version: 1.7.4 App name used for testing: OboeTester (Please try to reproduce the issue using the OboeTester or an Oboe sample.)

Short description (Please only report one bug per Issue. Do not combine multiple bugs.) Connecting a bluetooth speaker from the bluetooth button in the control panel on a paused or stopped MMAP stream won't call the error callback for MMAP stream.

Steps to reproduce

  1. Turn off bluetooth from the control panel
  2. Open a MMAP stream in Test Output in OboeTester
  3. Start the stream.
  4. Pause or Stop the stream.
  5. Turn on bluetooth from the control panel and connect a speaker.
  6. Start the stream again.
  7. Audio continues to play out of the device speaker rather than display an error.

Expected behavior OboeTester should display an error with code -869 or something similar.

Actual behavior Audio continues playing from the device speaker.

Device Samsung S10e

ro.product.brand = samsung ro.product.manufacturer = samsung ro.product.model = SM-G970U ro.product.device = beyond0q ro.product.cpu.abi = arm64-v8a ro.build.description = beyond0qltesq-user 12 SP1A.210812.016 G970USQS6HVC6 release-keys ro.hardware = qcom ro.hardware.chipname = SM8150 ro.arch = | grep aaudio = [aaudio.hw_burst_min_usec]: [2000] [aaudio.mmap_exclusive_policy]: [2] [aaudio.mmap_policy]: [2]

RichardXiao13 avatar Jul 19 '23 00:07 RichardXiao13

I used Apple Air Pods Pro as the Bluetooth speaker if it helps.

RichardXiao13 avatar Jul 19 '23 00:07 RichardXiao13

@RichardXiao13 - Thanks for the detailed repro steps.

I could not reproduce this on Pixel 7 Pro using Pixel Buds. The stream closed when I connected my Pixel Buds. Then when I hit START I got an error -869.

@robertwu1 - could you test on your Samsung device?

philburk avatar Jul 19 '23 22:07 philburk

A similar but different issue occurs for me #1874

robertwu1 avatar Jul 26 '23 19:07 robertwu1

Can you try the latest OboeTester with #1875?

robertwu1 avatar Jul 26 '23 21:07 robertwu1

@robertwu1 Still not working for me.

RichardXiao13 avatar Jul 27 '23 16:07 RichardXiao13

@RichardXiao13 wrote:

Still not working for me.

Did you try the latest OboeTester from Play Store or from building the GitHub source?

What is your OboeTester version number from the main screen?

philburk avatar Aug 23 '23 22:08 philburk