Skip to content

Commit

Permalink
Merge pull request #2653 from maartenuni/patch-1
Browse files Browse the repository at this point in the history
DOC Update preferences.rst
  • Loading branch information
peircej committed Oct 15, 2019
2 parents 584d586 + 331425a commit 0188a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/api/preferences.rst
Expand Up @@ -6,7 +6,7 @@
You can set preferences on a per-experiment basis. For example, if you would like to use a specific :doc:`audio library</api/sound>`, but don't want to touch your user settings in general, you can import preferences and set the option :ref:`audioLib<generalSettings>` accordingly::

from psychopy import prefs
prefs.general['audioLib'] = ['pyo']
prefs.hardware['audioLib'] = ['pyo']
from psychopy import sound

**!!IMPORTANT!!** You must import the sound module **AFTER** setting the preferences. To check that you are getting what you want (don't do this in your actual experiment)::
Expand Down

0 comments on commit 0188a4e

Please sign in to comment.