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

feat: Set sample_rate and channel_count via objc interface #48

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

uohzxela
Copy link
Contributor

@uohzxela uohzxela commented Jun 2, 2024

Problem: I'm not able to set channel_count and sample_rate in StreamConfiguration as a consumer of this library.

Solution: Wire up the setter calls to the actual operations to set the aforementioned attributes via objc interface.

Testing: Tested on my Macbook. I'm able to update the aforementioned attributes and see the changes reflected in the channel count and sample rate of the audio samples that I'm receiving in did_output_sample_buffer callback.

Reviewer guidance: I am only adding the missing attributes that I need. I'm aware that there are still remaining attributes that are not set via objc interface but decided to only focus on sample_rate and channel_count attributes in this PR since I have high confidence that they would work from my local testing.

Problem: I'm not able to set `channel_count` and `sample_rate` in StreamConfiguration as a consumer of this library.

Solution: Wire up the setter calls to the actual operations to set the aforementioned attributes via objc interface.

Testing: Tested on my Macbook. I'm able to update the aforementioned attributes and see the changes reflected in the channel count and sample rate of the audio samples that I'm receiving in `did_output_sample_buffer` callback.

Reviewer guidance: I am only adding the missing attributes that I need. I'm aware that there are still remaining attributes that are not set via objc interface but decided to only focus on `sample_rate` and `channel_count` attributes in this PR since I have high confidence that they would work from my local testing.

Signed-off-by: Alex Jiao <[email protected]>
@1313 1313 merged commit 9a6b9f3 into doom-fish:main Jun 2, 2024
@1313
Copy link
Collaborator

1313 commented Jun 2, 2024

Cool 😎

1313 added a commit that referenced this pull request Oct 22, 2024
* main:
  Update README.md
  Update README.md
  feat: Set sample_rate and channel_count via objc interface (#48)
  fix: pass correct args to content filter init methods (#47)
  update changelog
  feat: add support for shows_cursor (#45)
  fix changelog
  v0.2.7
  v0.2.7
  Fix ShareableContent when permissions are missing (#42)
  remove bad code
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.

2 participants