Difference between SoundEffect and SoundEffectInstance classes

As in the question, I do not understand what is the difference between these classes. What are the benefits and limitations for each class. I have read many textbooks and still can not decide what to do.

To make things clearer, I got AudioModule, AudioEmitterComponent and AudioListenerComponent. (Our game eninge is based on a component. When you create and create an object that is the source of some sounds (monster or sth), I add an emitter component .. and I have problems. I cannot figure out how to do this best. First I wanted the Audio Module to get a List, the same for listeners (as well as lists for wave and soundbanks). Now I have a problem, not the encoding itself (at the moment), but with the concept of what, where, when, why . ideas are valuable :)

+5
source share
1 answer

Think of it SoundEffectas a sound file. You can download them using the content manager.

SoundEffectInstance , .

SoundEffect Play. . SoundEffectInstance, , , . ( " ".)

SoundEffectInstance ( SoundEffect.CreateInstance) - , ( ..) . , ..

SoundEffectInstance, Dispose()!

, SoundEffectInstance ( ), 3D-. "" 3D-. 3D-, SoundEffectInstance.Apply3D ( , ). 3D- " MSDN.

+10

All Articles