Skip to content

Conversation

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Feb 22, 2025

superseded by #5870.

Only enable them if SC_AUDIO_REGULATOR_DEBUG is set, as they may spam
the output.
Report the number of silence samples inserted due to underflow every
second, along with the other metrics.
The audio regulator assumed a continuous audio stream. But some audio
sources (like the "voice call" audio source) do not produce any packets
on silence, breaking this assumption.

Use PTS to detect such discontinuities.

TODO: if PTS values are broken, the detection is also broken.
Store the target audio source integer (one of the constants in
android.media.MediaRecorder.AudioSource) in the AudioSource enum (or -1
if not relevant).

This will simplify adding new audio sources.
@rom1v rom1v closed this Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants