Skip to content

Commit

Permalink
Refactor and improve audio module documentation
Browse files Browse the repository at this point in the history
  - Simplify module description
  - Combine constraints for wx
  - Enhance pyglet version note
  - Remove redundant punctuation
  • Loading branch information
oldgithubman committed Oct 13, 2024
1 parent 5ff04f9 commit c4248e8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions DisplayCAL/audio.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# -*- coding: utf-8 -*-
"""
Audio wrapper module
Audio wrapper module.
Can use SDL, pyglet, pyo or wx.
pyglet or SDL will be used by default if available.
Can use SDL, pyglet, pyo or wx. pyglet or SDL will be used by default if available.
pyglet can only be used if version >= 1.2.2 is available.
pyo is still buggy under Linux and has a few quirks under Windows.
wx doesn't support fading, changing volume, multiple concurrent sounds, and
only supports wav format.
wx doesn't support fading, changing volume, multiple concurrent sounds,
and only supports wav format.
Example:
sound = Sound("test.wav", loop=True)
Expand Down

0 comments on commit c4248e8

Please sign in to comment.