Skip to content

SampleRate methods for ios - #190

Open
MarkusKnochKenbun wants to merge 1 commit into
ryanheise:masterfrom
MarkusKnochKenbun:mk-darwin-samplerate
Open

SampleRate methods for ios#190
MarkusKnochKenbun wants to merge 1 commit into
ryanheise:masterfrom
MarkusKnochKenbun:mk-darwin-samplerate

Conversation

@MarkusKnochKenbun

@MarkusKnochKenbun MarkusKnochKenbun commented Sep 4, 2026

Copy link
Copy Markdown

Hi, thanks for the awesome package first of all!

For my use case I could really need some methods to set the preferred sample rate and to check on it. I have no experience in swift or objective c at all so the suggested addition has all been generated.

I'm also not quiet sure about the downstream effects of changing the preferred sample rate, but I need 16kHz for my machine learning pipeline use case. I use it in a flutter app with flutter_rust_bridge, in which I do multiplatform audio recording with cpal and sadly ios only gives me 48kHz.

I can always resample down the line in my hotpath but handling it to the source seems more elegant to me. I tested it on my iphone 12 and it seems to work.

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