![]() static createFromPTBDesc ( desc ) ¶Ĭreate an AudioDevice instance with values populated using aĭescriptor ( dict) returned from the PTB audio.get_devices API call. start () # start recording sound property audioLib ¶Īudio library used to query device information ( str). Microphone ( device = recordingDevice ) mic. getDevices () recordingDevice = recordingDevicesList # pass the descriptor to microphone to configure it mic = sound. # get the first suitable capture device found by the sound engine recordingDevicesList = sound. Properties of this descriptor (e.g., 'ptb' for Psychtoolbox). InputLatency ( tuple) – Low ( float) and high ( float) input latency in milliseconds.ĭefaultSampleRate ( int) – Default sample rate for the device in Hertz (Hz).ĪudioLib ( str) – Audio library that queried device information used to populate the InputChannels ( int) – Number of input channels. OutputLatency ( tuple) – Low ( float) and high ( float) output latency in milliseconds. OutputChannels ( int) – Number of output channels. HostAPIName ( str) – Human-readable name of the host API used for audio. This number is specific to theĭeviceName ( str) – Human-readable name of the device. This class is usually instanced only by callingĪvoid creating instances of this class themselves unless they have goodĭeviceIndex ( int) – Enumerated index of the audio device. Properties associated with this class provide information about a specificĪudio playback or recording device. ![]() AudioDeviceInfo ( deviceIndex = - 1, deviceName = 'Null Device', hostAPIName = 'Null Audio Driver', outputChannels = 0, outputLatency = 0.0, 0.0, inputChannels = 0, inputLatency = 0.0, 0.0, defaultSampleRate = 48000, audioLib = '' ) ¶ĭescriptor for an audio device (playback or recording) on this system. All other trademarks are property of their respective owners.Details ¶ class psychopy.sound. Qt and respective logos are trademarks of The Qt Company Ltd. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Returns true if this QAudioDevice class represents the same audio device as other.ĭocumentation contributions included herein are the copyrights of Returns true if this QAudioDevice class represents a different audio device than other bool QAudioDevice:: operator=(const QAudioDevice & other) const bool QAudioDevice:: operator!=(const QAudioDevice & other) const void QAudioDevice:: swap( QAudioDevice & other) Returns a list of supported sample types. QList QAudioDevice:: supportedSampleFormats() const
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |