Skip to content

Commit fa9f3dc

Browse files
committed
fix example code typo in sound chapter
1 parent f252d9b commit fa9f3dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/sound/chapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This is fine for adding some background music or ambiance to your app, but ofSou
3939
"Multiplay" allows you to have a file playing several times simultaneously. This is great for any sound effect which might end up getting triggered rapidly, so you don't get stuck with an unnatural cutoff as the player's playhead abruptly jumps back to the beginning of the file. Multiplay isn't on by default. Use `soundPlayer.setMultiPlay(true)` to enable it. Then you can get natural sound effect behaviour with dead-simple trigger logic like this:
4040
4141
```cpp
42-
if ( thingHappened )
42+
if ( thingHappened ) {
4343
soundPlayer.play();
4444
}
4545
```

0 commit comments

Comments
 (0)