Jump to: navigation, search


912 bytes added, 13:30, 1 April 2019
Added examples on how to present audio in Presentation
In Neurobs Presentation please use *exclusive mode* to get the best audio performance. This means that no other programs
can use the audio device while the experiment runs.
[[File:SoundSettings.png|thumb|Presentation Mixer Settings]]
The maximum audio delay in Presentation on a lab computer at the faculty of social sciences is 24 ms. If better performance
is necessary or more understanding is needed about the components of this delay, please read our page about [[audio delay]].
'''How to present sounds in Presentation'''
in SDL:
filename = "beep.wav"; # The name of the sound file.
preload=true; # Make sure that the sound is loaded before it is actually used.
Make sure to use '''preload = true;'''. This ensures that the sound is loaded into memory before the sound is used.
in PCL:
Prepare your stimuli during Inter Trial Interval, when there is enough time to do that. First, unload the previous sound, set the filename property to the new soundfile and load it.
sub prepareTrial
myWave.set_filename("beep.wav"); # or read the name from a trial list.
During your experiment the sound is presented by:
startOfPlaycall = clock.time();
endOfPlaycall = clock.time();
== Troubleshooting ==

Navigation menu