Skip to content

PulseAudio: get preferredSampleRate#213

Merged
radarsat1 merged 2 commits intothestk:masterfrom
sreimers:master
Feb 24, 2020
Merged

PulseAudio: get preferredSampleRate#213
radarsat1 merged 2 commits intothestk:masterfrom
sreimers:master

Conversation

@sreimers
Copy link
Contributor

@sreimers sreimers commented Sep 4, 2019

This is a basic proof of concept to get the really preferred sample rate from pulseaudio async api.

@garyscavone
Copy link
Contributor

I don't have an easy way to test this. You say a "proof of concept". Is it something that should be merged?

@sreimers
Copy link
Contributor Author

i've been using the code in my studio link project for several months now and haven't had any user complaints, so i think it should be safe to merge it. its the only way to get the real samplerate so i can resample if necessary.

@radarsat1
Copy link
Contributor

I'll test it

@radarsat1
Copy link
Contributor

Yes, it seems to work reliably, and I don't see a cleaner way to do this, so I'll merge. Leaving the default 48000 for now too since I don't see any examples in other APIs where it can be left as 0 so I assume user code assumes it is non-zero.

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.

3 participants

Comments