Welcome
Installation
Getting Started
User Interaction
Build a Game #1
Build a Game #2
Build a Game #3
Colours
Coordinates
API Reference
Globals
Window
Camera
Mouse
Key
Rect
Image
Text
Shape
Line
Screen
Sound
Base
Sound
The Sound class is for playing music and sound effects.
__init__(name = PICKUP)
Call the sound initialiser.
name: strThe path to the audio file. Can also be
PICKUPorBLIP.
amp: float
Get the current amplitude (volume) of the audio playback.
samples: (float, ...)
Extract the raw PCM data from the audio as a tuple of floats.
playing: bool
True when the audio is playing.
paused: bool
True when the audio has been paused.