Skip to content

Audio doesn't work on Android 16 QPR1 Beta 1 #6113

Open
@NeoSDAP

Description

@NeoSDAP

Please read the prerequisites to run scrcpy.

Also read the FAQ and check if your issue already exists.

Environment

  • OS: Windows 11 24H2 (11.0.26100.4061)
  • Scrcpy version: 3.2
  • Installation method: Windows release
  • Device model: Google Pixel 8a
  • Android version: 16 QPR1 Beta 1

Describe the bug

I received the Android 16 QPR1 Beta 1 update on my Pixel and after updating, I noticed that in version 3.2 of scrcpy the audio is not transmitted to the PC, but is still heard on the phone and the console throws an exception because of this.

With what I have tested, it seems that this is the only problem I have found, besides I do not know if it also affects the first release of Android 16.

C:\Users\SERIGRAFIA>scrcpy
scrcpy 3.2 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     -->   (usb)  42011JEKB19977                  device  Pixel_8a
C:\adb\scrcpy-server: 1 file pushed, 0 skipped. 6.9 MB/s (90888 bytes in 0.013s)
[server] INFO: Device: [Google] google Pixel 8a (Android 16)
INFO: Renderer: direct3d
INFO: Texture: 1080x2400
WARN: Demuxer 'audio': stream explicitly disabled by the device
[server] ERROR: Exception on thread Thread[audio-encoder,5,main]
java.lang.UnsupportedOperationException: Cannot create AudioRecord
        at android.media.AudioRecord$Builder.build(AudioRecord.java:1061)
        at com.genymobile.scrcpy.FakeContext$$ExternalSyntheticApiModelOutline0.m(D8$$SyntheticClass:0)
        at com.genymobile.scrcpy.audio.AudioDirectCapture.createAudioRecord(AudioDirectCapture.java:53)
        at com.genymobile.scrcpy.audio.AudioDirectCapture.startRecording(AudioDirectCapture.java:96)
        at com.genymobile.scrcpy.audio.AudioDirectCapture.start(AudioDirectCapture.java:125)
        at com.genymobile.scrcpy.audio.AudioEncoder.encode(AudioEncoder.java:235)
        at com.genymobile.scrcpy.audio.AudioEncoder.lambda$start$0$com-genymobile-scrcpy-audio-AudioEncoder(AudioEncoder.java:158)
        at com.genymobile.scrcpy.audio.AudioEncoder$$ExternalSyntheticLambda4.run(D8$$SyntheticClass:0)
        at java.lang.Thread.run(Thread.java:1119)

logcat txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions