Programmer Instrument is not functioning at all, and only the following warning messages are being logged. I think it’s a BUG.
LogFMOD: Warning: C:\buildagent1\work\c1c3f17eb167c494\studio_api\src\fmod_shadow_event.cpp(358) - Programmer sound callback is not set for instrument ‘SoundFileName’
LogFMOD: Warning: C:\buildagent1\work\c1c3f17eb167c494\studio_api\src\fmod_playback_event.cpp(2252) - Programmer sound callback for instrument ‘SoundFileName’ returned no sound.
This is a test project, - Microsoft OneDrive
and there is no audio output anywhere.
How can this issue be fixed?
Thanks for providing all that information and the repro.
Using Programmer Instruments to Play Audio Table Assets should cover this exact topic for you.
By default we assume that events do not contain programmer sounds, so you need to tell the FMODAudioComponent if it does so that it can set the appropriate callbacks. To do this you need to either set the Programmer Sound Name or check the Enable Timeline Callbacksoption in the FMODAudioComponent:
Thank you for you help.
But, I have 1 more question.
If I use Play event 2D OR Play event at location, it doesn’t return FMODAudioComponent, and in FMODEventInstance’ context I can’t use the function ‘Set Enable Timeline Callbacks’… How can I set EnableTimelineCallbacks true?
PlayEventAttached returns an FMODAudioComponent, while the others return an EventInstance.
The other option is to use an FMODAudioComponent on the object or blueprint which can be reused.