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

Update Settings.sampleRate for iOS 18 #165

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

NickCulbertson
Copy link
Member

In iOS 18, the default device sample rate goes from 44_100 to 48_000. This PR checks the AVAudioSession's sampleRate and updates Settings.sampleRate if needed (current default is 44_100).

Additionally, this change could be applied to how the value is initialized in the Settings class of the AudioKit package.

@@ -20,7 +20,7 @@ let package = Package(
.package(url: "https://github.com/AudioKit/Waveform", branch: "visionos"),
.package(url: "https://github.com/AudioKit/Flow", from: "1.0.0"),
.package(url: "https://github.com/AudioKit/PianoRoll", from: "1.0.0"),
.package(url: "https://github.com/orchetect/MIDIKit", from: "0.9.4"),
.package(url: "https://github.com/orchetect/MIDIKit", from: "0.9.7"),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comma Spacing Violation: There should be no space before and one after any comma. (comma)
Trailing Comma Violation: Collection literals should not have trailing commas. (trailing_comma)

@@ -20,7 +20,7 @@ let package = Package(
.package(url: "https://github.com/AudioKit/Waveform", branch: "visionos"),
.package(url: "https://github.com/AudioKit/Flow", from: "1.0.0"),
.package(url: "https://github.com/AudioKit/PianoRoll", from: "1.0.0"),
.package(url: "https://github.com/orchetect/MIDIKit", from: "0.9.4"),
.package(url: "https://github.com/orchetect/MIDIKit", from: "0.9.7"),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comma Spacing Violation: There should be no space before and one after any comma. (comma)
Trailing Comma Violation: Collection literals should not have trailing commas. (trailing_comma)

@NickCulbertson NickCulbertson merged commit 7148d40 into AudioKit:main Sep 6, 2024
2 of 3 checks passed
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