Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Audio
(view source)
Revision as of 13:30, 13 June 2023
37 bytes removed
,
13:30, 13 June 2023
→Python
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
P.dewater
Administrators
168
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Help
About
About the TSG
About this Wiki
FAQ
Disclaimer
Survey
Customer Survey
Tools
Special pages
Printable version