Commit Graph

17 Commits

Author SHA1 Message Date
Aaron McLeran
6dcc4df096 UE-14954 Making sure we actually set a min dB volume if the volume of a sound is 0.0
[CL 2553341 by Aaron McLeran in Main branch]
2015-05-15 14:34:51 -04:00
Aaron McLeran
7746ecfc97 UE-14954 Changing code to not call the SetVolumeLevel API function unless the volume has changed.
[CL 2553189 by Aaron McLeran in Main branch]
2015-05-15 13:52:29 -04:00
Aaron McLeran
ee5da6ccf1 UE-14954 only doing the log10 calculation if the volume changes from previous update
[CL 2536653 by Aaron McLeran in Main branch]
2015-05-04 18:35:35 -04:00
Aaron McLeran
4b0ea51076 UE-14954 Making the min volume a static const value
[CL 2536522 by Aaron McLeran in Main branch]
2015-05-04 17:39:10 -04:00
Aaron McLeran
ba6dbe8b79 UE-14954 Changing the implementation to convert the linear volume to mdB and clamping within the device range.
This will result in a more platform consistent and accurate volume.
 of the sound source

[CL 2536511 by Aaron McLeran in Main branch]
2015-05-04 17:36:45 -04:00
Aaron McLeran
9afd77318e UE-14954 Making android audio inaudible when linear volume of a sound is 0.0
[CL 2536447 by Aaron McLeran in Main branch]
2015-05-04 17:03:17 -04:00
Aaron McLeran
d2729ee628 Supporting multiple audio devices for multiple PIE and other potential use-cases.
- Created audio device manager which manages weak ref handles to audio devices
- Audio device handles are created with WorldContexts and accessed through UWorld objects
- All access to audio devices are now through audio device handles
- There is a main/default audio device for GEngine for use with the Editor and single worldcontext games

#codereview marc.audy, matthew.griffin

[CL 2477046 by Aaron McLeran in Main branch]
2015-03-12 12:59:33 -04:00
Robert Jones
f8e3ad2d57 Changes to Android audio startup to resolve a crash bug a licensee was having.
Error reporting for creation failure changed from Fatal to Warning as we don't really need to stop there.

[CL 2412197 by Robert Jones in Main branch]
2015-01-20 10:09:11 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Matthew Griffin
e529148280 Added config setting for audio volume when app is unfocused
Removed GVolumeMultiplier and added an equivalent to FApp to contain the code to load the unfocused volume multiplier from config.

UE-4449 - Allow users to choose whether audio can be heard when focus is lost

#codereview Robert.Manuszewski

[CL 2341022 by Matthew Griffin in Main branch]
2014-10-27 08:15:41 -04:00
Robert Jones
5800659c7e Android audio fixes
- Fixes looping issue with ADPCM samples
- Fixes Android not looping sound cues correctly
- Fixes one shot sound ADPCM problems where sound would get cut early
- Removed Android Audio Device update function - was never called and did nothing anyway so this will improve clarity

Changed ADPCM decompressor so that it uses the same code to decompress a full file as it does when streaming - old code was correct it was just silly have it duplicated.

[CL 2339877 by Robert Jones in Main branch]
2014-10-24 10:55:50 -04:00
Robert Jones
c8aa685ef4 #ttp 338505 MobileMVP: Audio: Procedural Sound not supported on Android
Updated android audio device/buffers/souce to support creation of procedural data from a sound source. Tested with MOD replay in QA test level.

#codereview daniel.lamb, chris.babcock, dmitry.rekman

[CL 2276233 by Robert Jones in Main branch]
2014-08-28 11:18:51 -04:00
Robert Jones
566d29dd25 #ttp 334858 Android : Support ADPCM
Added support for ADPCM decoding.
Added 'sound type' information to USoundWave
- Android uses this to detect which type of asset it needs to deal with
Added support for selected encoding type via project settings

#codereview Daniel.Lamb, Chris.Babcock

[CL 2260750 by Robert Jones in Main branch]
2014-08-18 09:13:38 -04:00
Ben Marsh
89668b5397 [INTEGRATE] Everything from 4.2 branch back into main.
[CL 2088526 by Ben Marsh in Main branch]
2014-05-29 17:45:17 -04:00
Rene Rivera
9b8305f4ad Fix assertion on volume setting for Android SLES. Vaolume needed to be capped to device specific capability.
[CL 2083495 by Rene Rivera in Main branch]
2014-05-29 16:53:56 -04:00
Rene Rivera
adf47caa6b Fix audio playback cutting in and out, especially for ambient sounds. Volume was being cut artificially cut to zero below a certain threshold. This removes that cut to bring it on-par with the other platforms. And also syncs the audio source update to mirror other platforms more closely (for example adds missing global volume attenuation).
#ttp 334725
#codereview daniel.lamb

[CL 2082403 by Rene Rivera in Main branch]
2014-05-22 17:20:22 -04:00
Tim Sweeney
324683ce78 Engine source (Main branch up to CL 2026164) 2014-03-14 14:13:41 -04:00