Commit Graph

69 Commits

Author SHA1 Message Date
Robert Jones
7757982c38 UE-17300 Strategy Game crashes during game play on Android device
- Added initial nulling of pointer which was causing the crash

[CL 2593176 by Robert Jones in Main branch]
2015-06-19 03:58:19 -04:00
Chris Babcock
b6df0fec88 Android x86_64 support - pr #914 (also adds support for ndk-r10e clang 3.6)
#ue-11650
#ue4
#android
#codereview Josh.Adams

[CL 2590354 by Chris Babcock in Main branch]
2015-06-17 12:56:56 -04:00
Marc Audy
1f3af26fb1 Use a triple buffer XAudio/Core for realtime audio decompression to ensure that if async task is getting starved audio does not hitch; if final buffer is active then ensure completion on the main thread of the pending async task so starvation will not occur.
Properly initialize audio resource when playing a native sound with a specified start time.
#codereview Aaron.McLeran

[CL 2588686 by Marc Audy in Main branch]
2015-06-16 11:13:47 -04:00
Chris Babcock
13158f1760 Clean up some tooltips
#ue4
#android

[CL 2585087 by Chris Babcock in Main branch]
2015-06-11 18:14:08 -04:00
Richard Hinckley
b50635beee Enum comment fixes. First batch.
[CL 2582903 by Richard Hinckley in Main branch]
2015-06-10 12:54:31 -04:00
Marc Audy
60228ea69e Asynchronous realtime audio decompression/procedural generation (XAudio2, Mac, Android)
[CL 2578892 by Marc Audy in Main branch]
2015-06-05 16:09:35 -04:00
Aaron McLeran
2c12cc600f UE-16362 Sound attenuation has no discernible falloff on Android
- Issue was variable shadowing on the Volume parameter introduced by CL 2477046

[CL 2571755 by Aaron McLeran in Main branch]
2015-05-30 15:05:31 -04:00
Aaron McLeran
7afc6d8748 Rollback //depot/UE4/Engine/Source/Runtime/Android/AndroidAudio/Private/AndroidAudioSource.cpp to revision 12
Rolling back recent changes to file to before 4.8 changes

[CL 2570916 by Aaron McLeran in Main branch]
2015-05-29 15:01:29 -04:00
Robert Jones
38247c4430 UEPLAT-454 - Add option for fullscreen immersive mode for Android projects
- support added for Kitkat for fullscreen sticky mode

[CL 2562654 by Robert Jones in Main branch]
2015-05-22 11:09:51 -04:00
Chris Babcock
f89f319f80 Added application display name (app_name) setting for Android
#ue-15652
#ue4
#android
#codereview josh.adams,kwangsub.shin

[CL 2553451 by Chris Babcock in Main branch]
2015-05-15 16:10:14 -04:00
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
Chris Babcock
115fe7315b Allow adding to the manifest node in generated AndroidManifest.xml
#ue4
#android
#codereview Josh.Adams

[CL 2536647 by Chris Babcock in Main branch]
2015-05-04 18:34:20 -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
Robert Jones
2cddee3fb1 UEPLAT-7 - OBB downloading code in Java
- Code additions to download data from Google Play Store if not on device
- Changes deploy to write new meta-data
- Changes to Android deploy to cache ini files once and re-read instead of the constant open/read we had
- Added template/code generation system so we can now generate Java files based on a template for project dependent names etc

[CL 2521147 by Robert Jones in Main branch]
2015-04-22 11:14:29 -04:00
Chris Babcock
a08593b581 Better user control of AndroidManifest.xml generation
#ue4
#android
#codereview Josh.Adams

[CL 2520323 by Chris Babcock in Main branch]
2015-04-21 19:17:00 -04:00
Josh Adams
e718dd6dab - Fixed up tooltips/comments for new ES31+AEP support
[CL 2505788 by Josh Adams in Main branch]
2015-04-08 16:23:03 -04:00
Aaron McLeran
a85d8ba0b5 Fixing android build
- accidentally checked these files in, reverted to previous version

[CL 2488651 by Aaron McLeran in Main branch]
2015-03-23 19:23:09 -04:00
Aaron McLeran
cc689ed400 Integrating Oculus Audio SDK to Main
Original Notes (adapted)

Implementation and Integration of Oculus Audio SDK for VR Audio Spatialization

- Adding new audio extension which wraps the oculus audio sdk and the new XAPO plugin
- Adding new XAPO (Xaudio2 Audio Processing Object) effect for processing mono audio source streams inside the new module
- Added new enumeration which allows users to select which spatialization algorithm to use for spatialized mono sources
- Refactored the regular sound source spatialization/effect in XAudio2 device code to support the new HRTF mono-to-stereo effect
- Designed feature so that if the sound spatialization module isn't used, the spatialization will default to normal spatialization algorithm

Notes on implementation:

- Because the audio engine doesn't bifurcate spatialized vs. non-spatialized sound sources into separate source pools, I had to create up-front the effects for the full number of supported sounds 32). This is because the oculus sdk requires at initialization the total number of sound sources that will be used in the SDK.

- Because the oculus SDK refers to sound source instances by index (into the pre-allocated array of sources set at init), I had to save each sound source's index so that it can be used on the HRTF XAPO effect, and then piped to the oculus SDK inside the UE audio extension.

- The audio engine assumes that mono-sources will be treated a certain way (during send-routing and spatialization). Because this new HRTF effect is effectively turning mono-sources into stereo-sources, some code had to be changed to send/route these audio sources as if they were stereo.

- This implementation is slightly different than the original GDC implementation to better work with multiple audio devices. Each audio device creates an IAudioSpatializationAlgorithm object which contains the oculus HRTF processing contexts.

#codereview Nick.Whiting Marc.Audy

[CL 2488287 by Aaron McLeran in Main branch]
2015-03-23 16:14:54 -04:00
Jaroslaw Palczynski
f23f29257b Back out changelist 2481333
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over.

#codereview Robert.Manuszewski

[CL 2481343 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:38:32 -04:00
Jaroslaw Palczynski
fa31560e2d Enabled UHT to digest GENERATED_BODY instead of GENERATED_UCLASS_BODY, GENERATED_USTRUCT_BODY, GENERATED_UINTERFACE_BODY or GENERATED_IINTERFACE_BODY, changed every occurence to the new syntax and fixed every warning that have fallen out of this change.
#codereview Robert.Manuszewski

[CL 2481333 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:19:11 -04:00
Aaron McLeran
c21f478693 Fixing Platform Builds
#codereview Marc.Audy

[CL 2477328 by Aaron McLeran in Main branch]
2015-03-12 15:40:07 -04:00