https://github.com/azim/plasmasoundapi
A library for playing AudioClips in Plasma
https://github.com/azim/plasmasoundapi
Last synced: 4 months ago
JSON representation
A library for playing AudioClips in Plasma
- Host: GitHub
- URL: https://github.com/azim/plasmasoundapi
- Owner: Azim
- License: bsd-3-clause
- Created: 2024-03-16T16:29:17.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-16T19:58:28.000Z (about 1 year ago)
- Last Synced: 2025-01-06T01:20:24.643Z (5 months ago)
- Language: C#
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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