https://github.com/yukitty/godot-runtime-ogg-vorbis
GDExtension adds support for Ogg Vorbis decoding at runtime, rather than requiring import.
https://github.com/yukitty/godot-runtime-ogg-vorbis
gdextension godot-engine-4 ogg-vorbis
Last synced: 4 months ago
JSON representation
GDExtension adds support for Ogg Vorbis decoding at runtime, rather than requiring import.
- Host: GitHub
- URL: https://github.com/yukitty/godot-runtime-ogg-vorbis
- Owner: Yukitty
- License: mit
- Created: 2023-11-27T16:30:56.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T23:08:26.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T02:36:56.740Z (11 months ago)
- Topics: gdextension, godot-engine-4, ogg-vorbis
- Language: C++
- Homepage:
- Size: 28.3 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Runtime Ogg Vorbis
This GDExtension implements libogg at runtime for Godot 4.1.3## Usage
### Static methods:
```
ResourceLoaderOggVorbis.load(path : String) -> AudioStreamOggVorbis
ResourceLoaderOggVorbis.load_buffer(buffer : PackedByteArray) -> AudioStreamOggVorbis
```Call one of the load functions on any path to a loose ogg file or ogg memory buffer to decode it into a usable AudioStream.
Returns `null` on error.
Your app is responsible for cacheing the returned AudioStream and enabling looping as necessary.
## License
This GDExtension is released under a permissive MIT license (see LICENSE.md),
but makes use of the OggVorbis software codec source code which is
Copyright ©️ 1994-2019 by the Xiph.Org Foundation https://www.xiph.org/