Table of Contents

Class UnitySounds

Namespace
Mech3DotNet
Assembly
Mech3DotNet.dll

Read sound data from a sounds*.zbd file in a Unity-compatible manner.

public static class UnitySounds
Inheritance
UnitySounds
Inherited Members

Methods

ReadSoundAsWav(string, ReadSoundCb)

Read sound data from a single *.wav file, converted into Unity-compatible sound data (floating-point samples).

The callback is invoked once.

public static void ReadSoundAsWav(string path, UnitySounds.ReadSoundCb readCallback)

Parameters

path string
readCallback UnitySounds.ReadSoundCb

ReadSoundsAsWav(string, GameType, ReadSoundCb)

Read sound data from a sounds*.zbd file, converted into Unity-compatible sound data (floating-point samples).

The callback is invoked multiple times for each sound in the archive.

public static void ReadSoundsAsWav(string path, GameType gameType, UnitySounds.ReadSoundCb readCallback)

Parameters

path string
gameType GameType
readCallback UnitySounds.ReadSoundCb

Remarks

Not all game types have been tested; specifically CS uses higher quality sound data that may be unsupported in mech3ax.