Connecting Bluetooth Speaker from Bluetooth in Control Panel on a Paused or Stopped Stream Doesn't call Error Callback for MMAP Streams
- Dominant language
- C++
- Stars
- 4.1k
- Forks
- 639
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 8
Description
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]
Contributor guide
Assessment
This issue has not been assessed yet.