-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Labels
bugA defect in the libraryA defect in the librarymanager-streaming-audioRelating to the manager layer - audio streamingRelating to the manager layer - audio streaming
Description
When disconnecting from a TDK there is always a StreamPacketizer thread that remains running in the app and eating the CPU.
The run loop in the StreamPacketizer keeps reading from the InputStream and returns -1, it never exits.
I have traced the problem down to the audio stream, once it is started, it does not get cleaned-up when the proxy session ends.
Calling endPCM() in onProxyClosed does not work, it just returns false because the SdlSession object is different than the one used to start the audio stream.
As it is right now there is no elegant way to stop an audio stream when connecting/disconnecting to the
TDK without the StreamPacketizer thread hanging.
100% Reproducible on SDL 4.3 and 4.4. Tried with various devices.
Metadata
Metadata
Assignees
Labels
bugA defect in the libraryA defect in the librarymanager-streaming-audioRelating to the manager layer - audio streamingRelating to the manager layer - audio streaming