lucidtrio.blogg.se

Psychopy sound latency test
Psychopy sound latency test













""" assert isinstance ( desc, dict ) # required fields, sanity check to see if something changed in PTB land reqFields = assert all () audioDevDesc = AudioDeviceInfo ( deviceIndex = desc, deviceName = desc, hostAPIName = desc, outputChannels = desc, outputLatency = ( desc, desc ), inputChannels = desc, inputLatency = ( desc, desc ), defaultSampleRate = desc, audioLib = AUDIO_LIBRARY_PTB ) # queried with psychtoolbox return audioDevDesc def audioLib ( self ): """Audio library used to query device information (`str`).""" return self. Returns - AudioDeviceInfo Audio device descriptor with properties set using `desc`. Parameters - desc : dict Audio device descriptor returned from Psychtoolbox's `get_devices` function. def createFromPTBDesc ( desc ): """Create an `AudioDevice` instance with values populated using a descriptor (`dict`) returned from the PTB `audio.get_devices` API call. # For voice recording applications, the recommended sample rate is `Voice` # (16kHz) and should appear as the default option in preferences and UI # dropdowns. Persons using PsychoPy as a library would typically # use constants `SAMPLE_RATE_*` instead of looking up values in here. Used internally by the PsychoPy UI for # dropdowns and preferences. _all_ = from import * # audio library identifiers AUDIO_LIBRARY_PTB = 'ptb' # PsychPortAudio from Psychtoolbox # Quality levels as strings and values.

psychopy sound latency test psychopy sound latency test

#PSYCHOPY SOUND LATENCY TEST LICENSE#

# Distributed under the terms of the GNU General Public License (GPL). """ # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2022 Open Science Tools Ltd. #!/usr/bin/env python # -*- coding: utf-8 -*- """Classes and functions for managing audio devices.













Psychopy sound latency test