PortalGun icon indicating copy to clipboard operation
PortalGun copied to clipboard

Adding Audio Support

Open setiupyguppie opened this issue 9 years ago • 3 comments

I'm very interested in adding audio support for this project.

I've considered extending the hardware to include an Adafruit Audio FX Board (https://www.adafruit.com/product/2210) and triggering audio playback via the GPIO, from within your code.

I was thinking of perhaps simply including a portal creation sound, but perhaps other UI sounds, too.

Any tips, or prototype code you could ping my way to help get me started? I think this would make for a great "complete" solution.

setiupyguppie avatar Nov 16 '16 14:11 setiupyguppie

Check out the SFX branch of this project. All the code, sound files, and wiring guides are in place. It wasn't compelling enough for me to continue work on it, but that was mostly due to time constraints around Halloween.

Pitfalls you'll run into: The speakers may be muffled and quiet inside the case, and the battery will drain much faster. The SFX board doesn't have a low power sleep mode, unfortunately

pomeroyb avatar Nov 16 '16 19:11 pomeroyb

This is excellent news!... I'll give it a try the minute my hardware arrives! :)

setiupyguppie avatar Nov 17 '16 12:11 setiupyguppie

I'm about to start this project. How did installing the SFX board work out?

MrBelm avatar Jan 27 '17 20:01 MrBelm