Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Is there a way of adding extra sound effects, without finding our own sound files from the internet?

The requirement for this project says "OPTIONAL: Add two sound effects, one for correct answers and one for incorrect. You may also add sounds at game end, or wherever else you see fit. (Hint: you can base your solution on code already found in the starter app."

1 Answer

Hi Faris,

You can play a system sound. There is (I believe) only one sound available to 3rd party apps, and that's the keyboard click sound, Tock.aiff. Not sure if you're using Swift or Objective-C, but here's a Stack Overflow answer showing how to play the Tock sound in Objective-C. Should be easy to translate to Swift if that's what you're using.

Cheers :beers:

-Greg