Commit Graph

34 Commits

Author SHA1 Message Date
Aaron McLeran
ead0bd8bf9 UE-9692, UE-9446 Fixing 3d audio spatialization for HTML5 and Linux.
- 3d audio was fundamnetally broken in HTML5 and Linux for a long time (probably since original port from UE3)
- Fix is to do 3d spatialization math the same way we do it on XAudio2 (i.e. transform to listener-space then do relative source position from there)
- Since HTML5 and Linux *both* use nearly identical OpenAL implementations (and Linux has been fixed by users for a few issues), I decided to nuke the HTML5 implementation and instead link to the Linux implementation. Not sure if we should move the linux OpenAL implementation to a different folder, but it turned out not to matter for packing and testing HTML5
- Also went ahead and added a -3dB headroom factor to reduce volume overall with OpenAL implementation since it was louder than the XAudio2 implementation. I didn't do any technical measurements to come up with this headroom factor, just ear-balled it. We can do something more precise if needed.
- Tested this fix using a simple test-map of a single looping sound source. It was obviously broken (i.e. not panning) and is now obviously fixed.

[CL 2611557 by Aaron McLeran in Main branch]
2015-07-06 16:15:23 -04:00
KitatusStudios
7775a401b1 PR #931: Cleaning up Spelling Errors / Grammer Errors in Comments (Contributed by KitatusStudios)
[CL 2577221 by Matt Kuhlenschmidt in Main branch]
2015-06-04 13:19:17 -04:00
James Moran
1e09f3b5bd Add -Wshadow on HTML5. Fixed errors relating to it. UE-14250
Fixed some potential issues from incoming SDK release. Removed unnecessary js lib.

[CL 2524336 by James Moran in Main branch]
2015-04-24 10:49:50 -04:00
Sneagan
8de0fe67c6 PR #1020: Normalized JS style. No functional change. (Contributed by Sneagan)
[CL 2524272 by James Moran in Main branch]
2015-04-24 10:15:50 -04:00
Ankit Khare
f6875911b2 HTML5: Correctly gate map downloading. Use a progress bar with real progress instead of an infinite throbber.
[CL 2514434 by Ankit Khare in Main branch]
2015-04-16 12:11:10 -04:00
Ankit Khare
3493522c66 HTML5 - UE-13069 - wrong http headers and UE-13431 (unexpected characters at end of POST string)
#codereview james.moran

[CL 2506161 by Ankit Khare in Main branch]
2015-04-08 20:25:32 -04:00
Ankit Khare
79542f541b Allow HTML5 to download maps on the fly.
UPLAT-685 (Remove Virtual File System to reduce run-time memory overhead and allow for larger worlds in HTML5)

#codereview josh.adams, james.moran

[CL 2505577 by Ankit Khare in Main branch]
2015-04-08 14:53:36 -04:00
Ben Marsh
86067c45ca Remove Windows third party libraries for VS2012.
[CL 2493588 by Ben Marsh in Main branch]
2015-03-27 07:55:36 -04:00
Aaron McLeran
5d9396bec0 CIS build fix for HTML5
-initialization list typo

[CL 2477824 by Aaron McLeran in Main branch]
2015-03-12 19:27:15 -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
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
Ankit Khare
9cff0ef500 Fix HTML5 load game logic when no saved game exists, needed to make ShooterGame work.
[CL 2460532 by Ankit Khare in Main branch]
2015-02-25 13:18:09 -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
Ankit Khare
f0430510cd SDL2 upgrade from the SDK provided SDL1.3 for HTML5 Platform.
[CL 2365228 by Ankit Khare in Main branch]
2014-11-19 13:56:35 -05:00
Bart Bressler
a818b25d70 Fix UE-4390 - convert gethostbyname function calls to getaddrinfo function calls.
[CL 2363558 by Bart Bressler in Main branch]
2014-11-18 12:24: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
Ankit Khare
7a5cd45172 Github Pull Request : 345 Feature: Implement a basic HTTP request support for the HTML5 platform
#codereview james.moran

[CL 2321802 by Ankit Khare in Main branch]
2014-10-07 16:49:35 -04:00
James Moran
e19652f51d Implement GetDefaultLocale for HTML5
[CL 2321130 by James Moran in Main branch]
2014-10-07 08:31:55 -04:00
Michael Noland
2f0a414b41 Engine: Coding-standards fixes (TypeName [*|&] VariableName -> TypeName[*|&] VariableName)
[CL 2316338 by Michael Noland in Main branch]
2014-10-01 14:45:04 -04:00
Ankit Khare
4e9a5cb6ba Rocket: Enable HTML5 for rocket builds on Win64.
#codereview ben.marsh

[CL 2295409 by Ankit Khare in Main branch]
2014-09-12 15:56:47 -04:00
Ankit Khare
10622199f7 FPlatformMisc::MessageBoxExt implimentation for HTML5
[CL 2289953 by Ankit Khare in Main branch]
2014-09-08 17:17:15 -04:00
Ankit Khare
3011aa6448 #UE4 #HTML5 Fix up Win32 Simulator Build for HTML5.
[CL 2247484 by Ankit Khare in Main branch]
2014-08-07 16:34:10 -04:00
Matthew Griffin
c28dea244e Splitting format specific classes out of AudioDecompress.cpp/h
New files added to contain FVorbisAudioInfo and FOpusAudioInfo, added all necessary includes
Added a few more checks for whether the target platform supports audio streaming where appropriate
Moved #define to .h file as it was being used in two .cpp files (working because of unity build)

[CL 2137973 by Matthew Griffin in Main branch]
2014-07-04 09:47:36 -04:00
Matthew Griffin
f92177afd9 Removing more duplicated variables from audio sub classes
Duplicate ResourceID would have caused the same problems in HTML5 and Linux as Android. Other duplications are errors waiting to happen, there are a couple of stats functions that could be using the base class versions and not displaying the correct information.

[CL 2119229 by Matthew Griffin in Main branch]
2014-06-27 05:15:16 -04:00
Ankit Khare
ba01b4d00a #UE4 #HTML5
HTML5 browser build fixes for NFS over http.
Todo: Correctly generate html5 file when serving via NFS.
howto:
- flip relevant bools in UEBuildHTML5.cs
- build html5/cooker.
- run cook on the fly server via UFE.
- Remove .data/.data.js references from .html ( see todo)
- point browser at http://cookserver:DEFAULT_FILE_SERVING_PORT/gamename.html

#codereview peter.sauerbrei

[CL 2109950 by Ankit Khare in Main branch]
2014-06-18 19:38:50 -04:00