Line 76: |
Line 76: |
| <pre> | | <pre> |
| sound{ | | sound{ |
− | wavefile{
| + | wavefile{ |
− | filename = "beep.wav"; # The name of the sound file.
| + | filename = "beep.wav"; # The name of the sound file. |
− | preload=true; # Make sure that the sound is loaded before it is actually used.
| + | preload=true; # Make sure that the sound is loaded before it is actually used. |
− | }myWave;
| + | }myWave; |
| }mySound; | | }mySound; |
| </pre> | | </pre> |
Line 92: |
Line 92: |
| sub prepareTrial | | sub prepareTrial |
| begin | | begin |
− | myWave.unload();
| + | myWave.unload(); |
− | myWave.set_filename("beep.wav"); # or read the name from a trial list.
| + | myWave.set_filename("beep.wav"); # or read the name from a trial list. |
− | myWave.load();
| + | myWave.load(); |
| end; | | end; |
| </pre> | | </pre> |