Commit Graph

34 Commits

Author SHA1 Message Date
jake burga
bef1a140e8 delete BackCompat decoders
Eventually move SoundWaveProxyReader out of AudioCodecEngine plugin, and delete AudioCodecEngine plugin entirely.

[REVIEW] [at]jimmy.smith
#rb jimmy.smith
#tests PIE

[CL 30157061 by jake burga in ue5-main branch]
2023-12-06 11:17:11 -05:00
helen yang
614c30ade5 Add cvars for MetaSound wave player node buffer sizes, change MaxDecodeSizeInFrames from 8192 to 1024 for memory savings
#jira UE-199108
#rb maxwell.hayes, jake.burga

[CL 29339183 by helen yang in ue5-main branch]
2023-11-01 19:23:23 -04:00
buzz burrowes
dff6b0ecc2 - Add a useful public function to SoundWaveProxyReader... CanProduceMoreAudio
- Fix issue where CurrentFrameIndex was being advanced even when the decoder had not produced enough samples.
[REVIEW] [at]jake.burga [at]jimmy.smith

[CL 28841872 by buzz burrowes in ue5-main branch]
2023-10-17 12:12:38 -04:00
dmytro vovk
e1bacd79a0 Second attempt for vectorized audio conversion from float to pcm16 and vica versa with an optimized version for NEON and added a ~10% faster spicialization of ArrayMixIn for NEON
#rb Phil.Popp

[CL 28706860 by dmytro vovk in ue5-main branch]
2023-10-12 08:21:50 -04:00
dmytro vovk
382b7ab8f2 Reverted audio vectorization change
#rb none

[CL 28625268 by dmytro vovk in ue5-main branch]
2023-10-10 12:47:41 -04:00
dmytro vovk
70b1ff596d Fixed compilation for ARM Mac builds
#rb none

[CL 28624765 by dmytro vovk in ue5-main branch]
2023-10-10 12:39:17 -04:00
dmytro vovk
7052f813ef Vectorized audio conversion from float to pcm16 and vica versa with an optimized version for NEON and added a ~10% faster spicialization of ArrayMixIn for NEON
#rb Phil.Popp

[CL 28623173 by dmytro vovk in ue5-main branch]
2023-10-10 12:10:28 -04:00
jake burga
fa6ac56033 Add API to seek to a specific frame so we can be way more accurate about seeking.
- Avoids converting Frames to Seconds then back to Frames again.
- Allows for more precise (frame specific) seeking

[REVIEW] [at]jimmy.smith [at]brian.chrisman

[CL 28273237 by jake burga in ue5-main branch]
2023-09-27 10:20:58 -04:00
jake burga
2e1f6b8620 Get rid of BackCompat decoder from WaveProxyReader
Largely just a "copy-paste" implementation of the BackCompat decoder in the SoundWaveProxyReader. Further refactor work will be done in a separate check-in to make it easier to see what actually got changed.

Some things that did change when porting over:
- Remove some "EDecodeResult" enums to avoid complex logic
- Actually use `ICompressedAudioInfo::SeekToTime` instead of reinitializing the decoder to seek.

[REVIEW] [at]jimmy.smith [at]phil.popp [at]charlie.huguenard [at]buzz.burrowes

[CL 27613076 by jake burga in ue5-main branch]
2023-09-05 17:22:07 -04:00
jake burga
9bd573fa1a Fix audio sync issues.
Properly report the number of samples that have been "streamed".

Update it in all of our decoders that implement this method.

Still using the "BackCompat" decoder, take advantage of this number to mantain sync with the audio.

[REVIEW] [at]jimmy.smith [at]phil.popp [at]buzz.burrowes [at]charlie.huguenard

[CL 27599211 by jake burga in ue5-main branch]
2023-09-05 12:09:38 -04:00
jimmy smith
1df97cb974 Bink Latency Fixes (Owner Loading behavior tagging,Inline first chunk of audio optionally with Retained audio, Changed MONO_PCM size to 480)
#rb phil.popp dan.thompson matt.peters

[CL 27248696 by jimmy smith in ue5-main branch]
2023-08-21 14:53:59 -04:00
marc audy
956a3e7f5b Fix missing exported functions
[CODEREVIEW] jake.burga, phil.popp
#horde 341705
#rnx
#jira

[CL 26765871 by marc audy in ue5-main branch]
2023-08-02 01:49:01 -04:00
jake burga
4a8ed9757a "Move/Rename" Metasound/MetasoundWaveProxReader to -> AudioCodecEngine/SoundWaveProxyReader
(Actually, just "Add" new SoundWaveProxyReader class. Should also delete old class in same CL?)

[REVIEW] [at]phil.popp

[CL 26752479 by jake burga in ue5-main branch]
2023-08-01 16:16:36 -04:00
jimmy smith
a16df7fe4c Fix non-matching PRAGMA_ENABLE_DEPRECATION_WARNINGS pair.
#jira none
#preflight skip

[CL 25776044 by jimmy smith in ue5-main branch]
2023-06-02 18:31:58 -04:00
jimmy smith
d256cc1f44 Deprecate IAudioCodec API
#rb alfaroh.corney jake.burga
#jira none
#preflight 6477eaae1c5c2b3fa2e4e53d

[CL 25770939 by jimmy smith in ue5-main branch]
2023-06-02 15:27:25 -04:00
phil popp
3da067086e Fix for frame counter uint rollover when decoding wave in metasounds
[CL 25020016 by phil popp in ue5-main branch]
2023-04-12 20:46:34 -04:00
jimmy smith
13568c538e Fix bad merge coming from FNMain.
#rbx
#prefight skip

[CL 24569877 by jimmy smith in ue5-main branch]
2023-03-08 19:32:24 -05:00
jimmy smith
ff7a0e1036 Fix for ensure when changing format on a SoundWave that are forceinline.
#preflight 6408e8d36c1b9295b9c9f7fb
#rb phil.popp

[CL 24569869 by jimmy smith in ue5-main branch]
2023-03-08 19:32:08 -05:00
jimmy smith
64b5873f56 Deprecate CreateCompressedInfo path and GetRuntimeFormat in favour of IAudioInfoFactoryRegistry
#rb phill.popp
#jira none
#preflight 63bca93f0b7fcef8b093d9b7

[CL 23622468 by jimmy smith in ue5-main branch]
2023-01-09 19:09:51 -05:00
rob gay
9ed959dac8 Downgrade seek ensure to log
- Add more logging around failures in ADPCM decode
- Remove superfluous logs
#rb jimmy.smith
#rnx
#jira UE-145250
#preflight 6230cac1cf609c54b1e5ae8e
#p4v-cherrypick 19390151

[CL 19394411 by rob gay in ue5-main branch]
2022-03-15 16:40:51 -04:00
phil popp
da2afef306 Fix crash when playing a metasound in PIE after using multiple client windows.
#jira UE-140408
#rb Max.Hayes
#preflight 61f335c175432e9e8e694095

#ROBOMERGE-AUTHOR: phil.popp
#ROBOMERGE-SOURCE: CL 18765641 in //UE5/Release-5.0/... via CL 18765642 via CL 18765714
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18765736 by phil popp in ue5-main branch]
2022-01-27 19:27:22 -05:00
phil popp
44fc0c38c2 Rework Metasound Wave Player
#jira UE-134456
#rb Aaron.McLeran
#preflight 61f1e6c2f8088a3d299c5b9a

#ROBOMERGE-AUTHOR: phil.popp
#ROBOMERGE-SOURCE: CL 18748267 in //UE5/Release-5.0/... via CL 18748279 via CL 18748380
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18748393 by phil popp in ue5-main branch]
2022-01-26 19:58:08 -05:00
aurel cordonnier
fc542f6cfd Merge from Release-Engine-Staging @ 18081189 to Release-Engine-Test
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971

[CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
2021-11-07 23:43:01 -05:00
jimmy smith
13b22ccbee Bandaid fix for Deadlock on Exit.
#jira UETOP-1384
#rb dan.thompson

#ROBOMERGE-SOURCE: CL 16106338 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v789-15992632)

[CL 16106343 by jimmy smith in ue5-main branch]
2021-04-23 16:50:30 -04:00
maxwell hayes
c5eac593f9 Fix for editor-only crash when previewing a sound after changing USoundWave properties
#rb Rob.Gay
#jira UE-111376

#ROBOMERGE-SOURCE: CL 15803697 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v783-15756269)

[CL 15808129 by maxwell hayes in ue5-main branch]
2021-03-24 16:42:04 -04:00