Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azim/plasmasoundapi

A library for playing AudioClips in Plasma
https://github.com/azim/plasmasoundapi

Last synced: 6 days ago
JSON representation

A library for playing AudioClips in Plasma

Awesome Lists containing this project

README

        

# PlasmaSoundAPI
A library for playing AudioClips in Plasma

# Usage

`EventInstance PlasmaSoundAPI.PlaySound2D(AudioClip audioclip)` - play 2D sound

`EventInstance PlasmaSoundAPI.PlaySound3D(AudioClip audioclip, Vector3 position)` - play 3D sound at given position

[Complete example](https://gist.github.com/Azim/50a725614c346077fa57488e3aa411b6) using both of the above methods to play sound from console command.

---
Dont forget to add
```c#
[BepInDependency("Azim.PlasmaSoundAPI", BepInDependency.DependencyFlags.HardDependency)]
```
annotation to your mod to ensure that the library is loaded before your mod.

# Releases

### 1.0.1
* Renamed assembly file and namespace to fix import issues
* Fixed sound banks not loading

### 1.0.0
* Initial release