Commit Graph

6 Commits

Author SHA1 Message Date
helen yang
b9eb6cda6c Audio bus subsystem refactor checkpoint
- Move audio bus functionality from Mixer Device to new Audio Bus Subsystem
- Add new audio bus key struct so that FMixerAudioBuses do not have to be created with UObject ids

#jira UE-169610
#rb phil.popp, ryan.mangin, rob.gay
#preflight 63906195255f07df8e452b8c

[CL 23429172 by helen yang in ue5-main branch]
2022-12-07 11:04:50 -05:00
nicholas howe
115d386688 Audio bus reader node output patch buffer size fix
This fixes a bug where audio bus reader nodes might never start popping audio because AudioCallbackBufferFrameSize is set to a value other than the default 1024, such as 256.

Replace AddPatchForAudioBus with AddPatchOutputForAudioBus, which is parameterized by the desired number of frames and channels in the patch output.
Update AddPatchInputForAudioBus to match.
Both functions use a new MakePatch function to create a patch based on the parameters and scaled to fit the number of blocks specified by the new "au.PatchBufferBlocks" cvar.
Add support for quad, 5.1, and 7.1 bus reader and writer nodes.

[REVIEW] [at]phil.popp
#preflight 6386191a4004f73f62c48875

[CL 23312512 by nicholas howe in ue5-main branch]
2022-11-29 12:35:48 -05:00
nicholas howe
373ad2a12c Metasound Audio Bus Writer Node
Adds a metasound node that sends its audio input to an audio bus.
Modifies the audio mixer interface to support the node.

FMixerSourceManager::StartAudioBus no longer sets bIsPlaying to false on sources that use an audio bus when the audio bus starts.
FMixerAudioBus::MixBuffer mixes its patch inputs into its MixedSourceData buffer, so that the patch input data is available when CopyCurrentBuffer is used to retrieve the mix.

[REVIEW] [at]aaron.mcleran [at]buzz.burrowes [at]phil.popp
#preflight 6372639c5368a3230a4ed041

[CL 23123823 by nicholas howe in ue5-main branch]
2022-11-14 14:44:30 -05:00
alfaroh corneyiii
4762921ab0 Fix crashes in Audio Bus Reader node when no Audio Bus is given
#jira UE-167439
#rb max.hayes
#preflight 634f080e773a16f49d2748d4
#lockdown nick.whiting

[CL 22632998 by alfaroh corneyiii in ue5-main branch]
2022-10-19 14:33:15 -04:00
bryan sefcik
117472780d Fixed include paths.
#jira
#preflight 634ee62fe746026e48eb077e

[CL 22621687 by bryan sefcik in ue5-main branch]
2022-10-19 06:39:08 -04:00
Aaron McLeran
dee01b6af7 MetaSound audio bus reader node
#rb Jimmy.Smith
#jira UE-150585
#preflight 62bde1c73f0d6beee2972691

[CL 20904173 by Aaron McLeran in ue5-main branch]
2022-06-30 17:09:21 -04:00