Skip to content

PsychoPy: pyo instead of pygame audio #3

@petteriTeikari

Description

@petteriTeikari

Upgrade at some point to pyo library for sound rather than the default pygame for better latency performance. During development, the pyo worked some of the time, but then with some settings with some runs had distorted sound and on some runs did not produce sound at all with Ubuntu (Studio) 12.04.

See also PsychoPy/pyo discussions:
Latency of sound file is not consistent across trials
playing sounds using pyo; speech onset RT
Playing mono files from both speakers + option to play & immediately return

Might require better understanding of ALSA and JACK (Audio Connection Kit)

alsa_basic_structure

4168078901_f6978cdc95_o

Further links:
ALSA: Linux Low latency howto
ALSA: Usb-audio
scheduling latency tests / high performance low latency audio by Benno Senoner
Raspberry Pi and realtime, low-latency audio
Real-time Linux: Installation on Ubuntu
Soundcard w/low jitter?
State of sound in Linux not so sorry after all
Real Time [Linux-Sound]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions