Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
IAudioBackend.cs
1namespace Gondwana.Audio;
2
6public interface IAudioBackend
7{
11 string Name { get; }
12
25 string key,
26 byte[] data,
27 string fileNameOrExtension,
28 float volume,
29 float pan,
30 float playbackSpeed);
31
43 string key,
44 string uri,
45 float volume,
46 float pan,
47 float playbackSpeed);
48}
Creates backend-specific playback handles for the engine's common audio API.
IAudioPlaybackHandle CreateFromBytes(string key, byte[] data, string fileNameOrExtension, float volume, float pan, float playbackSpeed)
Creates a playback handle from raw audio bytes. The implementation is responsible for interpreting th...
IAudioPlaybackHandle CreateFromUri(string key, string uri, float volume, float pan, float playbackSpeed)
Creates a playback handle that plays audio from the specified URI. This is intended for backends that...
string Name
Gets the human-readable name of the backend implementation.
Backend-provided playback handle used by AudioResource. Implements IDisposable to allow releasing any...