Answered
0
0

Hi guys.

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 system
FMOD::System system;

//create dsp for controller speaker
FMOD::DSP
controllerdsp;
system->createDSP(&dspdesc, &controllerdsp);
FMOD::ChannelGroup* controller;
system->createChannelGroup(“Controller Out”, &controller );
controller->addDSP( controllerdsp, nullptr );

//create and play sound via controller spaker
FMOD::Sound* sound;
system->createSound(Common_MediaPath(“fmodfan.wav”), FMOD_LOOP_OFF, 0, &sound);
FMOD::Channel *channel;
system->playSound(FMOD_CHANNEL_FREE, sound, true, &channel);
channel->setChannelGroup(controller);
channel->setPaused(false);

this code works perfectly, But I need to modify it for FMOD::Event ‘s usage.
I tried something like this:

//create eventSystem
FMOD::EventSystem *eventSystem;

// load event from some event project
FMOD::EventProject *eventProject;
eventSystem->load( “fmodfan.fev”, 0, &eventProject );
FMOD::event *event;
eventProject->getEvent( “fmod/fan”, FMOD_EVENT_NONBLOCKING, &event );

//try to add controller speaker dps
FMOD::ChannelGroup *channelGroup;
sound0.event->getChannelGroup( &channelGroup );
channelGroup->addDSP( controllerdsp, nullptr );

//try to play
event->start();

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/

Serge.

  • You must to post comments
Best Answer
0
0

Resolved offline.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.