Files
UnrealEngineUWP/Engine/Source/Runtime/Android/AndroidAudio/Private/AndroidAudioBuffer.cpp

364 lines
10 KiB
C++
Raw Normal View History

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "AndroidAudioDevice.h"
#include "AudioEffect.h"
#include "IAudioFormat.h"
#include "AudioDecompress.h"
#include "ContentStreaming.h"
/*------------------------------------------------------------------------------------
FSLESSoundBuffer.
------------------------------------------------------------------------------------*/
/**
* Constructor
*
* @param AudioDevice audio device this sound buffer is going to be attached to.
*/
FSLESSoundBuffer::FSLESSoundBuffer( FSLESAudioDevice* InAudioDevice )
: FSoundBuffer(InAudioDevice),
AudioData(NULL),
DecompressionState( NULL ),
Format(SoundFormat_Invalid)
{
}
/**
* Destructor
*
* Frees wave data and detaches itself from audio device.
*/
FSLESSoundBuffer::~FSLESSoundBuffer( void )
{
FMemory::Free( AudioData);
if( DecompressionState )
{
delete DecompressionState;
}
}
FSLESSoundBuffer* FSLESSoundBuffer::CreateQueuedBuffer( FSLESAudioDevice* AudioDevice, USoundWave* InWave )
{
// Check to see if thread has finished decompressing on the other thread
if (InWave->AudioDecompressor != nullptr)
{
InWave->AudioDecompressor->EnsureCompletion();
// Remove the decompressor
delete InWave->AudioDecompressor;
InWave->AudioDecompressor = nullptr;
}
// Always create a new buffer for real time decompressed sounds
FSLESSoundBuffer* Buffer = new FSLESSoundBuffer( AudioDevice);
// Prime the first two buffers and prepare the decompression
FSoundQualityInfo QualityInfo = { 0 };
Buffer->DecompressionState = AudioDevice->CreateCompressedAudioInfo(InWave);
// If the buffer was precached as native, the resource data will have been lost and we need to re-initialize it
if (InWave->ResourceData == nullptr)
{
InWave->InitAudioResource(AudioDevice->GetRuntimeFormat(InWave));
}
Copying //UE4/Dev-Platform to //UE4/Main ========================== MAJOR FEATURES + CHANGES ========================== Change 2719147 on 2015/10/07 by Mark.Satterthwaite Allow the shader cache to perform some precompilation synchronously on load before falling back to asynchronous compilation to balance load times against total time spent precompiling. Added a stat to the group that reports how long the precompile has been running until it completes so it is easier to track. Change 2719182 on 2015/10/07 by Mark.Satterthwaite Refactor the ShaderCache's internal data structures and change the way we handle recording whether a particular predraw state has been submitted to try and make it more efficient. Change 2719185 on 2015/10/07 by Mark.Satterthwaite Merging CL #2717701: Try and fix random crashes on Mac when manipulating bound-shader-states caused by ShaderCache potentially providing a bogus shader state pointer on exit from predraw. Change 2719434 on 2015/10/07 by Mark.Satterthwaite Make sure that Mac ensures reports have a source context and a sane callstack when sent to the crash-reports server. Change 2724764 on 2015/10/12 by Josh.Adams [Initial AppleTV support] Merging //depot/YakBranch/... to //UE4/Dev-Platform/... Change 2726266 on 2015/10/13 by Lee.Clark PS4 - Calc reserve size required for DMA copy when using unsafe command buffers Change 2726401 on 2015/10/13 by Mark.Satterthwaite Merging CL #2716418: Fix UE-15228 'Crash Report Client doesn't restart into project editor on Mac' by reporting the original command line supplied by LaunchMac, not the modified one that strips the project name. The CRC can then relaunch as expected. #jira UE-15228 Change 2726421 on 2015/10/13 by Lee.Clark PS4 - Don't try to clear invalid targets Change 2727040 on 2015/10/13 by Michael.Trepka Merging CL 2724777 - Fixed splash screen rendering for images with DPI different than 72 Change 2729783 on 2015/10/15 by Keith.Judge Fix huge memory leak in Test/Shipping configurations, caused because I am a numpty. Change 2729847 on 2015/10/15 by Mark.Satterthwaite Merging CL #2729846: On OS X unconstrain windows from the dimension of the parent display when in Windowed mode - it is OK for them to be larger in this case. They do need to be repositioned if on the Primary display so that they don't creep under the menu bar and become unmovable/unclosable and Fullscreen windows still need to be constrained to a single display. We can now take screenshots of windows that are larger than the display & not get grey bars beyond the cutoff. #jira UE-21992 Change 2729865 on 2015/10/15 by Keith.Judge Fast semantics - Finish up resource transitions, adding resource decompression where appropriate and using non-fast clears where we can't determine the resource transition. Change 2729897 on 2015/10/15 by Keith.Judge Fast Semantics - Make sure all GetData() calls are made safe with GPU fences. Change 2729972 on 2015/10/15 by Keith.Judge Removed the last vestiges of ID3D11DeviceContext/ID3D11DeviceContext1 from the Xbox RHI. Everything now uses ID3D11DeviceContextX directly. This should be marginally quicker as it stops a double call to ClearState(). Change 2731503 on 2015/10/16 by Keith.Judge Added _XDK_VERSION to the DDC key for textures, which should solve the issue of the tiling mode changing in August XDK (and future changes Microsoft may inflict). Change 2731596 on 2015/10/16 by Keith.Judge Fast Semantics - Add deferred resource deletion queue to make deleted resources be actually deleted a number of frames later so that the GPU is definitely finished with them. Hooked up the temporary SRVs for dynamic VBs as a first step. Change 2731928 on 2015/10/16 by Michael.Trepka PR #1659: Mac/Build.sh handles additional arguments (Contributed by judgeaxl) Change 2731934 on 2015/10/16 by Michael.Trepka PR #1618: added clang 3.7.0 -Wshift-negative-value ignore in JpegImageWrapper.cpp (Contributed by bsekura) Change 2732018 on 2015/10/16 by Mark.Satterthwaite Emit a shader code cache for each platforms requested shader formats, this is separate to the targeted formats as not all can or need to be cached. - The implementation extends the ShaderCache's hooks in FShaderResource's serialisation function to capture the required shaders. - Each target platform has its own list of cached shader formats, analogous to the list of targeted RHIs. Presently only the Mac implements this. - Code cached shaders are now compressed (for size) to reduce the overhead associated with keeping all the shader code around - this works esp. well for text-based formats like GLSL. Change 2732365 on 2015/10/16 by Josh.Adams - Packaging a TVOS .ipa now works (still haven't tried any of the Editor integration like Launch On) Change 2733170 on 2015/10/18 by Terence.Burns Fix for Android IAP query not returning entire inventory. Change 2733174 on 2015/10/18 by Terence.Burns Fix Movie player issue where wait for movie to finish isnt being respected. Seems a stray bUserCanceled event flag was causing this not to be observed. Added some verbose logging to apple movie player. Change 2733488 on 2015/10/19 by Mark.Satterthwaite Added the ability to merge the .ushadercache files used by the ShaderCache to store shader & draw state information. - Fixed a bug that would cause invalid shader membership and draw state information to be logged. - Added a separate command-line tool to merge shader cache files, currently Mac-only but in theory should work on other platforms too. Change 2735226 on 2015/10/20 by Mark.Satterthwaite Fix temporal AA rendering on GL/Mac OS X - you can't rely on EyeAdaptation values unless SM5 is available so only perform that code on SM5 & we must correctly clamp saturate(NaN) to 0 as the current hlslcc won't do that for us (& is required by the HLSL spec). The latter used to be clamped in the AA_ALPHA && AA_VELOCITY_WEIGHTING code block that was removed recently. #jira UE-21214 #jira UE-19913 Change 2736722 on 2015/10/21 by Daniel.Lamb Improved performance of cooking stats system. Change 2737172 on 2015/10/21 by Daniel.Lamb Improved cooking stats performance for ddc stats.
2015-12-10 16:56:55 -05:00
if (Buffer->DecompressionState && Buffer->DecompressionState->ReadCompressedInfo(InWave->ResourceData, InWave->ResourceSize, &QualityInfo))
{
// Clear out any dangling pointers
Buffer->AudioData = NULL;
Buffer->BufferSize = 0;
// Keep track of associated resource name.
Buffer->ResourceName = InWave->GetPathName();
Buffer->NumChannels = InWave->NumChannels;
Buffer->SampleRate = InWave->SampleRate;
//Android can't handle more than 48kHz, so turn on halfrate decoding and adjust parameters
if (Buffer->SampleRate > 48000)
{
UE_LOG(LogAndroidAudio, Log, TEXT( "Converting %s to halfrate from %d" ), *InWave->GetName(), Buffer->SampleRate );
Buffer->DecompressionState->EnableHalfRate( true);
Buffer->SampleRate = Buffer->SampleRate / 2;
InWave->SampleRate = InWave->SampleRate / 2;
uint32 SampleCount = QualityInfo.SampleDataSize / (QualityInfo.NumChannels * sizeof(uint16));
SampleCount /= 2;
InWave->RawPCMDataSize = SampleCount * QualityInfo.NumChannels * sizeof(uint16);;
}
Buffer->Format = SoundFormat_PCMRT;
}
else
{
InWave->DecompressionType = DTYPE_Invalid;
InWave->NumChannels = 0;
InWave->RemoveAudioResource();
}
return Buffer;
}
Copying //UE4/Dev-Platform to //UE4/Dev-Main (Source: //UE4/Dev-Platform @ 3295257) #lockdown Nick.Penwarden #rb none ========================== MAJOR FEATURES + CHANGES ========================== Change 3235199 on 2016/12/14 by Joe.Barnes Fix new compile error for missing #define Change 3235340 on 2016/12/14 by Arciel.Rekman Linux: refactor of some PlatformMisc functions. - RootDir() removed since it was a no-op. - Old EngineDir() implementation removed in favor of more generic one that should handle foreign engine dir. - Change by CengizT, Change 3237014 on 2016/12/15 by Michael.Trepka Fixed a crash in FChunkCacheWorker constructor Change 3238305 on 2016/12/16 by Josh.Adams - Added a None option to the FKey customization, unless the FKey property had NoClear on it Change 3240823 on 2016/12/20 by Josh.Stoddard Device profiles don't work for iPadPro 9.7 and 12.9 #jira UE-39943 Change 3241103 on 2016/12/20 by Alicia.Cano Android support from Visual Studio #jira UEPLAT-1421 #android Change 3241357 on 2016/12/20 by Chris.Babcock Add gameActivityOnNewIntentAddtions section to Android UPL #jira UE-38986 #PR #2969 #ue4 #android Change 3241941 on 2016/12/21 by Alicia.Cano Build Fix Change 3249832 on 2017/01/06 by Nick.Shin refetch on timed out GET/POST requests #jira UE-39992 Quicklaunch UFE HTML5 fails with "NS_ERROR_Failure" Change 3249837 on 2017/01/06 by Nick.Shin black box issues fixed: use device pixel ratio during width and height checks and use canvas dimensions if in full screen -- otherwise store SDL_window dimensions for future use #jira UE-36341 HTML5 - View is incorrectly drawn #jira UE-32311 Templates on Firefox/Chrome on HTML5 are not full screen during Launch On Change 3249988 on 2017/01/06 by Josh.Adams - Disable the HeartBeat() function on platforms that don't actually want to use the HeartbeatThread #jira UE-40305, UE-39291, UE-40113 Change 3253720 on 2017/01/11 by Josh.Adams - Added support for a config class to use a specific platform's config hierarchy, so that the editor can read NDA'd platform default settings without needing the settings to in Base*.ini - See SwitchRuntimeSettings.h / GetConfigOverridePlatform() - Addiontally made it so that NDAd platforms are saved to Project/Platform/Platform*.ini, instead of Project/Default*.ini (to keep samples .ini files free of NDAd platform settings). - See UObject::GetDefaultConfigFilename() - Updated some minor ShooterGame switch settings while cleaning this up Change 3254162 on 2017/01/11 by Daniel.Lamb Avoid trying to load empty package names. Fixed issue with iterative ini files being unparseable if they inlcude a colon in them. #jira UE-40257, UE-35001 #test Cook QAGame Change 3255309 on 2017/01/12 by Daniel.Lamb In the derived datacache commandlet wait for texture building to finish before we GC. #test DDC QAGame Change 3255311 on 2017/01/12 by Daniel.Lamb Removed debug logging for shader compilation. Issue hasn't occured in a while and the logging is annoying. #test Cook QAGame Change 3257024 on 2017/01/13 by Josh.Adams - Reread in the target RHIs array every time the list of shader types is needed, instead of caching, because the user could change the settings in the editor, then click cook. #jira UE-38691 Change 3259636 on 2017/01/16 by Josh.Adams - Fixed split screen render issue with payer 2 getting no geometry #jira UE-40684 Change 3260159 on 2017/01/17 by Ben.Marsh Added extra logging when deleting a directory fails during ReconcileWorkspace. Change 3260300 on 2017/01/17 by Ben.Marsh More logging for cleaning workspaces. Change 3261056 on 2017/01/17 by Daniel.Lamb Cook on the fly builds now resolve string asset references. #test Trivial Change 3262803 on 2017/01/18 by Joe.Graf Added missing support for compiling plugins external to Engine/Plugins & Game/Plugins Change 3262852 on 2017/01/18 by Joe.Graf Fixed the bad robomerge Don't try to regenerate projects when adding a content only plugin to a content only project Change 3264930 on 2017/01/19 by Joe.Barnes #include some header files needed when building UFE. Change 3265728 on 2017/01/20 by Will.Fissler PlatformShowcase - Added TestBed_MobileFeatures .umap and related test content. Change 3267188 on 2017/01/21 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3267439 on 2017/01/22 by Arciel.Rekman Fix Dev-Platform build. - Fixed just to have it compile; perhaps a proper fix is needed. - Seems to be caused by CL 3265587 (delegate was changed to return an array of search results instead of a single one). Change 3267556 on 2017/01/23 by Arciel.Rekman Linux: fix MoveFile to work across file systems. - PR #3141 with slight changes. Change 3267843 on 2017/01/23 by Arciel.Rekman Remove name collision (macro vs libc++). - Redoing CL 3259310. Change 3267850 on 2017/01/23 by Arciel.Rekman Fix wrong always true condition. - PLATFORM_LINUX is always defined, but can be 0. Change 3268048 on 2017/01/23 by Daniel.Lamb Integrated fix for rebuild lighting commandlet from Greg Korman @ Impulse Gear. #test Rebuild lighting Paragon Change 3268403 on 2017/01/23 by Josh.Adams #BUILDUPGRADENOTES - Moved XboxOne and PS4 settings into platform specific .ini files (after using GetConfigOverridePlatform() in their class delcarations) - Licensee games that have PS4, XboxOne, Switch settings in DefaultEngine.ini will have those settings saved in the platform version next time the project settings are edited. DOCUMENT THIS! Change 3272441 on 2017/01/25 by Chris.Babcock Fixed documentation error in UnrealPluginLanguage #ue4 #android Change 3272478 on 2017/01/25 by Chris.Babcock Fix another documentation error in UnrealPluginLanguage #ue4 Change 3272826 on 2017/01/25 by Chris.Babcock Google Cloud Messaging plugin for Android #jira UEPLAT-1458 #ue4 #android Change 3272839 on 2017/01/25 by Chris.Babcock Fix name of Google Cloud Messaging Sender ID #ue4 #android Change 3273837 on 2017/01/26 by Daniel.Lamb Added check to ensure editor never saves source texture data which has had ReleaseSourceMemory called on it. Instead crash as this is a loss of content situation. #test Cook paragon cook qagame Change 3274122 on 2017/01/26 by Alicia.Cano Runtime permissions support on Android - Removing certain permissions #jira UE-38512 #android Change 3274311 on 2017/01/26 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3274794 on 2017/01/27 by Arciel.Rekman Linux: fix installed SDK check (UE-40392). - Pull request #3111 by rubu. Change 3274803 on 2017/01/27 by Arciel.Rekman Linux: added few more exceptions to .gitignore (UE-39612). - Pull request #3026 by ardneran. Change 3276247 on 2017/01/27 by Nick.Shin HTML5 HeapSize settings - make use of it from UE4 Editor:Platforms:HTML5:Memory:HeapSize note: emscripten says this is really no longer needed when using [ -s ALLOW_MEMORY_GROWTH=1 ] -- but tests have shown when using that, the game load/compile times takes longer #jira UE-34753 Zen Garden cannot compile in HTML5 #jira UE-40815 Launching QAGame for HTML5 creates an 'uncaught exception: out of memory'. Change 3276347 on 2017/01/27 by dan.reynolds Android Streaming Test Content Change 3276682 on 2017/01/29 by Nick.Shin HTML5 thirdparty build scripts - fix up what looks like a bad merge - allow linux to also build these libs - fixed harfbuzz to use freetype2-2.6 when building HTML5 libs - tested on mac, linux, and windows (git-bash) Change 3276796 on 2017/01/29 by Nick.Shin HTML5 thirdparty (python) build scripts - linux patches from mozilla's jukka - tested on mac and, linux, and windows (git-bash) part of: #jira UEPLAT-1437 (4.16) Switch [to] web assembly Change 3276803 on 2017/01/29 by Nick.Shin HTML5 thirdparty build scripts - getting ready to build with (new toolchain that has) wasm support - minor fix to handle whitespace in project path - tested on mac and, linux, and windows (git-bash) part of: #jira UEPLAT-1437 (4.16) Switch [to] web assembly Change 3278007 on 2017/01/30 by Arciel.Rekman SteamVR: whitelist for Linux. - Makes Blueprint functions available in Linux builds, even if stubbed. - Can be probably whitelisted for Mac too. Change 3278172 on 2017/01/30 by Arciel.Rekman Do not rebuild UnrealPak locally (UE-41285). Change 3279873 on 2017/01/31 by Brent.Pease + Implement streaming in Vorbis + Add streaming to Android audio + Fix audio streaming chunk race condition Change 3280063 on 2017/01/31 by Brent.Pease GitHub 2949 : Fix for crashes when backgrounding/sleeping on iOS metal devices #2949 #jira UE-38829 Change 3280072 on 2017/01/31 by Brent.Pease PR #2889: Add -distribution when iOS distribution Packaging. with IPhonePackage.exe (Contributed by sangpan) https://github.com/EpicGames/UnrealEngine/pull/2889 #jira ue-37874 #2889 Change 3280091 on 2017/01/31 by Arciel.Rekman Linux: fix "unable to make writable" toast (UE-37228). - Also fixed other platforms that returned inverted the error result. Change 3280624 on 2017/01/31 by Brent.Pease PR #2891: iOS IDFV string allocation fix (Contributed by robertfsegal) https://github.com/EpicGames/UnrealEngine/pull/2891 #2891 #jira ue-37891 Change 3280625 on 2017/01/31 by Brent.Pease GitHub 2576 - Fix UIImagePickerController crash #2576 #jira UE-328888 Change 3281618 on 2017/02/01 by Josh.Adams - Fixed hopeful compile error with missing inlcude #jira UE-41415 Change 3282277 on 2017/02/01 by Josh.Adams - Support 0.12.16 and 1.1.1 (the first versions that can share Oasis) Change 3282441 on 2017/02/01 by Arciel.Rekman Fix Linux editor splash screen (UE-28123). Change 3282580 on 2017/02/01 by Nick.Shin HTML5 - fix "firefox nighly" issue with: failed to compile wasm module: CompileError: at offset XXX: initial memory size too big: WARNING: this greatly impacts (in browser) compile times Change 3285991 on 2017/02/03 by Chris.Babcock Fix executable path for stripping Android debug symbols (handle non-Windows properly) #jira UE-41238 #ue4 #android Change 3286406 on 2017/02/03 by Chris.Babcock Save and restore texture filtering for movie playback in all cases #jira UE-41565 #ue4 #android Change 3286800 on 2017/02/04 by Chris.Babcock Fix executable path for stripping Android debug symbols (handle non-Windows properly) #jira UE-41238 #ue4 #android Change 3288598 on 2017/02/06 by Arciel.Rekman CodeLite fixes. - Use *-Linux-Debug binary for Debug configuration. - Fix virtual paths. Change 3288864 on 2017/02/06 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) - Note, Switch is known to not boot with this, fix coming next Change 3289364 on 2017/02/06 by Josh.Adams [BUILDUPGRADENOTES] - Fixed the "type" of the desktop device profiles to be Windows, not WindowsNoEditor, etc. It should be the platform, not a random string. - Updated how DeviceProfiles are loaded, especially in the editor, so that we can have NDAd platforms have their default DP values in platform-hidden files - This makes use of the ability for a class to override the platform hierarchy in the editor (like we do with other editor-exposed platform objects) - Added Config/[PS4|XboxOne|Switch]/ConfidentialPlatform.ini files so that the DP loading code knows to look in their directories for DPs. See FGenericPlatformMisc::GetConfidentialPlatforms() for more information - Note that saving still saves the entire DP to the .ini. Next DP change is to have them properly save against their 2(!) parents - the .ini file earlier in the hierarchy, and the parent DP object. Makes it tricky, for sure. - Added FConfigFile::GetArray (previous was only on FConfigCacheIni) Change 3289796 on 2017/02/07 by Arciel.Rekman Linux: remove leftover CEF build script. Change 3289872 on 2017/02/07 by Arciel.Rekman Linux: install MIME types (UE-40954). - Pull request #3154 by RicardoEPRodrigues. Change 3289915 on 2017/02/07 by Josh.Adams - Fixed CIS warnings Change 3289916 on 2017/02/07 by Arciel.Rekman Linux: remove -opengl4 from the default invocation. Change 3290009 on 2017/02/07 by Gil.Gribb UE4 - Fixed boot time EDL causing some issues even when it wasn't being used. Change 3290120 on 2017/02/07 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3290948 on 2017/02/07 by Arciel.Rekman Linux: fix crash when clicking on question mark (UE-41634). - Symbol interposition problem (proper fix is still to be investigated). (Edigrating part of CL 3290683 from Release-4.15 to Dev-Platform) Change 3291074 on 2017/02/07 by Arciel.Rekman Speculative build fix. Change 3292028 on 2017/02/08 by Josh.Adams - Fixed Incremental CIS build failures Change 3292105 on 2017/02/08 by Nick.Shin emcc.py - change warning to info #jira UE-41747 //UE4/Dev-Platform Compile UE4Game HTML5 completed with 50 warnings Change 3292201 on 2017/02/08 by JohnHenry.Carawon Change comment to fix XML warning when generating project files on Linux Change 3292242 on 2017/02/08 by Arciel.Rekman Linux: avoid unnecessary dependency on CEF (UE-41634). - Do not apply CEF workaround to monolithic builds (eg. stock Game/Server targets). - Also disable CEF compilation for ShaderCompileWorker. - Based on CL 3292077 in 4.15. Change 3292559 on 2017/02/08 by Josh.Adams - Added more platforms to disable the file handle caching (all the ones that use MANAGED_FILE_HANDLES) Change 3294333 on 2017/02/09 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3294506 on 2017/02/09 by Josh.Adams - Fixed GoogleCloudMessaging.uplugin to fix the Installed flag. Every other plugin had false, this one had true, which caused various checks to go haywire #jira UE-41710 Change 3294984 on 2017/02/09 by Josh.Adams - Worked around the remote compiling issue with code-based projects on a different drive than the engine #jira UE-41704 Change 3295056 on 2017/02/09 by Josh.Adams - Fixed the remote compiling issue by unconverting the path back to host when reading from the module filename Change 3295161 on 2017/02/09 by Josh.Adams - Fixed new bug when buildin native ios that was caused by a remote compile break Change 3295229 on 2017/02/09 by Josh.Adams - Fixed a crash in clothing on platforms that don't support clothing #jira UE-41830 [CL 3295859 by Josh Adams in Main branch]
2017-02-09 19:20:55 -05:00
FSLESSoundBuffer* FSLESSoundBuffer::CreateStreamBuffer( FSLESAudioDevice* AudioDevice, USoundWave* InWave )
{
// Always create a new buffer for streaming
FSLESSoundBuffer* Buffer = new FSLESSoundBuffer( AudioDevice);
FSoundQualityInfo QualityInfo = { 0 };
Buffer->DecompressionState = AudioDevice->CreateCompressedAudioInfo(InWave);
if (Buffer->DecompressionState && Buffer->DecompressionState->StreamCompressedInfo(InWave, &QualityInfo))
{
// Clear out any dangling pointers
Buffer->AudioData = NULL;
Buffer->BufferSize = 0;
// Keep track of associated resource name.
Buffer->ResourceName = InWave->GetPathName();
Buffer->NumChannels = InWave->NumChannels;
Buffer->SampleRate = InWave->SampleRate;
FPlatformMisc::LowLevelOutputDebugStringf(TEXT("DEBUG: FSLESSoundBuffer::CreateStreamBuffer Buffer->SampleRate = %d"), Buffer->SampleRate);
//Android can't handle more than 48kHz, so turn on halfrate decoding and adjust parameters
if (Buffer->SampleRate > 48000)
{
UE_LOG(LogAndroidAudio, Log, TEXT( "Converting %s to halfrate from %d" ), *InWave->GetName(), Buffer->SampleRate );
Buffer->DecompressionState->EnableHalfRate( true);
Buffer->SampleRate = Buffer->SampleRate / 2;
InWave->SampleRate = InWave->SampleRate / 2;
uint32 SampleCount = QualityInfo.SampleDataSize / (QualityInfo.NumChannels * sizeof(uint16));
SampleCount /= 2;
InWave->RawPCMDataSize = SampleCount * QualityInfo.NumChannels * sizeof(uint16);;
}
Buffer->Format = SoundFormat_Streaming;
}
else
{
InWave->DecompressionType = DTYPE_Invalid;
InWave->NumChannels = 0;
InWave->RemoveAudioResource();
}
return Buffer;
}
/**
* Static function used to create an OpenSL buffer and upload decompressed ogg vorbis data to.
*
* @param InWave USoundWave to use as template and wave source
* @param AudioDevice audio device to attach created buffer to
* @return FSLESSoundBuffer pointer if buffer creation succeeded, NULL otherwise
*/
FSLESSoundBuffer* FSLESSoundBuffer::CreateNativeBuffer( FSLESAudioDevice* AudioDevice, USoundWave* InWave )
{
// Check to see if thread has finished decompressing on the other thread
if( InWave->AudioDecompressor != NULL )
{
InWave->AudioDecompressor->EnsureCompletion();
// Remove the decompressor
delete InWave->AudioDecompressor;
InWave->AudioDecompressor = NULL;
}
FSLESSoundBuffer* Buffer = NULL;
// Create new buffer.
Buffer = new FSLESSoundBuffer( AudioDevice );
Copying //UE4/Dev-Platform to //UE4/Main ========================== MAJOR FEATURES + CHANGES ========================== Change 2719147 on 2015/10/07 by Mark.Satterthwaite Allow the shader cache to perform some precompilation synchronously on load before falling back to asynchronous compilation to balance load times against total time spent precompiling. Added a stat to the group that reports how long the precompile has been running until it completes so it is easier to track. Change 2719182 on 2015/10/07 by Mark.Satterthwaite Refactor the ShaderCache's internal data structures and change the way we handle recording whether a particular predraw state has been submitted to try and make it more efficient. Change 2719185 on 2015/10/07 by Mark.Satterthwaite Merging CL #2717701: Try and fix random crashes on Mac when manipulating bound-shader-states caused by ShaderCache potentially providing a bogus shader state pointer on exit from predraw. Change 2719434 on 2015/10/07 by Mark.Satterthwaite Make sure that Mac ensures reports have a source context and a sane callstack when sent to the crash-reports server. Change 2724764 on 2015/10/12 by Josh.Adams [Initial AppleTV support] Merging //depot/YakBranch/... to //UE4/Dev-Platform/... Change 2726266 on 2015/10/13 by Lee.Clark PS4 - Calc reserve size required for DMA copy when using unsafe command buffers Change 2726401 on 2015/10/13 by Mark.Satterthwaite Merging CL #2716418: Fix UE-15228 'Crash Report Client doesn't restart into project editor on Mac' by reporting the original command line supplied by LaunchMac, not the modified one that strips the project name. The CRC can then relaunch as expected. #jira UE-15228 Change 2726421 on 2015/10/13 by Lee.Clark PS4 - Don't try to clear invalid targets Change 2727040 on 2015/10/13 by Michael.Trepka Merging CL 2724777 - Fixed splash screen rendering for images with DPI different than 72 Change 2729783 on 2015/10/15 by Keith.Judge Fix huge memory leak in Test/Shipping configurations, caused because I am a numpty. Change 2729847 on 2015/10/15 by Mark.Satterthwaite Merging CL #2729846: On OS X unconstrain windows from the dimension of the parent display when in Windowed mode - it is OK for them to be larger in this case. They do need to be repositioned if on the Primary display so that they don't creep under the menu bar and become unmovable/unclosable and Fullscreen windows still need to be constrained to a single display. We can now take screenshots of windows that are larger than the display & not get grey bars beyond the cutoff. #jira UE-21992 Change 2729865 on 2015/10/15 by Keith.Judge Fast semantics - Finish up resource transitions, adding resource decompression where appropriate and using non-fast clears where we can't determine the resource transition. Change 2729897 on 2015/10/15 by Keith.Judge Fast Semantics - Make sure all GetData() calls are made safe with GPU fences. Change 2729972 on 2015/10/15 by Keith.Judge Removed the last vestiges of ID3D11DeviceContext/ID3D11DeviceContext1 from the Xbox RHI. Everything now uses ID3D11DeviceContextX directly. This should be marginally quicker as it stops a double call to ClearState(). Change 2731503 on 2015/10/16 by Keith.Judge Added _XDK_VERSION to the DDC key for textures, which should solve the issue of the tiling mode changing in August XDK (and future changes Microsoft may inflict). Change 2731596 on 2015/10/16 by Keith.Judge Fast Semantics - Add deferred resource deletion queue to make deleted resources be actually deleted a number of frames later so that the GPU is definitely finished with them. Hooked up the temporary SRVs for dynamic VBs as a first step. Change 2731928 on 2015/10/16 by Michael.Trepka PR #1659: Mac/Build.sh handles additional arguments (Contributed by judgeaxl) Change 2731934 on 2015/10/16 by Michael.Trepka PR #1618: added clang 3.7.0 -Wshift-negative-value ignore in JpegImageWrapper.cpp (Contributed by bsekura) Change 2732018 on 2015/10/16 by Mark.Satterthwaite Emit a shader code cache for each platforms requested shader formats, this is separate to the targeted formats as not all can or need to be cached. - The implementation extends the ShaderCache's hooks in FShaderResource's serialisation function to capture the required shaders. - Each target platform has its own list of cached shader formats, analogous to the list of targeted RHIs. Presently only the Mac implements this. - Code cached shaders are now compressed (for size) to reduce the overhead associated with keeping all the shader code around - this works esp. well for text-based formats like GLSL. Change 2732365 on 2015/10/16 by Josh.Adams - Packaging a TVOS .ipa now works (still haven't tried any of the Editor integration like Launch On) Change 2733170 on 2015/10/18 by Terence.Burns Fix for Android IAP query not returning entire inventory. Change 2733174 on 2015/10/18 by Terence.Burns Fix Movie player issue where wait for movie to finish isnt being respected. Seems a stray bUserCanceled event flag was causing this not to be observed. Added some verbose logging to apple movie player. Change 2733488 on 2015/10/19 by Mark.Satterthwaite Added the ability to merge the .ushadercache files used by the ShaderCache to store shader & draw state information. - Fixed a bug that would cause invalid shader membership and draw state information to be logged. - Added a separate command-line tool to merge shader cache files, currently Mac-only but in theory should work on other platforms too. Change 2735226 on 2015/10/20 by Mark.Satterthwaite Fix temporal AA rendering on GL/Mac OS X - you can't rely on EyeAdaptation values unless SM5 is available so only perform that code on SM5 & we must correctly clamp saturate(NaN) to 0 as the current hlslcc won't do that for us (& is required by the HLSL spec). The latter used to be clamped in the AA_ALPHA && AA_VELOCITY_WEIGHTING code block that was removed recently. #jira UE-21214 #jira UE-19913 Change 2736722 on 2015/10/21 by Daniel.Lamb Improved performance of cooking stats system. Change 2737172 on 2015/10/21 by Daniel.Lamb Improved cooking stats performance for ddc stats.
2015-12-10 16:56:55 -05:00
Buffer->DecompressionState = AudioDevice->CreateCompressedAudioInfo(InWave);
FAudioDeviceManager* AudioDeviceManager = GEngine->GetAudioDeviceManager();
check(AudioDeviceManager != nullptr);
AudioDeviceManager->TrackResource(InWave, Buffer);
Buffer->NumChannels = InWave->NumChannels;
Buffer->SampleRate = InWave->SampleRate;
// Take ownership the PCM data
Buffer->AudioData = InWave->RawPCMData;
Buffer->BufferSize = InWave->RawPCMDataSize;
Buffer->Format = SoundFormat_PCM;
InWave->RawPCMData = NULL;
InWave->RemoveAudioResource();
return Buffer;
}
/**
* Static function used to create an Audio buffer and dynamically upload procedural data to.
*
* @param InWave USoundWave to use as template and wave source
* @param AudioDevice audio device to attach created buffer to
* @return FSLESSoundBuffer pointer if buffer creation succeeded, NULL otherwise
*/
FSLESSoundBuffer* FSLESSoundBuffer::CreateProceduralBuffer(FSLESAudioDevice* AudioDevice, USoundWave* InWave)
{
FSLESSoundBuffer* Buffer = new FSLESSoundBuffer(AudioDevice);
// Setup any default information
Buffer->DecompressionState = NULL;
Buffer->AudioData = NULL;
Buffer->BufferSize = 0;
Buffer->Format = SoundFormat_PCMRT;
Buffer->NumChannels = InWave->NumChannels;
Buffer->SampleRate = InWave->SampleRate;
InWave->RawPCMData = NULL;
// No tracking of this resource as it's temporary
Buffer->ResourceID = 0;
InWave->ResourceID = 0;
return Buffer;
}
/**
* Static function used to create a buffer.
*
* @param InWave USoundNodeWave to use as template and wave source
* @param AudioDevice audio device to attach created buffer to
* @param bIsPrecacheRequest Whether this request is for precaching or not
* @return FSLESSoundBuffer pointer if buffer creation succeeded, NULL otherwise
*/
FSLESSoundBuffer* FSLESSoundBuffer::Init( FSLESAudioDevice* AudioDevice ,USoundWave* InWave )
{
SCOPE_CYCLE_COUNTER( STAT_AudioResourceCreationTime );
// Can't create a buffer without any source data
if( InWave == NULL || InWave->NumChannels == 0 )
{
UE_LOG( LogAndroidAudio, Warning, TEXT("InitBuffer with Null sound data"));
return( NULL );
}
FAudioDeviceManager* AudioDeviceManager = GEngine->GetAudioDeviceManager();
FSLESSoundBuffer* Buffer = NULL;
EDecompressionType DecompressionType = InWave->DecompressionType;
Merging //UE4/Release-4.11 to //UE4/Main (Up to CL#2909747) #lockdown Nick.Penwarden ========================== MAJOR FEATURES + CHANGES ========================== Change 2898120 on 2016/03/07 by Chris.Babcock Disable NvTimerQuery on Nexus 9 before Android 6.0 to fix slow frame updates #jira UE-28013 #ue4 #android Change 2898539 on 2016/03/08 by Matthew.Griffin Merging //UE4/Dev-Build to //UE4/Release-4.11 Change 2887414 on 2016/03/01 by Ben.Marsh Dump all the *.crash files produced while running commandlets, to make it easier to diagnose build system crashes cooking on Mac. Change 2898788 on 2016/03/08 by Keith.Judge Latest DX12.x integration from Microsoft. Brings XB1 up to PC level of functionality and improved perf. #jira UEPLAT-325 Change 2898836 on 2016/03/08 by Taizyd.Korambayil #jira UE-27990 Reimported River_Basin_02 Mesh with Adjacency Buffer Change 2898897 on 2016/03/08 by Sean.Gribbin #Jira UE-26550 Adding name to credits of Match 3 Change 2898938 on 2016/03/08 by Taizyd.Korambayil #jira UE-26284 Fixed Up Some Materials and BP errors Change 2898967 on 2016/03/08 by Benjamin.Hyder Updating Qa_Materials map #jira UE-24473 Change 2899032 on 2016/03/08 by Zachary.Wilson Fixing broken assets in QA-LightsStationary and eliminating log errors. Fixing mispelling and player start height in QA-LightsStationary. #jira UE-24473 Change 2899244 on 2016/03/08 by Peter.Sauerbrei addition of launch images for iPad Pro #jira UE-24793 Change 2899335 on 2016/03/08 by Richard.Hinckley #jira UE-27356 Fixing code for VR headsets so that the camera starts inside the vehicle if the user has an active HMD. Found that the C++ templates never had HMD support, so mirroring the BP templates for that functionality. Works in my testing, but a proper QA pass should be performed. Change 2899402 on 2016/03/08 by Michael.Schoell Macro instance nodes now have a hard dependency to any object class or structs their pins reference. Expanded UK2Node_MacroInstance::HasExternalDependencies to iterate over all pins and add their struct or object's class. #jira UE-27795 - Split Pins on a referenced Macro Library will crash the editor on restart Change 2899424 on 2016/03/08 by Dmitry.Rekman Fix CrossCompilerTool on Linux (UE-28056). #jira UE-28056 Change 2899445 on 2016/03/08 by Dmitry.Rekman Fix CrossCompilerTool invocation in debug scripts. #jira UE-28056 Change 2899488 on 2016/03/08 by Ryan.Vance #jira UE-28000 We can't test how many views are in the view family when initializing a view. There's no guaruntee that the family is setup yet. We'll need to move this test to the calling code. Change 2899546 on 2016/03/08 by Zachary.Wilson Updating QA-PostProcessing to match the 4.12 Main version of the map. #jira UE-24473 Change 2899553 on 2016/03/08 by Michael.Schoell Reinstancer will no longer queue BPs to be saved when compiling skeleton class dependencies and will no longer process all queued BPs to save when it is complete. #jira UE-27509 - Save on compile set to always causes a crash on compile #jira UE-27856 - "Always" Save on Compile does not save the Blueprint Change 2899558 on 2016/03/08 by Benjamin.Hyder building Lighting for QA-Materials #jira UE-24473 Change 2899597 on 2016/03/08 by Chris.Babcock Change reporting level of audio buffer decompression type logging #jira UE-28058 #ue4 #android Change 2899704 on 2016/03/08 by Benjamin.Hyder Updating Qa-Materials map #Jira UE-24473 Change 2899736 on 2016/03/08 by Benjamin.Hyder Updating TM-LPV map #Jira UE-24473 Change 2899810 on 2016/03/08 by Lauren.Ridge #jira UE-27995 UE-27987 Final UM3 UI Tweaks, + bug fix Change 2899876 on 2016/03/08 by Peter.Sauerbrei [CL 2913181 by Matthew Griffin in Main branch]
2016-03-17 11:10:14 -04:00
UE_LOG(LogAndroidAudio, Verbose, TEXT("Init: Using decompression type: %d"), int32(DecompressionType));
Copying //UE4/Dev-Platform to //UE4/Main ========================== MAJOR FEATURES + CHANGES ========================== Change 2719147 on 2015/10/07 by Mark.Satterthwaite Allow the shader cache to perform some precompilation synchronously on load before falling back to asynchronous compilation to balance load times against total time spent precompiling. Added a stat to the group that reports how long the precompile has been running until it completes so it is easier to track. Change 2719182 on 2015/10/07 by Mark.Satterthwaite Refactor the ShaderCache's internal data structures and change the way we handle recording whether a particular predraw state has been submitted to try and make it more efficient. Change 2719185 on 2015/10/07 by Mark.Satterthwaite Merging CL #2717701: Try and fix random crashes on Mac when manipulating bound-shader-states caused by ShaderCache potentially providing a bogus shader state pointer on exit from predraw. Change 2719434 on 2015/10/07 by Mark.Satterthwaite Make sure that Mac ensures reports have a source context and a sane callstack when sent to the crash-reports server. Change 2724764 on 2015/10/12 by Josh.Adams [Initial AppleTV support] Merging //depot/YakBranch/... to //UE4/Dev-Platform/... Change 2726266 on 2015/10/13 by Lee.Clark PS4 - Calc reserve size required for DMA copy when using unsafe command buffers Change 2726401 on 2015/10/13 by Mark.Satterthwaite Merging CL #2716418: Fix UE-15228 'Crash Report Client doesn't restart into project editor on Mac' by reporting the original command line supplied by LaunchMac, not the modified one that strips the project name. The CRC can then relaunch as expected. #jira UE-15228 Change 2726421 on 2015/10/13 by Lee.Clark PS4 - Don't try to clear invalid targets Change 2727040 on 2015/10/13 by Michael.Trepka Merging CL 2724777 - Fixed splash screen rendering for images with DPI different than 72 Change 2729783 on 2015/10/15 by Keith.Judge Fix huge memory leak in Test/Shipping configurations, caused because I am a numpty. Change 2729847 on 2015/10/15 by Mark.Satterthwaite Merging CL #2729846: On OS X unconstrain windows from the dimension of the parent display when in Windowed mode - it is OK for them to be larger in this case. They do need to be repositioned if on the Primary display so that they don't creep under the menu bar and become unmovable/unclosable and Fullscreen windows still need to be constrained to a single display. We can now take screenshots of windows that are larger than the display & not get grey bars beyond the cutoff. #jira UE-21992 Change 2729865 on 2015/10/15 by Keith.Judge Fast semantics - Finish up resource transitions, adding resource decompression where appropriate and using non-fast clears where we can't determine the resource transition. Change 2729897 on 2015/10/15 by Keith.Judge Fast Semantics - Make sure all GetData() calls are made safe with GPU fences. Change 2729972 on 2015/10/15 by Keith.Judge Removed the last vestiges of ID3D11DeviceContext/ID3D11DeviceContext1 from the Xbox RHI. Everything now uses ID3D11DeviceContextX directly. This should be marginally quicker as it stops a double call to ClearState(). Change 2731503 on 2015/10/16 by Keith.Judge Added _XDK_VERSION to the DDC key for textures, which should solve the issue of the tiling mode changing in August XDK (and future changes Microsoft may inflict). Change 2731596 on 2015/10/16 by Keith.Judge Fast Semantics - Add deferred resource deletion queue to make deleted resources be actually deleted a number of frames later so that the GPU is definitely finished with them. Hooked up the temporary SRVs for dynamic VBs as a first step. Change 2731928 on 2015/10/16 by Michael.Trepka PR #1659: Mac/Build.sh handles additional arguments (Contributed by judgeaxl) Change 2731934 on 2015/10/16 by Michael.Trepka PR #1618: added clang 3.7.0 -Wshift-negative-value ignore in JpegImageWrapper.cpp (Contributed by bsekura) Change 2732018 on 2015/10/16 by Mark.Satterthwaite Emit a shader code cache for each platforms requested shader formats, this is separate to the targeted formats as not all can or need to be cached. - The implementation extends the ShaderCache's hooks in FShaderResource's serialisation function to capture the required shaders. - Each target platform has its own list of cached shader formats, analogous to the list of targeted RHIs. Presently only the Mac implements this. - Code cached shaders are now compressed (for size) to reduce the overhead associated with keeping all the shader code around - this works esp. well for text-based formats like GLSL. Change 2732365 on 2015/10/16 by Josh.Adams - Packaging a TVOS .ipa now works (still haven't tried any of the Editor integration like Launch On) Change 2733170 on 2015/10/18 by Terence.Burns Fix for Android IAP query not returning entire inventory. Change 2733174 on 2015/10/18 by Terence.Burns Fix Movie player issue where wait for movie to finish isnt being respected. Seems a stray bUserCanceled event flag was causing this not to be observed. Added some verbose logging to apple movie player. Change 2733488 on 2015/10/19 by Mark.Satterthwaite Added the ability to merge the .ushadercache files used by the ShaderCache to store shader & draw state information. - Fixed a bug that would cause invalid shader membership and draw state information to be logged. - Added a separate command-line tool to merge shader cache files, currently Mac-only but in theory should work on other platforms too. Change 2735226 on 2015/10/20 by Mark.Satterthwaite Fix temporal AA rendering on GL/Mac OS X - you can't rely on EyeAdaptation values unless SM5 is available so only perform that code on SM5 & we must correctly clamp saturate(NaN) to 0 as the current hlslcc won't do that for us (& is required by the HLSL spec). The latter used to be clamped in the AA_ALPHA && AA_VELOCITY_WEIGHTING code block that was removed recently. #jira UE-21214 #jira UE-19913 Change 2736722 on 2015/10/21 by Daniel.Lamb Improved performance of cooking stats system. Change 2737172 on 2015/10/21 by Daniel.Lamb Improved cooking stats performance for ddc stats.
2015-12-10 16:56:55 -05:00
switch( DecompressionType )
{
case DTYPE_Setup:
// Has circumvented precache mechanism - precache now
AudioDevice->Precache(InWave, true, false);
// if it didn't change, we will recurse forever
check(InWave->DecompressionType != DTYPE_Setup);
// Recall this function with new decompression type
return( Init( AudioDevice, InWave ) );
break;
case DTYPE_Native:
// Upload entire wav
if( InWave->ResourceID )
{
Buffer = static_cast<FSLESSoundBuffer*>(AudioDeviceManager->WaveBufferMap.FindRef(InWave->ResourceID));
}
if( Buffer == NULL )
{
Buffer = CreateNativeBuffer( AudioDevice, InWave );
}
break;
case DTYPE_RealTime:
// Always create a new buffer for streaming ogg vorbis data
Buffer = CreateQueuedBuffer( AudioDevice, InWave );
break;
Copying //UE4/Dev-Platform to //UE4/Dev-Main (Source: //UE4/Dev-Platform @ 3295257) #lockdown Nick.Penwarden #rb none ========================== MAJOR FEATURES + CHANGES ========================== Change 3235199 on 2016/12/14 by Joe.Barnes Fix new compile error for missing #define Change 3235340 on 2016/12/14 by Arciel.Rekman Linux: refactor of some PlatformMisc functions. - RootDir() removed since it was a no-op. - Old EngineDir() implementation removed in favor of more generic one that should handle foreign engine dir. - Change by CengizT, Change 3237014 on 2016/12/15 by Michael.Trepka Fixed a crash in FChunkCacheWorker constructor Change 3238305 on 2016/12/16 by Josh.Adams - Added a None option to the FKey customization, unless the FKey property had NoClear on it Change 3240823 on 2016/12/20 by Josh.Stoddard Device profiles don't work for iPadPro 9.7 and 12.9 #jira UE-39943 Change 3241103 on 2016/12/20 by Alicia.Cano Android support from Visual Studio #jira UEPLAT-1421 #android Change 3241357 on 2016/12/20 by Chris.Babcock Add gameActivityOnNewIntentAddtions section to Android UPL #jira UE-38986 #PR #2969 #ue4 #android Change 3241941 on 2016/12/21 by Alicia.Cano Build Fix Change 3249832 on 2017/01/06 by Nick.Shin refetch on timed out GET/POST requests #jira UE-39992 Quicklaunch UFE HTML5 fails with "NS_ERROR_Failure" Change 3249837 on 2017/01/06 by Nick.Shin black box issues fixed: use device pixel ratio during width and height checks and use canvas dimensions if in full screen -- otherwise store SDL_window dimensions for future use #jira UE-36341 HTML5 - View is incorrectly drawn #jira UE-32311 Templates on Firefox/Chrome on HTML5 are not full screen during Launch On Change 3249988 on 2017/01/06 by Josh.Adams - Disable the HeartBeat() function on platforms that don't actually want to use the HeartbeatThread #jira UE-40305, UE-39291, UE-40113 Change 3253720 on 2017/01/11 by Josh.Adams - Added support for a config class to use a specific platform's config hierarchy, so that the editor can read NDA'd platform default settings without needing the settings to in Base*.ini - See SwitchRuntimeSettings.h / GetConfigOverridePlatform() - Addiontally made it so that NDAd platforms are saved to Project/Platform/Platform*.ini, instead of Project/Default*.ini (to keep samples .ini files free of NDAd platform settings). - See UObject::GetDefaultConfigFilename() - Updated some minor ShooterGame switch settings while cleaning this up Change 3254162 on 2017/01/11 by Daniel.Lamb Avoid trying to load empty package names. Fixed issue with iterative ini files being unparseable if they inlcude a colon in them. #jira UE-40257, UE-35001 #test Cook QAGame Change 3255309 on 2017/01/12 by Daniel.Lamb In the derived datacache commandlet wait for texture building to finish before we GC. #test DDC QAGame Change 3255311 on 2017/01/12 by Daniel.Lamb Removed debug logging for shader compilation. Issue hasn't occured in a while and the logging is annoying. #test Cook QAGame Change 3257024 on 2017/01/13 by Josh.Adams - Reread in the target RHIs array every time the list of shader types is needed, instead of caching, because the user could change the settings in the editor, then click cook. #jira UE-38691 Change 3259636 on 2017/01/16 by Josh.Adams - Fixed split screen render issue with payer 2 getting no geometry #jira UE-40684 Change 3260159 on 2017/01/17 by Ben.Marsh Added extra logging when deleting a directory fails during ReconcileWorkspace. Change 3260300 on 2017/01/17 by Ben.Marsh More logging for cleaning workspaces. Change 3261056 on 2017/01/17 by Daniel.Lamb Cook on the fly builds now resolve string asset references. #test Trivial Change 3262803 on 2017/01/18 by Joe.Graf Added missing support for compiling plugins external to Engine/Plugins & Game/Plugins Change 3262852 on 2017/01/18 by Joe.Graf Fixed the bad robomerge Don't try to regenerate projects when adding a content only plugin to a content only project Change 3264930 on 2017/01/19 by Joe.Barnes #include some header files needed when building UFE. Change 3265728 on 2017/01/20 by Will.Fissler PlatformShowcase - Added TestBed_MobileFeatures .umap and related test content. Change 3267188 on 2017/01/21 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3267439 on 2017/01/22 by Arciel.Rekman Fix Dev-Platform build. - Fixed just to have it compile; perhaps a proper fix is needed. - Seems to be caused by CL 3265587 (delegate was changed to return an array of search results instead of a single one). Change 3267556 on 2017/01/23 by Arciel.Rekman Linux: fix MoveFile to work across file systems. - PR #3141 with slight changes. Change 3267843 on 2017/01/23 by Arciel.Rekman Remove name collision (macro vs libc++). - Redoing CL 3259310. Change 3267850 on 2017/01/23 by Arciel.Rekman Fix wrong always true condition. - PLATFORM_LINUX is always defined, but can be 0. Change 3268048 on 2017/01/23 by Daniel.Lamb Integrated fix for rebuild lighting commandlet from Greg Korman @ Impulse Gear. #test Rebuild lighting Paragon Change 3268403 on 2017/01/23 by Josh.Adams #BUILDUPGRADENOTES - Moved XboxOne and PS4 settings into platform specific .ini files (after using GetConfigOverridePlatform() in their class delcarations) - Licensee games that have PS4, XboxOne, Switch settings in DefaultEngine.ini will have those settings saved in the platform version next time the project settings are edited. DOCUMENT THIS! Change 3272441 on 2017/01/25 by Chris.Babcock Fixed documentation error in UnrealPluginLanguage #ue4 #android Change 3272478 on 2017/01/25 by Chris.Babcock Fix another documentation error in UnrealPluginLanguage #ue4 Change 3272826 on 2017/01/25 by Chris.Babcock Google Cloud Messaging plugin for Android #jira UEPLAT-1458 #ue4 #android Change 3272839 on 2017/01/25 by Chris.Babcock Fix name of Google Cloud Messaging Sender ID #ue4 #android Change 3273837 on 2017/01/26 by Daniel.Lamb Added check to ensure editor never saves source texture data which has had ReleaseSourceMemory called on it. Instead crash as this is a loss of content situation. #test Cook paragon cook qagame Change 3274122 on 2017/01/26 by Alicia.Cano Runtime permissions support on Android - Removing certain permissions #jira UE-38512 #android Change 3274311 on 2017/01/26 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3274794 on 2017/01/27 by Arciel.Rekman Linux: fix installed SDK check (UE-40392). - Pull request #3111 by rubu. Change 3274803 on 2017/01/27 by Arciel.Rekman Linux: added few more exceptions to .gitignore (UE-39612). - Pull request #3026 by ardneran. Change 3276247 on 2017/01/27 by Nick.Shin HTML5 HeapSize settings - make use of it from UE4 Editor:Platforms:HTML5:Memory:HeapSize note: emscripten says this is really no longer needed when using [ -s ALLOW_MEMORY_GROWTH=1 ] -- but tests have shown when using that, the game load/compile times takes longer #jira UE-34753 Zen Garden cannot compile in HTML5 #jira UE-40815 Launching QAGame for HTML5 creates an 'uncaught exception: out of memory'. Change 3276347 on 2017/01/27 by dan.reynolds Android Streaming Test Content Change 3276682 on 2017/01/29 by Nick.Shin HTML5 thirdparty build scripts - fix up what looks like a bad merge - allow linux to also build these libs - fixed harfbuzz to use freetype2-2.6 when building HTML5 libs - tested on mac, linux, and windows (git-bash) Change 3276796 on 2017/01/29 by Nick.Shin HTML5 thirdparty (python) build scripts - linux patches from mozilla's jukka - tested on mac and, linux, and windows (git-bash) part of: #jira UEPLAT-1437 (4.16) Switch [to] web assembly Change 3276803 on 2017/01/29 by Nick.Shin HTML5 thirdparty build scripts - getting ready to build with (new toolchain that has) wasm support - minor fix to handle whitespace in project path - tested on mac and, linux, and windows (git-bash) part of: #jira UEPLAT-1437 (4.16) Switch [to] web assembly Change 3278007 on 2017/01/30 by Arciel.Rekman SteamVR: whitelist for Linux. - Makes Blueprint functions available in Linux builds, even if stubbed. - Can be probably whitelisted for Mac too. Change 3278172 on 2017/01/30 by Arciel.Rekman Do not rebuild UnrealPak locally (UE-41285). Change 3279873 on 2017/01/31 by Brent.Pease + Implement streaming in Vorbis + Add streaming to Android audio + Fix audio streaming chunk race condition Change 3280063 on 2017/01/31 by Brent.Pease GitHub 2949 : Fix for crashes when backgrounding/sleeping on iOS metal devices #2949 #jira UE-38829 Change 3280072 on 2017/01/31 by Brent.Pease PR #2889: Add -distribution when iOS distribution Packaging. with IPhonePackage.exe (Contributed by sangpan) https://github.com/EpicGames/UnrealEngine/pull/2889 #jira ue-37874 #2889 Change 3280091 on 2017/01/31 by Arciel.Rekman Linux: fix "unable to make writable" toast (UE-37228). - Also fixed other platforms that returned inverted the error result. Change 3280624 on 2017/01/31 by Brent.Pease PR #2891: iOS IDFV string allocation fix (Contributed by robertfsegal) https://github.com/EpicGames/UnrealEngine/pull/2891 #2891 #jira ue-37891 Change 3280625 on 2017/01/31 by Brent.Pease GitHub 2576 - Fix UIImagePickerController crash #2576 #jira UE-328888 Change 3281618 on 2017/02/01 by Josh.Adams - Fixed hopeful compile error with missing inlcude #jira UE-41415 Change 3282277 on 2017/02/01 by Josh.Adams - Support 0.12.16 and 1.1.1 (the first versions that can share Oasis) Change 3282441 on 2017/02/01 by Arciel.Rekman Fix Linux editor splash screen (UE-28123). Change 3282580 on 2017/02/01 by Nick.Shin HTML5 - fix "firefox nighly" issue with: failed to compile wasm module: CompileError: at offset XXX: initial memory size too big: WARNING: this greatly impacts (in browser) compile times Change 3285991 on 2017/02/03 by Chris.Babcock Fix executable path for stripping Android debug symbols (handle non-Windows properly) #jira UE-41238 #ue4 #android Change 3286406 on 2017/02/03 by Chris.Babcock Save and restore texture filtering for movie playback in all cases #jira UE-41565 #ue4 #android Change 3286800 on 2017/02/04 by Chris.Babcock Fix executable path for stripping Android debug symbols (handle non-Windows properly) #jira UE-41238 #ue4 #android Change 3288598 on 2017/02/06 by Arciel.Rekman CodeLite fixes. - Use *-Linux-Debug binary for Debug configuration. - Fix virtual paths. Change 3288864 on 2017/02/06 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) - Note, Switch is known to not boot with this, fix coming next Change 3289364 on 2017/02/06 by Josh.Adams [BUILDUPGRADENOTES] - Fixed the "type" of the desktop device profiles to be Windows, not WindowsNoEditor, etc. It should be the platform, not a random string. - Updated how DeviceProfiles are loaded, especially in the editor, so that we can have NDAd platforms have their default DP values in platform-hidden files - This makes use of the ability for a class to override the platform hierarchy in the editor (like we do with other editor-exposed platform objects) - Added Config/[PS4|XboxOne|Switch]/ConfidentialPlatform.ini files so that the DP loading code knows to look in their directories for DPs. See FGenericPlatformMisc::GetConfidentialPlatforms() for more information - Note that saving still saves the entire DP to the .ini. Next DP change is to have them properly save against their 2(!) parents - the .ini file earlier in the hierarchy, and the parent DP object. Makes it tricky, for sure. - Added FConfigFile::GetArray (previous was only on FConfigCacheIni) Change 3289796 on 2017/02/07 by Arciel.Rekman Linux: remove leftover CEF build script. Change 3289872 on 2017/02/07 by Arciel.Rekman Linux: install MIME types (UE-40954). - Pull request #3154 by RicardoEPRodrigues. Change 3289915 on 2017/02/07 by Josh.Adams - Fixed CIS warnings Change 3289916 on 2017/02/07 by Arciel.Rekman Linux: remove -opengl4 from the default invocation. Change 3290009 on 2017/02/07 by Gil.Gribb UE4 - Fixed boot time EDL causing some issues even when it wasn't being used. Change 3290120 on 2017/02/07 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3290948 on 2017/02/07 by Arciel.Rekman Linux: fix crash when clicking on question mark (UE-41634). - Symbol interposition problem (proper fix is still to be investigated). (Edigrating part of CL 3290683 from Release-4.15 to Dev-Platform) Change 3291074 on 2017/02/07 by Arciel.Rekman Speculative build fix. Change 3292028 on 2017/02/08 by Josh.Adams - Fixed Incremental CIS build failures Change 3292105 on 2017/02/08 by Nick.Shin emcc.py - change warning to info #jira UE-41747 //UE4/Dev-Platform Compile UE4Game HTML5 completed with 50 warnings Change 3292201 on 2017/02/08 by JohnHenry.Carawon Change comment to fix XML warning when generating project files on Linux Change 3292242 on 2017/02/08 by Arciel.Rekman Linux: avoid unnecessary dependency on CEF (UE-41634). - Do not apply CEF workaround to monolithic builds (eg. stock Game/Server targets). - Also disable CEF compilation for ShaderCompileWorker. - Based on CL 3292077 in 4.15. Change 3292559 on 2017/02/08 by Josh.Adams - Added more platforms to disable the file handle caching (all the ones that use MANAGED_FILE_HANDLES) Change 3294333 on 2017/02/09 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3294506 on 2017/02/09 by Josh.Adams - Fixed GoogleCloudMessaging.uplugin to fix the Installed flag. Every other plugin had false, this one had true, which caused various checks to go haywire #jira UE-41710 Change 3294984 on 2017/02/09 by Josh.Adams - Worked around the remote compiling issue with code-based projects on a different drive than the engine #jira UE-41704 Change 3295056 on 2017/02/09 by Josh.Adams - Fixed the remote compiling issue by unconverting the path back to host when reading from the module filename Change 3295161 on 2017/02/09 by Josh.Adams - Fixed new bug when buildin native ios that was caused by a remote compile break Change 3295229 on 2017/02/09 by Josh.Adams - Fixed a crash in clothing on platforms that don't support clothing #jira UE-41830 [CL 3295859 by Josh Adams in Main branch]
2017-02-09 19:20:55 -05:00
case DTYPE_Streaming:
// Always create a new buffer for streaming ogg vorbis data
Buffer = CreateStreamBuffer( AudioDevice, InWave );
break;
case DTYPE_Procedural:
// New buffer for procedural data
Buffer = CreateProceduralBuffer(AudioDevice, InWave);
break;
case DTYPE_Invalid:
case DTYPE_Preview:
default:
UE_LOG( LogAndroidAudio, Warning, TEXT("Init Buffer on unsupported sound type name = %s type = %d"), *InWave->GetName(), int32(DecompressionType));
break;
}
return Buffer;
}
/**
* Decompresses a chunk of compressed audio to the destination memory
*
* @param Destination Memory to decompress to
* @param bLooping Whether to loop the sound seamlessly, or pad with zeroes
* @return Whether the sound looped or not
*/
bool FSLESSoundBuffer::ReadCompressedData( uint8* Destination, bool bLooping )
{
ensure( DecompressionState);
Copying //UE4/Dev-Platform to //UE4/Dev-Main (Source: //UE4/Dev-Platform @ 3295257) #lockdown Nick.Penwarden #rb none ========================== MAJOR FEATURES + CHANGES ========================== Change 3235199 on 2016/12/14 by Joe.Barnes Fix new compile error for missing #define Change 3235340 on 2016/12/14 by Arciel.Rekman Linux: refactor of some PlatformMisc functions. - RootDir() removed since it was a no-op. - Old EngineDir() implementation removed in favor of more generic one that should handle foreign engine dir. - Change by CengizT, Change 3237014 on 2016/12/15 by Michael.Trepka Fixed a crash in FChunkCacheWorker constructor Change 3238305 on 2016/12/16 by Josh.Adams - Added a None option to the FKey customization, unless the FKey property had NoClear on it Change 3240823 on 2016/12/20 by Josh.Stoddard Device profiles don't work for iPadPro 9.7 and 12.9 #jira UE-39943 Change 3241103 on 2016/12/20 by Alicia.Cano Android support from Visual Studio #jira UEPLAT-1421 #android Change 3241357 on 2016/12/20 by Chris.Babcock Add gameActivityOnNewIntentAddtions section to Android UPL #jira UE-38986 #PR #2969 #ue4 #android Change 3241941 on 2016/12/21 by Alicia.Cano Build Fix Change 3249832 on 2017/01/06 by Nick.Shin refetch on timed out GET/POST requests #jira UE-39992 Quicklaunch UFE HTML5 fails with "NS_ERROR_Failure" Change 3249837 on 2017/01/06 by Nick.Shin black box issues fixed: use device pixel ratio during width and height checks and use canvas dimensions if in full screen -- otherwise store SDL_window dimensions for future use #jira UE-36341 HTML5 - View is incorrectly drawn #jira UE-32311 Templates on Firefox/Chrome on HTML5 are not full screen during Launch On Change 3249988 on 2017/01/06 by Josh.Adams - Disable the HeartBeat() function on platforms that don't actually want to use the HeartbeatThread #jira UE-40305, UE-39291, UE-40113 Change 3253720 on 2017/01/11 by Josh.Adams - Added support for a config class to use a specific platform's config hierarchy, so that the editor can read NDA'd platform default settings without needing the settings to in Base*.ini - See SwitchRuntimeSettings.h / GetConfigOverridePlatform() - Addiontally made it so that NDAd platforms are saved to Project/Platform/Platform*.ini, instead of Project/Default*.ini (to keep samples .ini files free of NDAd platform settings). - See UObject::GetDefaultConfigFilename() - Updated some minor ShooterGame switch settings while cleaning this up Change 3254162 on 2017/01/11 by Daniel.Lamb Avoid trying to load empty package names. Fixed issue with iterative ini files being unparseable if they inlcude a colon in them. #jira UE-40257, UE-35001 #test Cook QAGame Change 3255309 on 2017/01/12 by Daniel.Lamb In the derived datacache commandlet wait for texture building to finish before we GC. #test DDC QAGame Change 3255311 on 2017/01/12 by Daniel.Lamb Removed debug logging for shader compilation. Issue hasn't occured in a while and the logging is annoying. #test Cook QAGame Change 3257024 on 2017/01/13 by Josh.Adams - Reread in the target RHIs array every time the list of shader types is needed, instead of caching, because the user could change the settings in the editor, then click cook. #jira UE-38691 Change 3259636 on 2017/01/16 by Josh.Adams - Fixed split screen render issue with payer 2 getting no geometry #jira UE-40684 Change 3260159 on 2017/01/17 by Ben.Marsh Added extra logging when deleting a directory fails during ReconcileWorkspace. Change 3260300 on 2017/01/17 by Ben.Marsh More logging for cleaning workspaces. Change 3261056 on 2017/01/17 by Daniel.Lamb Cook on the fly builds now resolve string asset references. #test Trivial Change 3262803 on 2017/01/18 by Joe.Graf Added missing support for compiling plugins external to Engine/Plugins & Game/Plugins Change 3262852 on 2017/01/18 by Joe.Graf Fixed the bad robomerge Don't try to regenerate projects when adding a content only plugin to a content only project Change 3264930 on 2017/01/19 by Joe.Barnes #include some header files needed when building UFE. Change 3265728 on 2017/01/20 by Will.Fissler PlatformShowcase - Added TestBed_MobileFeatures .umap and related test content. Change 3267188 on 2017/01/21 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3267439 on 2017/01/22 by Arciel.Rekman Fix Dev-Platform build. - Fixed just to have it compile; perhaps a proper fix is needed. - Seems to be caused by CL 3265587 (delegate was changed to return an array of search results instead of a single one). Change 3267556 on 2017/01/23 by Arciel.Rekman Linux: fix MoveFile to work across file systems. - PR #3141 with slight changes. Change 3267843 on 2017/01/23 by Arciel.Rekman Remove name collision (macro vs libc++). - Redoing CL 3259310. Change 3267850 on 2017/01/23 by Arciel.Rekman Fix wrong always true condition. - PLATFORM_LINUX is always defined, but can be 0. Change 3268048 on 2017/01/23 by Daniel.Lamb Integrated fix for rebuild lighting commandlet from Greg Korman @ Impulse Gear. #test Rebuild lighting Paragon Change 3268403 on 2017/01/23 by Josh.Adams #BUILDUPGRADENOTES - Moved XboxOne and PS4 settings into platform specific .ini files (after using GetConfigOverridePlatform() in their class delcarations) - Licensee games that have PS4, XboxOne, Switch settings in DefaultEngine.ini will have those settings saved in the platform version next time the project settings are edited. DOCUMENT THIS! Change 3272441 on 2017/01/25 by Chris.Babcock Fixed documentation error in UnrealPluginLanguage #ue4 #android Change 3272478 on 2017/01/25 by Chris.Babcock Fix another documentation error in UnrealPluginLanguage #ue4 Change 3272826 on 2017/01/25 by Chris.Babcock Google Cloud Messaging plugin for Android #jira UEPLAT-1458 #ue4 #android Change 3272839 on 2017/01/25 by Chris.Babcock Fix name of Google Cloud Messaging Sender ID #ue4 #android Change 3273837 on 2017/01/26 by Daniel.Lamb Added check to ensure editor never saves source texture data which has had ReleaseSourceMemory called on it. Instead crash as this is a loss of content situation. #test Cook paragon cook qagame Change 3274122 on 2017/01/26 by Alicia.Cano Runtime permissions support on Android - Removing certain permissions #jira UE-38512 #android Change 3274311 on 2017/01/26 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3274794 on 2017/01/27 by Arciel.Rekman Linux: fix installed SDK check (UE-40392). - Pull request #3111 by rubu. Change 3274803 on 2017/01/27 by Arciel.Rekman Linux: added few more exceptions to .gitignore (UE-39612). - Pull request #3026 by ardneran. Change 3276247 on 2017/01/27 by Nick.Shin HTML5 HeapSize settings - make use of it from UE4 Editor:Platforms:HTML5:Memory:HeapSize note: emscripten says this is really no longer needed when using [ -s ALLOW_MEMORY_GROWTH=1 ] -- but tests have shown when using that, the game load/compile times takes longer #jira UE-34753 Zen Garden cannot compile in HTML5 #jira UE-40815 Launching QAGame for HTML5 creates an 'uncaught exception: out of memory'. Change 3276347 on 2017/01/27 by dan.reynolds Android Streaming Test Content Change 3276682 on 2017/01/29 by Nick.Shin HTML5 thirdparty build scripts - fix up what looks like a bad merge - allow linux to also build these libs - fixed harfbuzz to use freetype2-2.6 when building HTML5 libs - tested on mac, linux, and windows (git-bash) Change 3276796 on 2017/01/29 by Nick.Shin HTML5 thirdparty (python) build scripts - linux patches from mozilla's jukka - tested on mac and, linux, and windows (git-bash) part of: #jira UEPLAT-1437 (4.16) Switch [to] web assembly Change 3276803 on 2017/01/29 by Nick.Shin HTML5 thirdparty build scripts - getting ready to build with (new toolchain that has) wasm support - minor fix to handle whitespace in project path - tested on mac and, linux, and windows (git-bash) part of: #jira UEPLAT-1437 (4.16) Switch [to] web assembly Change 3278007 on 2017/01/30 by Arciel.Rekman SteamVR: whitelist for Linux. - Makes Blueprint functions available in Linux builds, even if stubbed. - Can be probably whitelisted for Mac too. Change 3278172 on 2017/01/30 by Arciel.Rekman Do not rebuild UnrealPak locally (UE-41285). Change 3279873 on 2017/01/31 by Brent.Pease + Implement streaming in Vorbis + Add streaming to Android audio + Fix audio streaming chunk race condition Change 3280063 on 2017/01/31 by Brent.Pease GitHub 2949 : Fix for crashes when backgrounding/sleeping on iOS metal devices #2949 #jira UE-38829 Change 3280072 on 2017/01/31 by Brent.Pease PR #2889: Add -distribution when iOS distribution Packaging. with IPhonePackage.exe (Contributed by sangpan) https://github.com/EpicGames/UnrealEngine/pull/2889 #jira ue-37874 #2889 Change 3280091 on 2017/01/31 by Arciel.Rekman Linux: fix "unable to make writable" toast (UE-37228). - Also fixed other platforms that returned inverted the error result. Change 3280624 on 2017/01/31 by Brent.Pease PR #2891: iOS IDFV string allocation fix (Contributed by robertfsegal) https://github.com/EpicGames/UnrealEngine/pull/2891 #2891 #jira ue-37891 Change 3280625 on 2017/01/31 by Brent.Pease GitHub 2576 - Fix UIImagePickerController crash #2576 #jira UE-328888 Change 3281618 on 2017/02/01 by Josh.Adams - Fixed hopeful compile error with missing inlcude #jira UE-41415 Change 3282277 on 2017/02/01 by Josh.Adams - Support 0.12.16 and 1.1.1 (the first versions that can share Oasis) Change 3282441 on 2017/02/01 by Arciel.Rekman Fix Linux editor splash screen (UE-28123). Change 3282580 on 2017/02/01 by Nick.Shin HTML5 - fix "firefox nighly" issue with: failed to compile wasm module: CompileError: at offset XXX: initial memory size too big: WARNING: this greatly impacts (in browser) compile times Change 3285991 on 2017/02/03 by Chris.Babcock Fix executable path for stripping Android debug symbols (handle non-Windows properly) #jira UE-41238 #ue4 #android Change 3286406 on 2017/02/03 by Chris.Babcock Save and restore texture filtering for movie playback in all cases #jira UE-41565 #ue4 #android Change 3286800 on 2017/02/04 by Chris.Babcock Fix executable path for stripping Android debug symbols (handle non-Windows properly) #jira UE-41238 #ue4 #android Change 3288598 on 2017/02/06 by Arciel.Rekman CodeLite fixes. - Use *-Linux-Debug binary for Debug configuration. - Fix virtual paths. Change 3288864 on 2017/02/06 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) - Note, Switch is known to not boot with this, fix coming next Change 3289364 on 2017/02/06 by Josh.Adams [BUILDUPGRADENOTES] - Fixed the "type" of the desktop device profiles to be Windows, not WindowsNoEditor, etc. It should be the platform, not a random string. - Updated how DeviceProfiles are loaded, especially in the editor, so that we can have NDAd platforms have their default DP values in platform-hidden files - This makes use of the ability for a class to override the platform hierarchy in the editor (like we do with other editor-exposed platform objects) - Added Config/[PS4|XboxOne|Switch]/ConfidentialPlatform.ini files so that the DP loading code knows to look in their directories for DPs. See FGenericPlatformMisc::GetConfidentialPlatforms() for more information - Note that saving still saves the entire DP to the .ini. Next DP change is to have them properly save against their 2(!) parents - the .ini file earlier in the hierarchy, and the parent DP object. Makes it tricky, for sure. - Added FConfigFile::GetArray (previous was only on FConfigCacheIni) Change 3289796 on 2017/02/07 by Arciel.Rekman Linux: remove leftover CEF build script. Change 3289872 on 2017/02/07 by Arciel.Rekman Linux: install MIME types (UE-40954). - Pull request #3154 by RicardoEPRodrigues. Change 3289915 on 2017/02/07 by Josh.Adams - Fixed CIS warnings Change 3289916 on 2017/02/07 by Arciel.Rekman Linux: remove -opengl4 from the default invocation. Change 3290009 on 2017/02/07 by Gil.Gribb UE4 - Fixed boot time EDL causing some issues even when it wasn't being used. Change 3290120 on 2017/02/07 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3290948 on 2017/02/07 by Arciel.Rekman Linux: fix crash when clicking on question mark (UE-41634). - Symbol interposition problem (proper fix is still to be investigated). (Edigrating part of CL 3290683 from Release-4.15 to Dev-Platform) Change 3291074 on 2017/02/07 by Arciel.Rekman Speculative build fix. Change 3292028 on 2017/02/08 by Josh.Adams - Fixed Incremental CIS build failures Change 3292105 on 2017/02/08 by Nick.Shin emcc.py - change warning to info #jira UE-41747 //UE4/Dev-Platform Compile UE4Game HTML5 completed with 50 warnings Change 3292201 on 2017/02/08 by JohnHenry.Carawon Change comment to fix XML warning when generating project files on Linux Change 3292242 on 2017/02/08 by Arciel.Rekman Linux: avoid unnecessary dependency on CEF (UE-41634). - Do not apply CEF workaround to monolithic builds (eg. stock Game/Server targets). - Also disable CEF compilation for ShaderCompileWorker. - Based on CL 3292077 in 4.15. Change 3292559 on 2017/02/08 by Josh.Adams - Added more platforms to disable the file handle caching (all the ones that use MANAGED_FILE_HANDLES) Change 3294333 on 2017/02/09 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3294506 on 2017/02/09 by Josh.Adams - Fixed GoogleCloudMessaging.uplugin to fix the Installed flag. Every other plugin had false, this one had true, which caused various checks to go haywire #jira UE-41710 Change 3294984 on 2017/02/09 by Josh.Adams - Worked around the remote compiling issue with code-based projects on a different drive than the engine #jira UE-41704 Change 3295056 on 2017/02/09 by Josh.Adams - Fixed the remote compiling issue by unconverting the path back to host when reading from the module filename Change 3295161 on 2017/02/09 by Josh.Adams - Fixed new bug when buildin native ios that was caused by a remote compile break Change 3295229 on 2017/02/09 by Josh.Adams - Fixed a crash in clothing on platforms that don't support clothing #jira UE-41830 [CL 3295859 by Josh Adams in Main branch]
2017-02-09 19:20:55 -05:00
if(Format == SoundFormat_Streaming)
{
return(DecompressionState->StreamCompressedData(Destination, bLooping, DecompressionState->GetStreamBufferSize() * NumChannels));
}
return(DecompressionState->ReadCompressedData(Destination, bLooping, DecompressionState->GetStreamBufferSize() * NumChannels));
}
Copying //UE4/Dev-Platform to //UE4/Main ========================== MAJOR FEATURES + CHANGES ========================== Change 2719147 on 2015/10/07 by Mark.Satterthwaite Allow the shader cache to perform some precompilation synchronously on load before falling back to asynchronous compilation to balance load times against total time spent precompiling. Added a stat to the group that reports how long the precompile has been running until it completes so it is easier to track. Change 2719182 on 2015/10/07 by Mark.Satterthwaite Refactor the ShaderCache's internal data structures and change the way we handle recording whether a particular predraw state has been submitted to try and make it more efficient. Change 2719185 on 2015/10/07 by Mark.Satterthwaite Merging CL #2717701: Try and fix random crashes on Mac when manipulating bound-shader-states caused by ShaderCache potentially providing a bogus shader state pointer on exit from predraw. Change 2719434 on 2015/10/07 by Mark.Satterthwaite Make sure that Mac ensures reports have a source context and a sane callstack when sent to the crash-reports server. Change 2724764 on 2015/10/12 by Josh.Adams [Initial AppleTV support] Merging //depot/YakBranch/... to //UE4/Dev-Platform/... Change 2726266 on 2015/10/13 by Lee.Clark PS4 - Calc reserve size required for DMA copy when using unsafe command buffers Change 2726401 on 2015/10/13 by Mark.Satterthwaite Merging CL #2716418: Fix UE-15228 'Crash Report Client doesn't restart into project editor on Mac' by reporting the original command line supplied by LaunchMac, not the modified one that strips the project name. The CRC can then relaunch as expected. #jira UE-15228 Change 2726421 on 2015/10/13 by Lee.Clark PS4 - Don't try to clear invalid targets Change 2727040 on 2015/10/13 by Michael.Trepka Merging CL 2724777 - Fixed splash screen rendering for images with DPI different than 72 Change 2729783 on 2015/10/15 by Keith.Judge Fix huge memory leak in Test/Shipping configurations, caused because I am a numpty. Change 2729847 on 2015/10/15 by Mark.Satterthwaite Merging CL #2729846: On OS X unconstrain windows from the dimension of the parent display when in Windowed mode - it is OK for them to be larger in this case. They do need to be repositioned if on the Primary display so that they don't creep under the menu bar and become unmovable/unclosable and Fullscreen windows still need to be constrained to a single display. We can now take screenshots of windows that are larger than the display & not get grey bars beyond the cutoff. #jira UE-21992 Change 2729865 on 2015/10/15 by Keith.Judge Fast semantics - Finish up resource transitions, adding resource decompression where appropriate and using non-fast clears where we can't determine the resource transition. Change 2729897 on 2015/10/15 by Keith.Judge Fast Semantics - Make sure all GetData() calls are made safe with GPU fences. Change 2729972 on 2015/10/15 by Keith.Judge Removed the last vestiges of ID3D11DeviceContext/ID3D11DeviceContext1 from the Xbox RHI. Everything now uses ID3D11DeviceContextX directly. This should be marginally quicker as it stops a double call to ClearState(). Change 2731503 on 2015/10/16 by Keith.Judge Added _XDK_VERSION to the DDC key for textures, which should solve the issue of the tiling mode changing in August XDK (and future changes Microsoft may inflict). Change 2731596 on 2015/10/16 by Keith.Judge Fast Semantics - Add deferred resource deletion queue to make deleted resources be actually deleted a number of frames later so that the GPU is definitely finished with them. Hooked up the temporary SRVs for dynamic VBs as a first step. Change 2731928 on 2015/10/16 by Michael.Trepka PR #1659: Mac/Build.sh handles additional arguments (Contributed by judgeaxl) Change 2731934 on 2015/10/16 by Michael.Trepka PR #1618: added clang 3.7.0 -Wshift-negative-value ignore in JpegImageWrapper.cpp (Contributed by bsekura) Change 2732018 on 2015/10/16 by Mark.Satterthwaite Emit a shader code cache for each platforms requested shader formats, this is separate to the targeted formats as not all can or need to be cached. - The implementation extends the ShaderCache's hooks in FShaderResource's serialisation function to capture the required shaders. - Each target platform has its own list of cached shader formats, analogous to the list of targeted RHIs. Presently only the Mac implements this. - Code cached shaders are now compressed (for size) to reduce the overhead associated with keeping all the shader code around - this works esp. well for text-based formats like GLSL. Change 2732365 on 2015/10/16 by Josh.Adams - Packaging a TVOS .ipa now works (still haven't tried any of the Editor integration like Launch On) Change 2733170 on 2015/10/18 by Terence.Burns Fix for Android IAP query not returning entire inventory. Change 2733174 on 2015/10/18 by Terence.Burns Fix Movie player issue where wait for movie to finish isnt being respected. Seems a stray bUserCanceled event flag was causing this not to be observed. Added some verbose logging to apple movie player. Change 2733488 on 2015/10/19 by Mark.Satterthwaite Added the ability to merge the .ushadercache files used by the ShaderCache to store shader & draw state information. - Fixed a bug that would cause invalid shader membership and draw state information to be logged. - Added a separate command-line tool to merge shader cache files, currently Mac-only but in theory should work on other platforms too. Change 2735226 on 2015/10/20 by Mark.Satterthwaite Fix temporal AA rendering on GL/Mac OS X - you can't rely on EyeAdaptation values unless SM5 is available so only perform that code on SM5 & we must correctly clamp saturate(NaN) to 0 as the current hlslcc won't do that for us (& is required by the HLSL spec). The latter used to be clamped in the AA_ALPHA && AA_VELOCITY_WEIGHTING code block that was removed recently. #jira UE-21214 #jira UE-19913 Change 2736722 on 2015/10/21 by Daniel.Lamb Improved performance of cooking stats system. Change 2737172 on 2015/10/21 by Daniel.Lamb Improved cooking stats performance for ddc stats.
2015-12-10 16:56:55 -05:00
void FSLESSoundBuffer::Seek(const float SeekTime)
{
if (ensure(DecompressionState))
{
DecompressionState->SeekToTime(SeekTime);
}
}
Copying //UE4/Dev-Platform to //UE4/Dev-Main (Source: //UE4/Dev-Platform @ 3295257) #lockdown Nick.Penwarden #rb none ========================== MAJOR FEATURES + CHANGES ========================== Change 3235199 on 2016/12/14 by Joe.Barnes Fix new compile error for missing #define Change 3235340 on 2016/12/14 by Arciel.Rekman Linux: refactor of some PlatformMisc functions. - RootDir() removed since it was a no-op. - Old EngineDir() implementation removed in favor of more generic one that should handle foreign engine dir. - Change by CengizT, Change 3237014 on 2016/12/15 by Michael.Trepka Fixed a crash in FChunkCacheWorker constructor Change 3238305 on 2016/12/16 by Josh.Adams - Added a None option to the FKey customization, unless the FKey property had NoClear on it Change 3240823 on 2016/12/20 by Josh.Stoddard Device profiles don't work for iPadPro 9.7 and 12.9 #jira UE-39943 Change 3241103 on 2016/12/20 by Alicia.Cano Android support from Visual Studio #jira UEPLAT-1421 #android Change 3241357 on 2016/12/20 by Chris.Babcock Add gameActivityOnNewIntentAddtions section to Android UPL #jira UE-38986 #PR #2969 #ue4 #android Change 3241941 on 2016/12/21 by Alicia.Cano Build Fix Change 3249832 on 2017/01/06 by Nick.Shin refetch on timed out GET/POST requests #jira UE-39992 Quicklaunch UFE HTML5 fails with "NS_ERROR_Failure" Change 3249837 on 2017/01/06 by Nick.Shin black box issues fixed: use device pixel ratio during width and height checks and use canvas dimensions if in full screen -- otherwise store SDL_window dimensions for future use #jira UE-36341 HTML5 - View is incorrectly drawn #jira UE-32311 Templates on Firefox/Chrome on HTML5 are not full screen during Launch On Change 3249988 on 2017/01/06 by Josh.Adams - Disable the HeartBeat() function on platforms that don't actually want to use the HeartbeatThread #jira UE-40305, UE-39291, UE-40113 Change 3253720 on 2017/01/11 by Josh.Adams - Added support for a config class to use a specific platform's config hierarchy, so that the editor can read NDA'd platform default settings without needing the settings to in Base*.ini - See SwitchRuntimeSettings.h / GetConfigOverridePlatform() - Addiontally made it so that NDAd platforms are saved to Project/Platform/Platform*.ini, instead of Project/Default*.ini (to keep samples .ini files free of NDAd platform settings). - See UObject::GetDefaultConfigFilename() - Updated some minor ShooterGame switch settings while cleaning this up Change 3254162 on 2017/01/11 by Daniel.Lamb Avoid trying to load empty package names. Fixed issue with iterative ini files being unparseable if they inlcude a colon in them. #jira UE-40257, UE-35001 #test Cook QAGame Change 3255309 on 2017/01/12 by Daniel.Lamb In the derived datacache commandlet wait for texture building to finish before we GC. #test DDC QAGame Change 3255311 on 2017/01/12 by Daniel.Lamb Removed debug logging for shader compilation. Issue hasn't occured in a while and the logging is annoying. #test Cook QAGame Change 3257024 on 2017/01/13 by Josh.Adams - Reread in the target RHIs array every time the list of shader types is needed, instead of caching, because the user could change the settings in the editor, then click cook. #jira UE-38691 Change 3259636 on 2017/01/16 by Josh.Adams - Fixed split screen render issue with payer 2 getting no geometry #jira UE-40684 Change 3260159 on 2017/01/17 by Ben.Marsh Added extra logging when deleting a directory fails during ReconcileWorkspace. Change 3260300 on 2017/01/17 by Ben.Marsh More logging for cleaning workspaces. Change 3261056 on 2017/01/17 by Daniel.Lamb Cook on the fly builds now resolve string asset references. #test Trivial Change 3262803 on 2017/01/18 by Joe.Graf Added missing support for compiling plugins external to Engine/Plugins & Game/Plugins Change 3262852 on 2017/01/18 by Joe.Graf Fixed the bad robomerge Don't try to regenerate projects when adding a content only plugin to a content only project Change 3264930 on 2017/01/19 by Joe.Barnes #include some header files needed when building UFE. Change 3265728 on 2017/01/20 by Will.Fissler PlatformShowcase - Added TestBed_MobileFeatures .umap and related test content. Change 3267188 on 2017/01/21 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3267439 on 2017/01/22 by Arciel.Rekman Fix Dev-Platform build. - Fixed just to have it compile; perhaps a proper fix is needed. - Seems to be caused by CL 3265587 (delegate was changed to return an array of search results instead of a single one). Change 3267556 on 2017/01/23 by Arciel.Rekman Linux: fix MoveFile to work across file systems. - PR #3141 with slight changes. Change 3267843 on 2017/01/23 by Arciel.Rekman Remove name collision (macro vs libc++). - Redoing CL 3259310. Change 3267850 on 2017/01/23 by Arciel.Rekman Fix wrong always true condition. - PLATFORM_LINUX is always defined, but can be 0. Change 3268048 on 2017/01/23 by Daniel.Lamb Integrated fix for rebuild lighting commandlet from Greg Korman @ Impulse Gear. #test Rebuild lighting Paragon Change 3268403 on 2017/01/23 by Josh.Adams #BUILDUPGRADENOTES - Moved XboxOne and PS4 settings into platform specific .ini files (after using GetConfigOverridePlatform() in their class delcarations) - Licensee games that have PS4, XboxOne, Switch settings in DefaultEngine.ini will have those settings saved in the platform version next time the project settings are edited. DOCUMENT THIS! Change 3272441 on 2017/01/25 by Chris.Babcock Fixed documentation error in UnrealPluginLanguage #ue4 #android Change 3272478 on 2017/01/25 by Chris.Babcock Fix another documentation error in UnrealPluginLanguage #ue4 Change 3272826 on 2017/01/25 by Chris.Babcock Google Cloud Messaging plugin for Android #jira UEPLAT-1458 #ue4 #android Change 3272839 on 2017/01/25 by Chris.Babcock Fix name of Google Cloud Messaging Sender ID #ue4 #android Change 3273837 on 2017/01/26 by Daniel.Lamb Added check to ensure editor never saves source texture data which has had ReleaseSourceMemory called on it. Instead crash as this is a loss of content situation. #test Cook paragon cook qagame Change 3274122 on 2017/01/26 by Alicia.Cano Runtime permissions support on Android - Removing certain permissions #jira UE-38512 #android Change 3274311 on 2017/01/26 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3274794 on 2017/01/27 by Arciel.Rekman Linux: fix installed SDK check (UE-40392). - Pull request #3111 by rubu. Change 3274803 on 2017/01/27 by Arciel.Rekman Linux: added few more exceptions to .gitignore (UE-39612). - Pull request #3026 by ardneran. Change 3276247 on 2017/01/27 by Nick.Shin HTML5 HeapSize settings - make use of it from UE4 Editor:Platforms:HTML5:Memory:HeapSize note: emscripten says this is really no longer needed when using [ -s ALLOW_MEMORY_GROWTH=1 ] -- but tests have shown when using that, the game load/compile times takes longer #jira UE-34753 Zen Garden cannot compile in HTML5 #jira UE-40815 Launching QAGame for HTML5 creates an 'uncaught exception: out of memory'. Change 3276347 on 2017/01/27 by dan.reynolds Android Streaming Test Content Change 3276682 on 2017/01/29 by Nick.Shin HTML5 thirdparty build scripts - fix up what looks like a bad merge - allow linux to also build these libs - fixed harfbuzz to use freetype2-2.6 when building HTML5 libs - tested on mac, linux, and windows (git-bash) Change 3276796 on 2017/01/29 by Nick.Shin HTML5 thirdparty (python) build scripts - linux patches from mozilla's jukka - tested on mac and, linux, and windows (git-bash) part of: #jira UEPLAT-1437 (4.16) Switch [to] web assembly Change 3276803 on 2017/01/29 by Nick.Shin HTML5 thirdparty build scripts - getting ready to build with (new toolchain that has) wasm support - minor fix to handle whitespace in project path - tested on mac and, linux, and windows (git-bash) part of: #jira UEPLAT-1437 (4.16) Switch [to] web assembly Change 3278007 on 2017/01/30 by Arciel.Rekman SteamVR: whitelist for Linux. - Makes Blueprint functions available in Linux builds, even if stubbed. - Can be probably whitelisted for Mac too. Change 3278172 on 2017/01/30 by Arciel.Rekman Do not rebuild UnrealPak locally (UE-41285). Change 3279873 on 2017/01/31 by Brent.Pease + Implement streaming in Vorbis + Add streaming to Android audio + Fix audio streaming chunk race condition Change 3280063 on 2017/01/31 by Brent.Pease GitHub 2949 : Fix for crashes when backgrounding/sleeping on iOS metal devices #2949 #jira UE-38829 Change 3280072 on 2017/01/31 by Brent.Pease PR #2889: Add -distribution when iOS distribution Packaging. with IPhonePackage.exe (Contributed by sangpan) https://github.com/EpicGames/UnrealEngine/pull/2889 #jira ue-37874 #2889 Change 3280091 on 2017/01/31 by Arciel.Rekman Linux: fix "unable to make writable" toast (UE-37228). - Also fixed other platforms that returned inverted the error result. Change 3280624 on 2017/01/31 by Brent.Pease PR #2891: iOS IDFV string allocation fix (Contributed by robertfsegal) https://github.com/EpicGames/UnrealEngine/pull/2891 #2891 #jira ue-37891 Change 3280625 on 2017/01/31 by Brent.Pease GitHub 2576 - Fix UIImagePickerController crash #2576 #jira UE-328888 Change 3281618 on 2017/02/01 by Josh.Adams - Fixed hopeful compile error with missing inlcude #jira UE-41415 Change 3282277 on 2017/02/01 by Josh.Adams - Support 0.12.16 and 1.1.1 (the first versions that can share Oasis) Change 3282441 on 2017/02/01 by Arciel.Rekman Fix Linux editor splash screen (UE-28123). Change 3282580 on 2017/02/01 by Nick.Shin HTML5 - fix "firefox nighly" issue with: failed to compile wasm module: CompileError: at offset XXX: initial memory size too big: WARNING: this greatly impacts (in browser) compile times Change 3285991 on 2017/02/03 by Chris.Babcock Fix executable path for stripping Android debug symbols (handle non-Windows properly) #jira UE-41238 #ue4 #android Change 3286406 on 2017/02/03 by Chris.Babcock Save and restore texture filtering for movie playback in all cases #jira UE-41565 #ue4 #android Change 3286800 on 2017/02/04 by Chris.Babcock Fix executable path for stripping Android debug symbols (handle non-Windows properly) #jira UE-41238 #ue4 #android Change 3288598 on 2017/02/06 by Arciel.Rekman CodeLite fixes. - Use *-Linux-Debug binary for Debug configuration. - Fix virtual paths. Change 3288864 on 2017/02/06 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) - Note, Switch is known to not boot with this, fix coming next Change 3289364 on 2017/02/06 by Josh.Adams [BUILDUPGRADENOTES] - Fixed the "type" of the desktop device profiles to be Windows, not WindowsNoEditor, etc. It should be the platform, not a random string. - Updated how DeviceProfiles are loaded, especially in the editor, so that we can have NDAd platforms have their default DP values in platform-hidden files - This makes use of the ability for a class to override the platform hierarchy in the editor (like we do with other editor-exposed platform objects) - Added Config/[PS4|XboxOne|Switch]/ConfidentialPlatform.ini files so that the DP loading code knows to look in their directories for DPs. See FGenericPlatformMisc::GetConfidentialPlatforms() for more information - Note that saving still saves the entire DP to the .ini. Next DP change is to have them properly save against their 2(!) parents - the .ini file earlier in the hierarchy, and the parent DP object. Makes it tricky, for sure. - Added FConfigFile::GetArray (previous was only on FConfigCacheIni) Change 3289796 on 2017/02/07 by Arciel.Rekman Linux: remove leftover CEF build script. Change 3289872 on 2017/02/07 by Arciel.Rekman Linux: install MIME types (UE-40954). - Pull request #3154 by RicardoEPRodrigues. Change 3289915 on 2017/02/07 by Josh.Adams - Fixed CIS warnings Change 3289916 on 2017/02/07 by Arciel.Rekman Linux: remove -opengl4 from the default invocation. Change 3290009 on 2017/02/07 by Gil.Gribb UE4 - Fixed boot time EDL causing some issues even when it wasn't being used. Change 3290120 on 2017/02/07 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3290948 on 2017/02/07 by Arciel.Rekman Linux: fix crash when clicking on question mark (UE-41634). - Symbol interposition problem (proper fix is still to be investigated). (Edigrating part of CL 3290683 from Release-4.15 to Dev-Platform) Change 3291074 on 2017/02/07 by Arciel.Rekman Speculative build fix. Change 3292028 on 2017/02/08 by Josh.Adams - Fixed Incremental CIS build failures Change 3292105 on 2017/02/08 by Nick.Shin emcc.py - change warning to info #jira UE-41747 //UE4/Dev-Platform Compile UE4Game HTML5 completed with 50 warnings Change 3292201 on 2017/02/08 by JohnHenry.Carawon Change comment to fix XML warning when generating project files on Linux Change 3292242 on 2017/02/08 by Arciel.Rekman Linux: avoid unnecessary dependency on CEF (UE-41634). - Do not apply CEF workaround to monolithic builds (eg. stock Game/Server targets). - Also disable CEF compilation for ShaderCompileWorker. - Based on CL 3292077 in 4.15. Change 3292559 on 2017/02/08 by Josh.Adams - Added more platforms to disable the file handle caching (all the ones that use MANAGED_FILE_HANDLES) Change 3294333 on 2017/02/09 by Josh.Adams Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform) Change 3294506 on 2017/02/09 by Josh.Adams - Fixed GoogleCloudMessaging.uplugin to fix the Installed flag. Every other plugin had false, this one had true, which caused various checks to go haywire #jira UE-41710 Change 3294984 on 2017/02/09 by Josh.Adams - Worked around the remote compiling issue with code-based projects on a different drive than the engine #jira UE-41704 Change 3295056 on 2017/02/09 by Josh.Adams - Fixed the remote compiling issue by unconverting the path back to host when reading from the module filename Change 3295161 on 2017/02/09 by Josh.Adams - Fixed new bug when buildin native ios that was caused by a remote compile break Change 3295229 on 2017/02/09 by Josh.Adams - Fixed a crash in clothing on platforms that don't support clothing #jira UE-41830 [CL 3295859 by Josh Adams in Main branch]
2017-02-09 19:20:55 -05:00
int32 FSLESSoundBuffer::GetCurrentChunkIndex() const
{
int32 result = -1;
if (ensure(DecompressionState))
{
result = DecompressionState->GetCurrentChunkIndex();
}
return result;
}
int32 FSLESSoundBuffer::GetCurrentChunkOffset() const
{
int32 result = -1;
if (ensure(DecompressionState))
{
result = DecompressionState->GetCurrentChunkOffset();
}
return result;
}
/**
* Returns the size for a real time/streaming buffer based on decompressor
*
* @return Size of buffer in bytes for a single channel or 0 if no decompression state
*/
int FSLESSoundBuffer::GetRTBufferSize(void)
{
return DecompressionState ? DecompressionState->GetStreamBufferSize() : MONO_PCM_BUFFER_SIZE;
}