Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
## encoding.vorbis
This module is a thin wrapper around [stb_vorbis](https://github.com/nothings/stb/blob/master/stb_vorbis.c),
which is a public domain Ogg Vorbis audio decoder, originally written by Sean Barrett.
Example:
```v
import encoding.vorbis
x := vorbis.decode_file('coin.ogg')!
dump(x)
unsafe { x.free() }
```
... may produce something like this:
```
[x.v:4] x: vorbis.VorbisData{
path: 'coin.ogg'
channels: 2
sample_rate: 48000
len: 5760800
data: &0
}
```
Note: x.data points to the actual memory block that has the decoded content.