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

Using only custom audio settings if provided #549

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MorganTrudeau
Copy link

This PR fixes this issue for me (#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
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.

None yet

2 participants