GothicVRProject / GothicVR

Fan project recreating the classic Gothic I and II experience in VR.
GNU General Public License v3.0
26 stars 2 forks source link

add(DxMusicv2): Implemented DxMusic with synthesizer and on-demand tr… #354

Closed JaXt0r closed 4 months ago

JaXt0r commented 5 months ago

…ansitions.

To test

  1. Please build your game for MVR to test if the new DLLs run there as well!
  2. Start game
  3. Is the music the right one when you spawn?
  4. Walk around and listen the audio transitions from start area, world, OC, PSI, ...
  5. Start lab
  6. To your right, there's music handler. Start a few _std.sgt tracks and listen to transitions

Boundaries:

Checklist

(Please remove entries which aren't needed for your PR)

Scene

Testing

lmichaelis commented 5 months ago

I've made some additional improvements to playback, so if you wanna update, go for it. There is a small breaking change when creating a performance: now the performance constructor takes the sample rate as a parameter. You should choose the same sample rate as your AudioClip (i.e. 44100 rn)

Managed DLL.zip

JaXt0r commented 5 months ago

I've made some additional improvements to playback, so if you wanna update, go for it. There is a small breaking change when creating a performance: now the performance constructor takes the sample rate as a parameter. You should choose the same sample rate as your AudioClip (i.e. 44100 rn)

Managed DLL.zip

This version currently has a deadlock issue. I'm in discussions with Luis about it. Do not use it, please.

JaXt0r commented 5 months ago

I've made some additional improvements to playback, so if you wanna update, go for it. There is a small breaking change when creating a performance: now the performance constructor takes the sample rate as a parameter. You should choose the same sample rate as your AudioClip (i.e. 44100 rn) Managed DLL.zip

This version currently has a deadlock issue. I'm in discussions with Luis about it. Do not use it, please.

Fixed. Latest Dmusic-cs version committed.

JaXt0r commented 5 months ago

I will need to fix the overlapping music zone colliders. Currently music is switching too often. Draft state for now.

JaXt0r commented 5 months ago

I fixed all the remaining issues. Please test it.