Questions tagged [soundeffect]

90 questions
0
votes
3 answers

SoundEffect.Play() is throwing NullReferenceException even though sound is loaded

Alright, I'm having a really odd issues. I'm right now writing a simple game in C#/MonoGame (on Linux). I'm trying to play a SoundEffect. When I call Play() (even though it's been properly loaded in the LoadContent() method). It's throwing a…
Benjamin
  • 1,223
  • 1
  • 13
  • 22
0
votes
1 answer

Does android:soundeffectsenabled override the global settings on the phone?

I have a button and I have set android:soundeffectsenabled="true". But this does not trigger the sound effect that I call in my onClick() method. @Override public void onClick(View v) { int id = v.getId(); switch (id) { …
srinij
  • 471
  • 6
  • 10
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
1 answer

Click an image button match with sound effect

The code below is to click an Image button with some animation, at the same time it with a sound effect. Problem is the sound track doesn't match with the button click when I repeat clicking the button, the sound effect delayed and doesn't match…
user3606920
  • 111
  • 1
  • 10
0
votes
1 answer

Android audioFlinger

I modify the /audioflinger/thread.cpp and I want to change the mMixbuffer value and then write it to the HAL, but when I play it, it sounds the noise in it, but i can not find what's wrong. So, does any one know what's going on? Thanks. Here is the…
twobrother
  • 1
  • 1
  • 3
0
votes
0 answers

How to disable my sound effect for all my button?

I have different buttons and each of them have their own sound effects. for enable my sound effect I used this class: enter code here public class Effects { private static final String TAG = Effects.class.toString(); private static final Effects…
senator
  • 1
  • 2
0
votes
1 answer

how to disable my sound effect for my all the buttons?

I have different buttons which each of them have sound effect. for set sound effect I used this class: public class Effects { private static final String TAG = Effects.class.toString(); private static final Effects INSTANCE = new…
eli
  • 23
  • 6
0
votes
0 answers

Speaker not turned off after sound effect has been played on windows phone

we play a sound effect in our windows phone notification. the sound plays normally but after that, the speaker seems to be still turned on and we can hear a noice. Here the code: var soundEffect =…
esskar
  • 10,638
  • 3
  • 36
  • 57
0
votes
2 answers

iOS, swift: play background music and sound effects without delay

I am trying to create a game in iOS without using SpriteKit. I am stuck in getting the sound effects to play in a timely manner. I've been using the following code which I have found online and the background music plays great. However, when I use…
μ4ρκ05
  • 585
  • 2
  • 5
  • 16
0
votes
1 answer

Applying sound effects based on pitch, speed and rate

I would like to apply some voice change filter based on those standard variables. Does anybody tried it before and knows how to adjust them to get the standard voices like helium, robotic or zombie? Maybe some tool or any advice how to test it, or…
Jacob
  • 14,949
  • 19
  • 51
  • 74
0
votes
0 answers

How Can I Play Asynchronously Sound Effects In WP8?

I have an instrument application that running with XNA Sound Effect. My problem is that; When I play a sound effect while another one is playing, the last one is killing the first one. It is not what I want, I want to play sounds asynchronously even…
Tugrul Emre Atalay
  • 918
  • 1
  • 9
  • 28
0
votes
1 answer

soundeffect, XNA 4.0

This is the first time I program a game, I want to creat a sound effect on each time I shot a missile, not playing the sound when the missile is on the screen, just right after the character shooted it. Here is the code. Please help me, I tried to…
ZGMF-X10A
  • 3
  • 5
0
votes
1 answer

XNA change screen when button sound effect ends

I working on platformer game. I got menu screen and few buttons there. I have problem with "StarGame" button, because after click I want to play sound effect first and than move to gamescreen. My buttonclick event looks like…
dk28
  • 5
  • 4
0
votes
3 answers

Application suddenly Force stop when clicking button with Sound

I create a project, and this is MainActivity class package com.example.myproject; import android.media.MediaPlayer; import android.os.Bundle; import android.app.Activity; import android.app.AlertDialog; import…
Bobby Hartanto
  • 71
  • 2
  • 13
0
votes
2 answers

Difference between Play and Resume in XNA SoundEffects class

What is the difference between the Play and Resume methods in the XNA SoundEffects class? Both seem to start playing the sound at the current sound position. Can't I basically always use Play()? I am using XNA 4 (with the latest updates).
ares_games
  • 1,019
  • 2
  • 15
  • 32