Changes

Jump to navigation Jump to search
794 bytes added ,  15:48, 1 April 2019
no edit summary
Line 104: Line 104:  
endOfPlaycall = clock.time();
 
endOfPlaycall = clock.time();
 
</pre>
 
</pre>
 +
 +
Please note that the moment when the sound can actually be heard from the speakers is later then the moment when the '''mySound.present()''' function is called. The function itself takes some (variable) time to execute. That time can, in the example above, be calculated by '''endOfPlaycall - startOfPlaycall'''. Then, some additional time is required before the sound actually is heard from the speakers. In our labs, that additional delay (from '''endOfPlaycall''' until actual sound onset) is about 5 to 8 milliseconds [March 2019]. When your experiment requires an exact knowledge about when the sound actually plays from the speakers, you need additional hardware, for instance a buttonbox with a soundkey.
 +
 +
More information about sound delays is found on our page about [[audio delay]].
    
== Troubleshooting ==
 
== Troubleshooting ==

Navigation menu