Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
fixed python 3.7 compatibility issue in demo playback.
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Oct 27, 2018
1 parent b115825 commit ce20c5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -75,6 +75,19 @@ by the program. For this I'm using a copy of [my software FM-synthesizer](https:
The Python zip app script creates two versions of this game, one with the sound files included,
and another one ()that is much smaller) without the sound files because it uses the synthesizer.

### Hearing no sound? Configure the correct output audio device
On some systems, the portaudio system audio library seems to report a wrong
default output audio device. In this case, you may get an ``IOError``
(describing the problem). You can also get another error (or no sound output at all,
without any errors at all...) If this happens, you can configure the output audio device
that should be used:

Either set the ``PY_SYNTHPLAYER_AUDIO_DEVICE`` environment variable to the correct device number,
or set the ``synthplayer.playback.default_audio_device`` parameter at the start of your code.
(The environment variable has priority over the code parameter)

To find the correct device number you can use the command ``python -m sounddevice``.


## The title screen

Expand Down
2 changes: 1 addition & 1 deletion bouldercaves/gamelogic.py
Expand Up @@ -1168,7 +1168,7 @@ def decompressed(self, demo: Sequence[int]) -> Generator[Direction, None, None]:
for step in demo:
d = step & 0x0f
if d == 0:
raise StopIteration
break
direction = {
0x0f: Direction.NOWHERE,
0x07: Direction.RIGHT,
Expand Down

0 comments on commit ce20c5e

Please sign in to comment.