Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Add many audio sources (including voice) #5869

Closed
wants to merge 5 commits into from
Closed

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.

1 participant