View Issue Details

IDProjectCategoryLast Update
0011304Skyward CollapseBug - AudioMay 13, 2013 8:55 pm
ReporterAdmiral Assigned ToChris_McElligottPark  
Status closedResolutionnot fixable 
Product Version.800 Alpha Release 
Summary0011304: Audio in background
DescriptionBUG (or annoyance): Game music continues to play when window is not at front.

TagsNo tags attached.
Internal WeightNew

Activities

zharmad

May 6, 2013 3:15 am

reporter   ~0031875

Alternative suggestion: add "fade sound when not in focus" to the control panel.

tigersfan

May 7, 2013 1:44 pm

reporter   ~0031973

Unfortunately, with the Unity engine, there is no way for the game to know if it's in focus or not. Hopefully this will get worked out with Unity at some point. But for now, we can't do this. Sorry.

Admiral

May 7, 2013 3:06 pm

reporter   ~0031983

Are you sure? Can't you hook MonoBehavior's OnApplicationFocus and OnApplicationPause???

(I have Unity 4, not sure which version you're using.)

http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.html

Admiral

May 7, 2013 3:07 pm

reporter   ~0031984

See note about about MonoBehavior...

tigersfan

May 7, 2013 3:32 pm

reporter   ~0031987

Yeah, I'm sure. We're not on 4 yet. When we tried to upgrade, we had some serious issues that we've not yet had time to look into resolving.

Chris_McElligottPark

May 13, 2013 8:55 pm

administrator   ~0032244

Last edited: May 13, 2013 8:55 pm

Also, I would point out that OnApplicationFocus and OnApplicationPause are actually bugged. They only work if you have the game explicitly pause when it loses focus, but that kills the entire game runtime. Aka, network connections drop when you alt-tab out, among other unpleasantness. When you don't have that option on, then OnApplicationPause is not functional.

We have had an open support ticket out with Unity for this since version 2.6, in 2010.

Issue History

Date Modified Username Field Change
May 5, 2013 6:13 pm Admiral New Issue
May 6, 2013 3:15 am zharmad Note Added: 0031875
May 7, 2013 1:44 pm tigersfan Internal Weight => New
May 7, 2013 1:44 pm tigersfan Note Added: 0031973
May 7, 2013 1:44 pm tigersfan Status new => closed
May 7, 2013 1:44 pm tigersfan Resolution open => not fixable
May 7, 2013 3:06 pm Admiral Note Added: 0031983
May 7, 2013 3:07 pm Admiral Note Added: 0031984
May 7, 2013 3:07 pm Admiral Status closed => feedback
May 7, 2013 3:07 pm Admiral Resolution not fixable => reopened
May 7, 2013 3:32 pm tigersfan Note Added: 0031987
May 13, 2013 8:55 pm Chris_McElligottPark Note Added: 0032244
May 13, 2013 8:55 pm Chris_McElligottPark Status feedback => closed
May 13, 2013 8:55 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
May 13, 2013 8:55 pm Chris_McElligottPark Resolution reopened => not fixable
May 13, 2013 8:55 pm Chris_McElligottPark Note Edited: 0032244