커뮤니티 Q&A

Audiokinetic의 커뮤니티 Q&A 포럼에 오신 것을 환영합니다. 이 포럼은 Wwise와 Strata 사용자들이 서로 도움을 주는 곳입니다. Audiokinetic의 직접적인 도움을 얻으려면 지원 티켓 페이지를 사용하세요. 버그를 보고하려면 Audiokinetic 런처에서 Bug Report 옵션을 사용하세요. (Q&A 포럼에 제출된 버그 보고는 거절됩니다. 전용 Bug Report 시스템을 사용하면 보고 내용이 담당자에게 정확히 전달되어 문제 해결 가능성이 크게 높아집니다.)<segment 6493>

빠르고 정확한 답변을 얻으려면 질문을 올릴 때 다음 팁을 참고하세요.

  • 구체적인 내용을 적어주세요: 무엇을 하려는지, 혹은 어떤 특정 문제에 부딪혔는지 설명하세요.
  • 핵심 정보를 포함하세요: Wwise와 게임 엔진 버전, 운영체제 등 관련 정보를 함께 제공하세요.
  • 시도한 방법들을 알려주세요: 문제 해결을 위해 이미 어떤 단계를 시도해봤는지 설명해주세요.
  • 객관적인 사실에 초점을 맞추세요: 문제의 기술적 사실을 중심으로 설명하세요. 문제에 집중할수록 다른 사람들이 더 빠르게 해결책을 찾을 수 있습니다.

0 투표

Hello. I develop a small arcade game for experimental purposes. This game has a dynamic MIDI music background and MIDI sound effects. To analyze the results of the experiment I need to record all player actions and game events including the sound.
As the music is dynamic, I use a Callback on the music background to record all the music MIDI events but I discovered that the MIDI sound effects also trigger the callback (that I only put on the music play event). The music uses a music-box sound and sound effects are drum sounds. To replay them with the right instrument, I need to separate them.

I tried two different approaches :
- the channel : I tried to identifies the channel used for each instrument but it can vary from one execution of the game to another
- the associated gameObject : if I try to Post the sound effect events with another gameObject source, no sound is emitted... the log show that the events are received by Wwise but not played :

    Same gameObject (SoundControler):

    Timestamp    Type    Description    Wwise Object Name    Game Object Name    Wwise Object ID    Game Object ID    Scope
    0:01:03.872    Event    Event Triggered    touch    SoundControler    2040218098    13976    Game Object
    0:01:03.872    Action Triggered    Trigger    touch    SoundControler    2040218098    13976    Game Object
    0:01:03.872    Notification    Scheduled stinger "\Default Work Unit\SoundEffects\touch" on segment "PetrouchkaQuarter\Petrouchka_1" in 0 ms    PetrouchkaSwitch    SoundControler    166949021    13976    Game Object
    0:01:03.872    Notification    Event Finished        SoundControler        13976    Game Object
    0:01:03.872    Notification    Music track "touch" resolved MIDI target "Drums"    touch    SoundControler    665975159    13976    Game Object
    0:01:03.872    MIDI Event    Ch 10 - All Controllers OffMIDI In    touch    SoundControler    665975159    13976    Game Object
    0:01:03.872    MIDI Event    Ch 10 - Program Change: 0MIDI In    touch    SoundControler    665975159    13976    Game Object
    0:01:03.872    MIDI Event    Ch 10 - CC: 7 Val: 100MIDI In    touch    SoundControler    665975159    13976    Game Object
    0:01:03.872    MIDI Event    Ch 10 - CC: 10 Val: 64MIDI In    touch    SoundControler    665975159    13976    Game Object
    0:01:03.872    MIDI Event    Ch 10 - CC: 91 Val: 0MIDI In    touch    SoundControler    665975159    13976    Game Object
    0:01:03.872    MIDI Event    Ch 10 - CC: 93 Val: 0MIDI In    touch    SoundControler    665975159    13976    Game Object
    0:01:03.872    MIDI Event    Ch 10 - Note-On: C#2 Vel: 80 MIDI In    touch    SoundControler    665975159    13976    Game Object
    0:01:03.872    Notification    Playing    C2#    SoundControler    856015156    13976    Game Object

    Different gameObjects (SoundControler and SoundEffectEmitter):

    Timestamp    Type    Description    Wwise Object Name    Game Object Name    Wwise Object ID    Game Object ID    Scope
    0:00:21.120    Event    Event Triggered    touch    SoundEffectEmitter    2040218098    13972    Game Object
    0:00:21.120    Action Triggered    Trigger    touch    SoundEffectEmitter    2040218098    13972    Game Object
    0:00:21.120    Notification    Event Finished        SoundEffectEmitter        13972    Game Object
    0:00:21.184    Event    Event Triggered    touch    SoundEffectEmitter    2040218098    13972    Game Object
    0:00:21.184    Action Triggered    Trigger    touch    SoundEffectEmitter    2040218098    13972    Game Object
    0:00:21.184    Notification    Event Finished        SoundEffectEmitter        13972    Game Object
    0:00:21.312    Notification    Stopped    Petrouchka    SoundControler    886202547    13976    Game Object
    0:00:21.312    Notification    Stopped    Petrouchka    SoundControler    886202547    13976    Game Object

I don't know why no sound is played, I suppose that's because sound effects are synchronized on the music with a stinger and the music is now attached to another gameObject.

I have no clue how to separate the sound FX from music to record them separately (other than removing the stingers). Maybe there is an information in the AkMIDIEventCallbackInfo structure that can allow me to separate music and sound FX but reading the documentation I do not find anything useful.

Do you have any clue how to achieve this ?
Thank you in advance for any help you could provide.

 

General Discussion Aline H. (130 포인트) 로 부터

Please sign-in or register to answer this question.

...