Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 288

The audio component of a game, representing what the player will hear. Comprised of dialogue, music, and sound effects.

6 votes
Accepted

Sound emmiters with panning and volume in 2D

Use SoundEffect.CreateInstance(); to get a SoundEffectInstance of your chosen sound effect. You can then Play() that instance while modifying its Volume and Pan properties. Or, if it's a short, one- …
Andrew Russell's user avatar
5 votes
Accepted

Does SoundEffect.CreateInstance load from file everytime?

Of course, creating a SoundEffectInstance does allocate resources (audio voices, managed and probably unmanaged memory). …
Andrew Russell's user avatar
1 vote
Accepted

How can I get a set of raw samples from an audio file in XNA 4.0?

The same technique can be used for audio in other formats, but you will have to bring your own converter. Google may be able to help if you need to support other formats. …
Andrew Russell's user avatar
1 vote
Accepted

XACT support outside of XNA?

Or select another audio technology (possibly SoundEffect in XNA/MonoGame, possibly something else). …
Andrew Russell's user avatar