ModuleConfig.loadAudioFile

Loads an audio file into the given audio module.

  1. void loadAudioFile(string modID, int waveID, string path, string dataPak)
  2. void loadAudioFile(AudioModule mod, int waveID, string path, string dataPak)
    class ModuleConfig
    protected protected
    void
    loadAudioFile
    (,
    int waveID
    ,
    string path
    ,
    string dataPak = null
    )

Parameters

mod AudioModule

The module, that needs the waveform data.

waveID int

The waveform ID. Conflicting waveforms will be automatically overwitten.

path string

Path of the file to be loaded.

dataPak string

If a DataPak is used, then the path to it must be specified there, otherwise it's null.

Meta