Changes

4 bytes added ,  23:51, 25 October 2021
m
Text replacement - "<br>" to "<br />"
Line 143: Line 143:  
<dd>
 
<dd>
 
If desired, you can pitch shift a sound at intervals of 100 per half step, with 1200 being the pitch of the original sample.
 
If desired, you can pitch shift a sound at intervals of 100 per half step, with 1200 being the pitch of the original sample.
<br>
+
<br />
 
To play a sound at a higher or lower pitch, for the current player only with no specific location, you can call the <tt>Game1.playSoundPitched()</tt> method:
 
To play a sound at a higher or lower pitch, for the current player only with no specific location, you can call the <tt>Game1.playSoundPitched()</tt> method:
 
<syntaxhighlight lang="c#">
 
<syntaxhighlight lang="c#">
Line 201: Line 201:  
===Playing multiplayer sounds===
 
===Playing multiplayer sounds===
 
The methods in this section will let you play sounds across different clients in a multiplayer game.
 
The methods in this section will let you play sounds across different clients in a multiplayer game.
<br>
+
<br />
 
Sounds played with multiplayer methods will run in singleplayer as well as multiplayer.
 
Sounds played with multiplayer methods will run in singleplayer as well as multiplayer.
  
106,342

edits