Questions tagged [soundeffect]
90 questions
0
votes
3 answers
wp8 Soundeffect can't stop
I use soundeffect to play sound from byte array and all things go alright, but i cant stop playing the sound because no method called stop() in Soundeffect, how i can stop it ?
The code:
private void playFile(byte[] file)
{
try
…

Belal Ghanem
- 97
- 1
- 11
0
votes
2 answers
C# XNA SoundEffect.FromStream
I want to load on XNA SoundEffect.
I have tried to use:
SoundEffect.FromStream(TitleContainer.OpenStream(XXX));
The XXX is the addres but it require the address from the content and I want to search from the whole computer. Address…

user2320928
- 279
- 1
- 7
- 17
0
votes
1 answer
What is the equivalent of the SoundEffectInstance WP in WinRT,Win8?
I was using SoundEffectInstance. It was provide me playing more than 1 sound at same moment. How can I do it in Windows 8 Metro Style, WinRT applications?
Thank you for your help.

Tugrul Emre Atalay
- 918
- 1
- 9
- 28
0
votes
1 answer
How to play amr file in Windows Phone 8?
From what I read, WP8 does support amr
However, I don't know how to play it.
When using SoundEffect, I can't hear anything, maybe it's because SoundEffect supports wav only. Someone already asked here.
I don't want to use BackgroundAudioPlayer or…

onmyway133
- 45,645
- 31
- 257
- 263
0
votes
1 answer
Play sound in Chronometer after 30 seconds has passed
I have this stopwatch that needs to play a sound after 30, 45 and 60 seconds pass.
Here is my code:
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
…

lakyberry
- 15
- 1
- 8
0
votes
2 answers
How to check if sound effect is playing (Looping a BG Song)
Here is the setup I am rolling at the moment. Given this, how can I tell when the _BGMusic SoundEfect is over? I am running a game loop that cycles a few times a second and I ultimately want to loop this song.
using Microsoft.Xna.Framework;
using…

DotNetRussell
- 9,716
- 10
- 56
- 111
0
votes
1 answer
InvalidOperationException occured when trying to load wma file as SoundEffect using Microsoft.Xna.Framework
I get Invalid Operation Exception when trying to load WMA file (no DRM) as Sound Effect. My code:
public void LoadSound(String SoundFilePath, out SoundEffect Sound)
{
Sound = null;
try
{
// Holds…

PutraKg
- 2,226
- 3
- 31
- 60
0
votes
2 answers
Why won't this Audio play in Windows Phone 7?
I am trying to play audio in my Silverlight for Windows Phone 7 app. I have an MP3 audio file with its build action set to resource. To play the sound, I use:
SoundEffectInstance sfi = null;
...
Stream source =…

msbg
- 4,852
- 11
- 44
- 73
0
votes
1 answer
C# Surface (WPF) / Soundeffects -> Dictionary
due to the lack of Sound Effects in Microsoft Surface Applications I tried to built a "Sound bank" with sound files (.wav) in a Dictionary.
The sound file is short.
path = PathToFile
My "Sound bank":
Dictionary soundBank = new…

Markus Masquerade
- 154
- 1
- 9
0
votes
1 answer
How Do I Manage VOlume with iOS SoundEffect?
I'm playing a prerecorded sound using a technique from an apple sample:
// Set up the pieces needed to play a sound.
if (clickSound == NULL) {
NSBundle *mainBundle = [NSBundle mainBundle];
clickSound = [[SoundEffect alloc]…

Mike
- 3,084
- 1
- 25
- 44
0
votes
1 answer
looping sounds in windows phone 7
I am trying to get a sound to loop when a button is pressed, and then stop the sound when the same button is pressed again. I have multiple sounds that are playing at the same time (all are looping), all the sounds should be able to start and stop…

SomeGuy
- 64
- 1
- 9
-1
votes
1 answer
QML no audio from sound effect unless background music playing
I am running a QML app using Qt 5.14.2 and notice that my sound effects will not play (generate sound) unless I also have background music playing. I have confirmed with console logging no errors, valid audio file, etc. (11 kbps, 16-bit PCM, 1…

TSG
- 4,242
- 9
- 61
- 121
-1
votes
2 answers
Take sound effect from video
I need a digital typeing sound effect.when numbers are typed,Sound effect appears in background of the video.I want to make a program that when I press the keyboard, I also listen this sound effect.How can I find this sound effect or take from this…

dviddddd
- 43
- 10
-1
votes
2 answers
My code crashes if it tries to play a mp3 file, works fine for wav files
All my sound clips are in mp3, so I do not really feel like translating them tp wav.
If I try to play a mp3 file I get a exception, but the code works fine for .wav files.
I figure there must be a way to play mp3 files.
Stream s =…

Ted pottel
- 6,869
- 21
- 75
- 134
-2
votes
1 answer
Monogame: SoundEffect by clicking on a sprite
for my university, we have to start with learning Monogame/XNA on VisualStudio 2015. We have to make a Sprite which rotate in a circle and makes a soundeffect by clicking on it abd a soundeffect by missing it. But i can't figure it out how to make…

Sancho
- 1
- 2