In our project we use FMOD Ex / FMOD Designer middleware, and we have a problem playing FMOD::Event through PS4 controller speaker.
I succesfully ran “controller_speaker” low level example from FMOD middleware install package for PS4.
As I understand I need to attach specific DSP effect to my newly created channel. Something like this::
//create dsp for controller speaker
system->createChannelGroup(“Controller Out”, &controller );
controller->addDSP( controllerdsp, nullptr );
//create and play sound via controller spaker
system->createSound(Common_MediaPath(“fmodfan.wav”), FMOD_LOOP_OFF, 0, &sound);
system->playSound(FMOD_CHANNEL_FREE, sound, true, &channel);
this code works perfectly, But I need to modify it for FMOD::Event ‘s usage.
I tried something like this:
// load event from some event project
eventSystem->load( “fmodfan.fev”, 0, &eventProject );
eventProject->getEvent( “fmod/fan”, FMOD_EVENT_NONBLOCKING, &event );
//try to add controller speaker dps
sound0.event->getChannelGroup( &channelGroup );
channelGroup->addDSP( controllerdsp, nullptr );
//try to play
At this point, if I don’t add any dps affect at all, I can hear my event via my main sound system (TV actually), but if I try to add dsp I hear nothing at all – neither from controller speaker nor from TV.
Where is the problem guys?
Please, help me.
Thank you! o/
- You must login to post comments