1 stable release
new 4.6.0 | Mar 8, 2025 |
---|
#1533 in Game dev
112 downloads per month
Used in audionimbus
7MB
21K
SLoC
audionimbus-sys
Rust bindings to the Steam Audio library.
This crate is not meant to be used directly; most users should use audionimbus
, a safe wrapper built on top of audionimbus-sys
.
Overview
audionimbus-sys
exposes raw bindings to the Steam Audio C library.
It is inherently unsafe, as it interfaces with external C code; for a safe API, refer to audionimbus
.
Version compatibility
audionimbus-sys
mirrors the version of Steam Audio.
Installation
audionimbus-sys
requires linking against the Steam Audio library during compilation.
To do so, download steamaudio_4.6.0.zip
from the release page.
Locate the relevant library for your target platform (SDKROOT
refers to the directory in which you extracted the zip file):
Platform | Library Directory | Library To Link |
---|---|---|
Windows 32-bit | SDKROOT/lib/windows-x86 |
phonon.dll |
Windows 64-bit | SDKROOT/lib/windows-x64 |
phonon.dll |
Linux 32-bit | SDKROOT/lib/linux-x86 |
libphonon.so |
Linux 64-bit | SDKROOT/lib/linux-x64 |
libphonon.so |
macOS | SDKROOT/lib/osx |
libphonon.dylib |
Android ARMv7 | SDKROOT/lib/android-armv7 |
libphonon.so |
Android ARMv8/AArch64 | SDKROOT/lib/android-armv8 |
libphonon.so |
Android x86 | SDKROOT/lib/android-x86 |
libphonon.so |
Android x64 | SDKROOT/lib/android-x64 |
libphonon.so |
iOS ARMv8/AArch64 | SDKROOT/lib/ios |
libphonon.a |
Ensure the library is placed in a location listed in the dynamic library search paths (e.g., /usr/local/lib
).
Finally, add audionimbus-sys
to your Cargo.toml
:
[dependencies]
audionimbus-sys = "4.6.0"
Documentation
Documentation is available at docs.rs.
Since this crate strictly follows Steam Audio’s C API, you can also refer to the Steam Audio C API reference for additional details.
License
audionimbus-sys
is dual-licensed under the MIT License and the Apache-2.0 License.
You may choose either license when using the software.