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

ASIO: add PaAsio_GetSampleRate() function #971

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Spacechild1
Copy link

@Spacechild1 Spacechild1 commented Oct 21, 2024

PaAsio_GetSampleRate() returns the current sample rate of the specified device at the time of library initialization.
(If the current sample rate is unknown, a sample rate of 0 will be returned.)

For example, this is useful for people who want to use the current sample rate as the default sample rate (which PA's ASIO implementation does not do.)

Actually, I would rather prefer the solution proposed in #970, but if this is not desired, this PR would be an acceptable workaround.

However, the function would still be useful for other purposes, e.g. to select the "current" sample rate - instead of the "default" sample rate - in a UI dialog.

returns the current sample rate of the specified device at the time of library initialization.
If the current sample rate is unknown, a sample rate of 0 will be returned.
@RossBencina RossBencina added the src-asio Steinberg ASIO Host API /src/hostapi/asio label Oct 28, 2024
@philburk philburk added the P3 Priority: Normal label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Priority: Normal src-asio Steinberg ASIO Host API /src/hostapi/asio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants