Questions tagged [soundeffectinstance]

10 questions
1
vote
1 answer

Find base SoundEffect of a SoundEffectInstance in C# WP7

WP7 suffers pretty severe performance penalties when too many sounds are played. I have an AudioManager that keeps track of SoundEffectInstances and prevents too many from playing at once. However, some things don't require an instance and simply…
profexorgeek
  • 1,190
  • 11
  • 21
1
vote
0 answers

Memory-safe way of audio playback in XNA

I am using XNA's SoundEffect class to play sounds in a game project. While the memory management of directly SoundEffect.Play()ing effects is relatively clear to me (SoundEffectInstances are internally created and added to lists, and their memory is…
ares_games
  • 1,019
  • 2
  • 15
  • 32
1
vote
1 answer

Can one know if a sound instance is currently playing in XNA SoundEffects?

Basically, I want to obtain the state of a given instance of SoundEffects in XNA 4.0. Is there a way to know whether a sound is currently playing or stopped?
ares_games
  • 1,019
  • 2
  • 15
  • 32
1
vote
0 answers

Sound not working in iOS for iPad

My game works fine in the simulator and on an actual iPod Touch device, but when I run it on my iPad 2 device the sound doesn't play and the sound effects don't play. Here is my code to start up the background music. Keep in mind this works on the…
user856232
  • 1,073
  • 2
  • 14
  • 40
0
votes
2 answers

Allow XNA SoundEffectInstance to play over itself

Essentially I have a sound effect which is played when two items collide in my game. Some of the items are quite close to each other so the sound effect may have to be played it quick succession. Using SoundEffect.Play() this works. However to save…
dannybrown
  • 1,083
  • 3
  • 13
  • 26
0
votes
1 answer

Alternative way of stopping music in soundeffect instance

I used soundeffect instance to play the background music. But I'm not able to stop the sound. I used Common class to play and stop sounds. Is there anyway to stop music while playing using soundeffectinstance?
0
votes
1 answer

XNA C# SoundEffectInstance - no sound

I'm trying to play SoundEffectInstances of loaded .wav files in my game, but I hear no sound whatsoever. I have a class "ETSound"; for which each object holds one sound. So one ETSound object might hold the 'menu open' sound, and another might hold…
Xenoprimate
  • 7,691
  • 15
  • 58
  • 95
0
votes
1 answer

Does SoundEffect.CreateInstance load from file everytime?

This is something which has been bugging me. If I create a SoundEffectInstance via SoundEffect.CreateInstance() I'm meant to dispose of it when I'm finished with it. SoundEffect.CreateInstance() does not use ContentManager as far as i can tell. So…
meds
  • 21,699
  • 37
  • 163
  • 314
0
votes
1 answer

How do I play a sound effect on MonoGame for Android?

I have an array of sound effect instances in a MonoGame project that I'm testing on an API 19 Android emulator. The sound effects are loaded from a folder called "Sound" in the "Assets/Content" folder. They are all in the ".wav" format. I can't…
Ben
  • 1,299
  • 3
  • 17
  • 37
0
votes
2 answers

Removing a SoundEffectInstance without using 'dispose' in C# XNA

I've run into a slight problem. When I restart my game (by running my own initialize method), I can successfully reload all my objects/variables. But the initial SoundEffectInstance I used continues to play while a new instance is created. This…
user4211737