An advanced audio player API for SCP: Secret Laboratory using NAudio
This library has a number of open-source dependencies. See Attributions
Note
SecretLabNAudio is not sponsored nor endorsed by NAudio.
- Fully customizable audio provider interfaces
- Real-time audio processing
- Streaming files from disk
- Resampling and downmixing
- Ogg Vorbis support using NVorbis
- MP3 support using NLayer
- Speaker personalization
- SpeakerToy pooling
- Automatic reader resolution by file type
- Cache for short audio clips
- Windows-only Media Foundation support for a wider range of formats, and decoding over the network
Tip
Check the wiki for more information.
- Download the
SecretLabNAudio.zipfile from the releases page - Extract
bin/SecretLabNAudio.dllfrom the archive into the global plugins directory- Linux:
.config/SCP Secret Laboratory/LabAPI/plugins/global/ - Windows:
%appdata%/SCP Secret Laboratory/LabAPI/plugins/global/
- Linux:
- Restart the server
Important
The plugin must be placed in the global plugins directory to ensure that embedded dependencies are loaded. If you have a global plugin depending on SecretLabNAudio, rename it so it loads after SecretLabNAudio.
- Download the
SecretLabNAudio.Core.dllfile from the releases page - Place the file in the dependencies directory
- Linux:
.config/SCP Secret Laboratory/LabAPI/dependencies/<port>/ - Windows:
%appdata%/SCP Secret Laboratory/LabAPI/dependencies/<port>/
- Linux:
- Download the
SecretLabNAudio.zipfile from the releases page - Extract the necessary files from the
bin/directory of the archive as dependenciesNAudio.Core.dllis always requiredNLayerandNLayer.NAudioSpport.dllfor.mp3support (optional)NAudio.Vorbis.dllandNVorbis.dllfor.oggsupport (optional)NAudio.Wasapi.dllfor Media Foundation support (optional, WIndows-only)
- Optionally download the necessary plugin(s) from the releases page
SecretLabNAudio.NLayer.dllfor.mp3supportSecretLabNAudio.NVorbis.dllfor.oggsupportSecretLabNAudio.MediaFoundation.dllfor Media Foundation support (Windows-only)
- Place the downloaded plugin(s) into the plugins directory
- Linux:
.config/SCP Secret Laboratory/LabAPI/plugins/<port>/ - Windows:
%appdata%/SCP Secret Laboratory/LabAPI/plugins/<port>/
- Linux:
- Restart the server
Simply install the SecretLabNAudio.Core package from NuGet.
Manual installation:
- Reference the
SecretLabNAudio.Core.dllfile from the releases page - Install the
NAudio.Corepackage from NuGet
Caution
Most official NAudio packages are Windows-specific. Use the NAudio.Core package for cross-platform support.
Important
If you reference other NAudio packages, make sure you copy those dependencies to the LabAPI dependencies directory.