Skip to content

Can't initialize new AudioTrack instance #1

@MasterEx

Description

@MasterEx

How to reproduce:

Click the Start/Stop button many times. App crashes.

The exception is thrown on AudioGenerator createPlayer().

The exception is about that:
AudioFlinger could not create track, status: -12
[android.media.AudioTrack ] Error code -20 when initializing AudioTrack.

Not sure why this is happening. My guess is that the AudioTrack binds some resources that later aren't properly released.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions