Skip to content

Commit

Permalink
Merge branch 'DocReviews' of https://github.com/MrValentine7777/docs.…
Browse files Browse the repository at this point in the history
…monogame.github.io into DocReviews
  • Loading branch information
SimonDarksideJ committed May 30, 2024
2 parents 0ef0713 + 5821ce0 commit 2ab6d1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The **[SoundEffect.Play](xref:Microsoft.Xna.Framework.Audio.SoundEffect.Play)**
> The **MathHelper.Clamp** method is used to ensure that the pitch and volume values are within the valid range. The pitch value is clamped between -1 and 1, while the volume value is clamped between 0 and 1.

> [!NOTE]
> The check for the keypress does not prevent the call to the method repeating so any value entered may peak the value in a singe key press. To prevent this, you can add a delay to the key press check, or use a boolean value to check if the key has been pressed and released.
> The check for the keypress does not prevent the call to the method repeating so any value entered may peak the value in a single key press. To prevent this, you can add a delay to the key press check, or use a boolean value to check if the key has been pressed and released.

## Concepts

Expand Down

0 comments on commit 2ab6d1b

Please sign in to comment.