Skip to content

Fixing error, WaveFile moved to audiocore #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 16, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion adafruit_pyportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import displayio
from adafruit_display_text.label import Label
import audioio
import audiocore
import rtc
import supervisor
from adafruit_io.adafruit_io import IO_HTTP, AdafruitIO_RequestError
Expand Down Expand Up @@ -628,7 +629,7 @@ def play_file(self, file_name, wait_to_finish=True):

"""
wavfile = open(file_name, "rb")
wavedata = audioio.WaveFile(wavfile)
wavedata = audiocore.WaveFile(wavfile)
self._speaker_enable.value = True
self.audio.play(wavedata)
if not wait_to_finish:
Expand Down