![]() |
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.
|
Windows desktop audio backend implemented with NAudio. More...
Public Member Functions | |
| IAudioPlaybackHandle | CreateFromBytes (string key, byte[] data, string fileNameOrExtension, float volume, float pan, float playbackSpeed) |
| Creates an IAudioPlaybackHandle from the provided raw audio bytes. The data is opened via the NAudioReaderRegistry which may create a temporary file. The returned playback handle is responsible for disposing the underlying reader when finished. | |
| IAudioPlaybackHandle | CreateFromUri (string key, string uri, float volume, float pan, float playbackSpeed) |
| Creates an IAudioPlaybackHandle from a URI. | |
Properties | |
| static NAudioAudioBackend | Instance = new() [get] |
| Gets the singleton instance of the NAudioAudioBackend. | |
| string | Name [get] |
| Gets the display name of this audio backend. | |
Windows desktop audio backend implemented with NAudio.
Definition at line 4 of file NAudioAudioBackend.cs.
| IAudioPlaybackHandle Gondwana.Audio.NAudio.NAudioAudioBackend.CreateFromBytes | ( | string | key, |
| byte[] | data, | ||
| string | fileNameOrExtension, | ||
| float | volume, | ||
| float | pan, | ||
| float | playbackSpeed ) |
Creates an IAudioPlaybackHandle from the provided raw audio bytes. The data is opened via the NAudioReaderRegistry which may create a temporary file. The returned playback handle is responsible for disposing the underlying reader when finished.
| key | Logical key for the audio resource (used for logging). |
| data | Raw audio data to load. |
| fileNameOrExtension | A hint containing the original file name or extension to aid format detection. |
| volume | Initial playback volume in the range [0,1]. |
| pan | Initial stereo pan in the range [-1,1]. |
| playbackSpeed | Initial playback speed multiplier (clamped to supported range). |
Implements Gondwana.Audio.IAudioBackend.
Definition at line 30 of file NAudioAudioBackend.cs.
| IAudioPlaybackHandle Gondwana.Audio.NAudio.NAudioAudioBackend.CreateFromUri | ( | string | key, |
| string | uri, | ||
| float | volume, | ||
| float | pan, | ||
| float | playbackSpeed ) |
Creates an IAudioPlaybackHandle from a URI.
| key | Logical key for the audio resource (used for logging). |
| uri | The URI to load audio from. |
| volume | Initial playback volume in the range [0,1]. |
| pan | Initial stereo pan in the range [-1,1]. |
| playbackSpeed | Initial playback speed multiplier. |
| NotSupportedException | Always thrown. URI-based playback is not supported by this backend. |
Implements Gondwana.Audio.IAudioBackend.
|
staticget |
Gets the singleton instance of the NAudioAudioBackend.
Definition at line 11 of file NAudioAudioBackend.cs.
|
get |
Gets the display name of this audio backend.
Implements Gondwana.Audio.IAudioBackend.
Definition at line 16 of file NAudioAudioBackend.cs.