Changes

Jump to navigation Jump to search
37 bytes removed ,  13:30, 13 June 2023
Line 23: Line 23:  
from psychopy import prefs
 
from psychopy import prefs
 
prefs.hardware['audioLib'] = ['PTB']
 
prefs.hardware['audioLib'] = ['PTB']
  −
#preBuffer – integer to control streaming/buffering -1 means store all
  −
piep = sound.Sound('1000hzsine.wav',preBuffer=-1)
      
# Pad naar het audiobestand
 
# Pad naar het audiobestand
Line 31: Line 28:     
# Laad het audiobestand
 
# Laad het audiobestand
audio = sound.Sound(audio_file)
+
# preBuffer – integer to control streaming/buffering -1 means store all
 +
audio = sound.Sound(audio_file,preBuffer=-1)
    
# Speel het audiobestand af
 
# Speel het audiobestand af

Navigation menu