Skip to content

Commit

Permalink
Set audiosystem_autostart to False for Expyriment
Browse files Browse the repository at this point in the history
Set audiosystem_autostart to *False*. This skips the `mixer.init()' in [_experiment_control.py
](https://github.com/smathot/expyriment/blob/master/expyriment/control/_experiment_control.py#L303) as it is initialized by openexp.sampler._legacy.init_sound(). This further fixes #541
  • Loading branch information
JdenHartog authored and smathot committed Aug 17, 2017
1 parent d82badc commit 7550efd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openexp/_canvas/xpyriment.py
Expand Up @@ -265,6 +265,7 @@ def init_display(experiment):
control.defaults.audiosystem_channels = experiment.var.sound_channels
control.defaults.audiosystem_buffer_size = \
experiment.var.sound_buf_size
control.defaults.audiosystem_autostart = False

# Initialize. If Expyriment jumps into interactive mode, it reads from
# the stdin, and crashes. Thus we explicitly disable the interactive-
Expand Down

0 comments on commit 7550efd

Please sign in to comment.