Skip to content

Commit

Permalink
Install libvorbis/libsndfile before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmauve committed Mar 2, 2021
1 parent 9aad69b commit 6a91aed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install sound libraries
run: |
sudo apt-get install libsndfile1 libvorbis0a
- name: Install xvfb
run: |
sudo apt-get install xvfb
Expand Down
5 changes: 3 additions & 2 deletions pgzero/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ def _load(self, path):
{1}
Pygame supports only uncompressed WAV files (PCM or ADPCM) and compressed
Ogg Vorbis files. Try re-encoding the sound file, for example using Audacity:
Pygame supports uncompressed WAV files (PCM or ADPCM), compressed Ogg Vorbis
files, or MP3s, depending on the codecs installed. Try re-encoding the sound
file, for example using Audacity:
http://audacityteam.org/
""".format(path, fmt).strip()) from None
Expand Down

0 comments on commit 6a91aed

Please sign in to comment.