Skip to content

Broken Examples: audio not available #21

@leighmhart

Description

@leighmhart

Hi, I'm having a great time with my Galactic Unicorn (Pico W) - I also wasted an hour trying to flash Pico 2 W Galactic instead of Pico W Galactic but once I got past that PEBKAC, I was trying out some of the 1.24.3 audio examples at https://github.com/pimoroni/unicorn/tree/v1.24.3/examples/galactic_unicorn/audio but sadly get an error:

>>>
Traceback (most recent call last):
  File "<stdin>", line 6, in <module>
ImportError: no module named 'audio'

I'm trying the simple_playback.py example:

from audio import WavPlayer

sound = WavPlayer(0, 10, 11, 9, amp_enable=22)

sound.play_wav("beepboop.wav", False)

while sound.is_playing():
    pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions