Questions tagged [soundeffect]
90 questions
1
vote
1 answer
AVAudioPlayer in Sprite Kit 'Failed to load resource' reason resource 'could not load sound.caf'
I am trying to play a sound effect when the user presses a correct answer. Here is the code:
if ([node.name isEqualToString:correctAnswer]) {
[self runAction:[SKAction playSoundFileNamed:@"correct.caf" waitForCompletion:NO]];
}
When I run the…

PoKoBros
- 701
- 3
- 9
- 25
1
vote
2 answers
how to loop a sound effect in Simple Audio Engine
I have searched extensively on how to loop a sound effect with simple audio engine, but haven't made much progress apart from hello with looping sfx on the cocos2d forum which has several issues. How can I loop a sound effect in Simple Audio Engine?

errorallergic
- 105
- 8
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
1 answer
Limitations of playback by SoundEffectInstance (Cross platform)
I am developing a game using MonoGame that uses SoundEffectInstance for in-game sound effects. What are the limitation on the different platforms with regard to the number of SoundEffect instances that can be created and most importanly that can be…

ares_games
- 1,019
- 2
- 15
- 32
1
vote
2 answers
Best approach for playing a single tone audio file?
Can anyone tell me the best approach to playing single-tone, audio (.mp3) files in a Windows Phone 8 app? Think of a piano app, where each key would represent a button, and each button would play a different tone.
I'm looking for the most efficient…

lhan
- 4,585
- 11
- 60
- 105
1
vote
1 answer
Can't play .amr file in wp8
I use AudioVideoCaptureDevice to record the voice and save it to isolated storage with amr format
dev = await AudioVideoCaptureDevice.OpenForAudioOnlyAsync();
dev.AudioEncodingFormat = CameraCaptureAudioFormat.Amr;
I can play it by windows media…

Newbie86
- 43
- 4
1
vote
0 answers
WP7 XNA Music and Sound Issue on Nokia Lumia 800
I am almost done developing my first game for the Windows Phone 7 OS. Unfortunately, I've ran into a rather nasty problem. A simple task of just playing background music and a sound effect at the same time creates a serious distorsion in the sound…

MariusVE
- 89
- 11
1
vote
1 answer
Increase or Decrease the Pitch of the audio file using C#
I want to increase and decrease pitch of an audio file (.m4a, mp4, etc).
I am using Visual Studio 2008 and .NET Framework 3.5
I have tried out the following link from MSDN, but no success yet
Here in the above link, even after importing the…

rohan panchal
- 881
- 3
- 15
- 32
1
vote
1 answer
Xcode best audio practices
What is the best practice for creating an audio prompt within my app, which will append different portions of audio together to ask a question?
ex. "What is" + "foo"?
"What is" + "bar"?
I have developed a "AudioQueue" object using audiotool box…

Zachary Webert
- 21
- 1
- 3
1
vote
1 answer
Clicking at start and end of SoundEffect playback in WP7 XNA
I'm looping this sound file: http://engy.us/misc/ThrusterLoop.wav . It plays perfectly in Windows on any number of players, but when I load it in as a SoundEffect in XNA it has these annoying clicks at the start and end of playback.
If I loop it for…

RandomEngy
- 14,931
- 5
- 70
- 113
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
How to enable the sound effect on touching a button?
If I implement the OnClickListener, the sound effect will work on clicking the button. While on implementing the OnTouchListener the sound effect doesn't work on touching it. So how to enable the sound effect on implementing the…

Eng.Fouad
- 115,165
- 71
- 313
- 417
0
votes
0 answers
WP7 play Raw data in SoundEffect
I read a file and can play it
Me._StreamData = Application.GetResourceStream(New Uri("Sound/" & _WaveFile, UriKind.Relative)).Stream
Dim Wav As SoundEffect = SoundEffect.FromStream(strmAudio)
Now I've tried to modify the data.…

Nasenbaer
- 4,810
- 11
- 53
- 86
0
votes
2 answers
Playing a MXML SoundEffect in Actionscript
If I have a SoundEffect in the Declarations of a MXML component and play it in Actionscript, no sound is played:
Actionscript Code:
mySound.play();
Is that…

Steven
- 1,949
- 2
- 17
- 30
0
votes
1 answer
Play microphone sound in realtime using SoundEffect silverlight 5
I am trying to play the mic sound in realtime using soundeffect and audiosink in silverlight 5 but the sound gets chopped up here is the code I used
protected override void OnSamples(long sampleTime, long sampleDuration, byte[] sampleData)
{
try
…

Max
- 3
- 1