AudioSource development
This page contains the AudioBand.AudioSource api documentation and documentation on developing an audio source for AudioBand.
Building a new audio source project
- Create a new class library project
- Install the audio source nuget package
- Create a class to implement
IAudioSource. Api reference on the right.
public class AudioSource : IAudioSource
{
// implementation here
}
- The file
AudioSource.manifestshould be add to the project after installing the nuget package. Edit the file so that the name will matches your asembly file name.
AudioSource = "AudioSource.dll"
Deploying your new audio source.
For now, AudioBand reads each sub folder under the AudioSources folder. To deploy your new audio source, place your files under a new subfolder in the AudioSources directory. Ensure that your AudioSource.manifest file is also included. You also do not need to copy the AudioBand.AudioSource library files
The file structure will look like this:
Audioband/
|--AudioSources/
|--NewAudioSource/
|--Audiosource.dll
|--AudioSource.manifest
|--other files