Page MenuHome

Module 'aud' has no attribute 'device'
Closed, InvalidPublic


System Information
Operating system:linux 64bit
Graphics card:

Blender Version
Broken: (example: 2.80, 7c9e649015d4, master, 2019-05-09, as found on the splash screen)
Worked: (optional)

Short description of error

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

when i run script :

import aud

device = aud.device()
# load sound file (it can be a video file with audio)
factory = aud.Factory('music.ogg')

# play the audio, this return a handle to control play/pause
handle =
# if the audio is not too big and will be used often you can buffer it
factory_buffered = aud.Factory.buffer(factory)
handle_buffered =

I received an error message : AttributeError: module 'aud' has no attribute 'device'
And the sound will not play.



Event Timeline

Joerg Mueller (nexyon) closed this task as Invalid.May 10 2019, 9:34 AM

Blender 2.8 uses the latest version of audaspace where the aud API has changed considerably, please refer to the audaspace bindings API documentation.