Questions tagged [background-music]
200 questions
2
votes
1 answer
How can I control Background Music of other Apps in Swift?
First sorry for my English because I'm French.
I work on a connected object which send data to my app to start, pause, start the next music or the precedent and to augment the volume.
My application has to execute these actions on any music emitted…

A.Moret
- 43
- 3
2
votes
2 answers
Stop Music When App is running in background (i.e. when home button is pressed)
Hi I build a basic game with swift that has background music. The game has multiple image views. I have the music playing with with the code below. How do I stop the music if the user exits out of the app using the home button. as it is now the…
user5740195
2
votes
2 answers
How to play background music in a C# Console Application
So I've made a small text-based game in C# but I'd like some music to it, I have tried this:
System.Media.SoundPlayer player = new System.Media.SoundPlayer();
player.SoundLocation = "c:\PathToMusic\..music.wav";
player.Play();
Which worked, but…

Simon Brolsma
- 31
- 1
- 1
- 3
2
votes
0 answers
AVAudioPlayer - returns true, but there is no sound
I am trying to play sound when user enters background:
let dispatchQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)
dispatch_async(dispatchQueue, {[weak self] in
var audioSessionError: NSError?
let…

Nikita Zernov
- 5,465
- 6
- 39
- 70
2
votes
2 answers
Stopping an SKAction
I have a sprite kit game with different scenes: the main menu ("MainMenuScene") and the game scene ("MyScene"). While the user is playing the game, I have an endless playing background music. But when the player wants to stop the game and return to…

Maxime Defauw
- 190
- 9
2
votes
0 answers
Background Music in App across Activities
I saw lots of similar questions, but I couldn't figure out the best way in my case.
I want to play some background music in my app (looped). It should start (if a sharedPreference is set) at the start of the app. If the user disable a checkbox, it…

lis
- 670
- 1
- 13
- 32
2
votes
1 answer
XNA Music mixing real-time
I've created a "format" to store segments of music (prelude part, repeated part, ending part) and time information for these segments (offset, scored length) so I can mix it up in real-time as if it were one piece of music, while repeating the…

Adam L. S.
- 825
- 1
- 7
- 14
1
vote
1 answer
How to Play Background Music using MonoTouch While App Running
What would be the easiest way to have a music file included in the App as looped background music while the app is running and the music pauses if the app is suspended and starts up again when the app is brought back to foreground. Don't care about…

Rodney S. Foley
- 10,190
- 12
- 48
- 66
1
vote
1 answer
Playing mp3s in C# not using MediaPlayer or XACT
I'm trying to get background music going for my XNA game, but the options in XNA all require that the audio files be converted to .wav and included as project resources. This doesn't work for me for two reasons. First, .wav files are enormous, and…

Fibericon
- 5,684
- 12
- 37
- 64
1
vote
1 answer
IE not supporting HTML5 background audio
I added a html5 audio tag to play background music in my website www.missduniya.com it works in all major browser but it does not work with IE.
Here is my code
1
vote
1 answer
Playing wavs in Java
So, I'm working on a project for class wherein we have to have a game with background music. I'm trying to play a .wav file as background music, but since I can't use clips (too short for a music file) I have to play with the AudioStream.
In my…
user1265486
1
vote
1 answer
Use iPhone's multitasking music controls in an app
I've searched the Internet for a while to try and find an answer to this. If you open up the multitasking bar and swipe to the left there are music controls that can be used by whatever app is playing music (ie Music, Pandora, etc.). I have not yet…

Letrstotheprez
- 622
- 1
- 5
- 11
1
vote
2 answers
How to stop the music playing in background in android
i tried to stream an audio from url and its working fine. The url is playing on background also when i quit the application. But i cant able to stop it when i enter my app again how could i stop. Help is appreciated.

user1051599
- 371
- 2
- 7
- 18
1
vote
2 answers
Background iPod music Volume mixed with sound effects
What would the best method be for mixing background iPod music with sound effects? The sound effects need to be adjustable and sometimes much louder than the background music. When I use MPMusicPlayerController the volume is system-wide and…

user973984
- 2,804
- 2
- 15
- 13
1
vote
0 answers
AVFoundation IOS: playing Background Music
I develop an iPhone IOS app which involves turning on the background music. I decided to choose the AVFoundation and AVAudioPlayer for this purpose.
So what I have is two view controllers and one nsobject controller that is actually a Music…

Alick Dikan
- 65
- 2
- 3
- 10