Skip to content

Conversation

@MorganTrudeau
Copy link

This PR fixes this issue for me (https://github.com/hyochan/react-native-audio-recorder-player/issues/366). Seems there is conflict between some encodings and other settings. Right now there is no way to stop the library from sending default values. In this pull request if you provide custom audio settings it will only use those settings. If custom audio settings are not passed in then defaults are used.

Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! @MorganTrudeau Could you kindly check the comment?

AVLinearPCMIsNonInterleaved: avLPCMIsNonInterleaved ?? false,
AVEncoderBitRateKey: bitRate!
] as [String : Any]
let settings = customSettings.count > 0 ? customSettings : defaultSettings
Copy link
Owner

Choose a reason for hiding this comment

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

Wouldn't this ignore the default values when one of customSettings provided? For example, when AVSampleRateKey is provided, what are other default values be?

@hyochan hyochan added 🍗 enhancement New feature or request 📱 iOS Related to iOS labels Sep 16, 2023
@hyochan hyochan force-pushed the main branch 3 times, most recently from 11feb3a to 14b6492 Compare September 12, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍗 enhancement New feature or request 📱 iOS Related to iOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants