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

Audio queue manager, solution for #292 #462

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added the ability to set rate and channels on Sound
sockheadrps committed Apr 23, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit a6a0b18ef3b0afd740a7852dc15b66f2b1d8a16d
10 changes: 10 additions & 0 deletions twitchio/ext/sounds/__init__.py
Original file line number Diff line number Diff line change
@@ -216,11 +216,21 @@ def channels(self):
"""The audio source channels."""
return self._channels

@channels.setter
def channels(self, channels):
"""Set audio source channels."""
self._channels = channels

@property
def rate(self):
"""The audio source sample rate."""
return self._rate

@rate.setter
def rate(self, rate):
"""Set audio source sample rate."""
self._rate = rate

@property
def source(self):
"""The raw audio source."""