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

Make changes to the PlaySound action #167

Merged
merged 1 commit into from
Nov 15, 2019
Merged

Make changes to the PlaySound action #167

merged 1 commit into from
Nov 15, 2019

Conversation

drmfinlay
Copy link
Member

  • Add documentation and examples.
    Re: Missing documentation #77.

  • Implement the action for other platforms using PyAudio.
    I've tested that the action works perfectly on Windows, Mac OS and Linux-based systems.
    pyaudio is effectively a soft-dependency on platforms other than Windows. PlaySound will raise an error when executed if pyaudio isn't installed.

  • Make the action play sound synchronously instead because it avoids having to handle file queues and errors from other threads.

Although this PR removes the last internal use of dragonfly/os_dependent_mock.py, I'm leaving it in because Caster's tests make use of the file's MockAction class.

- Add documentation and examples.
- Implement the action for other platforms using PyAudio.
- Make the action play sound synchronously instead because it
  avoids having to handle file queues and errors from other
  threads.
@drmfinlay drmfinlay added Enhancement Enhancement existing feature Documentation Issues related to documentation Linux/X11 Issue regarding Linux or X11 support Windows Issues regarding Microsoft Windows OS MacOS Issue regarding Apple PC OS labels Nov 15, 2019
@drmfinlay drmfinlay self-assigned this Nov 15, 2019
@drmfinlay drmfinlay merged commit 4d99d46 into master Nov 15, 2019
@drmfinlay drmfinlay deleted the playsound-changes branch November 15, 2019 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues related to documentation Enhancement Enhancement existing feature Linux/X11 Issue regarding Linux or X11 support MacOS Issue regarding Apple PC OS Windows Issues regarding Microsoft Windows OS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant