Table of Contents

Class Audio

Namespace
PolyMod.Managers
Assembly
PolyMod.dll

The manager for custom audio. It replaces game music, nature sounds, and sound effects with the registered audio clips of mods. At this time, BuildAudioClip(byte[], string) is a stub, so the registered clips have no audio data.

public static class Audio
Inheritance
Audio
Inherited Members

Methods

BuildAudioClip(byte[], string)

A stub for the method that makes an audio clip from the bytes of an audio file. It does not read the data. It only gives a new empty audio clip.

public static AudioClip BuildAudioClip(byte[] data, string name = "polymod_audio")

Parameters

data byte[]

The bytes of the audio file. The method does not use them.

name string

The name for the audio clip. The method does not use it.

Returns

AudioClip

A new empty audio clip with no name and no audio data.