Skip to content
Browse files

Update play_a_sound.markdown (#724)

The keyPressed(int key) compares (key == "p").  This should be (key == 'p')
  • Loading branch information
Almajester authored and arturoc committed Dec 9, 2019
1 parent 65fcd36 commit dd39680ad25349f3fdb408f3254143bd5a36d1b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 learning/04_sound/play_a_sound.markdown
@@ -38,7 +38,7 @@ Next, play the sound file. If you add this to the setup method, the sound will p
You can also trigger the play function for mousepress, keys, mousedrag, etc. For example,

void testApp::keyPressed (int key){
if(key == "p"){
if(key == 'p'){;

0 comments on commit dd39680

Please sign in to comment.
You can’t perform that action at this time.