natiny_clip_load
C
NatinyClip natiny_clip_load(NatinyResource ogg);
Decodes an Ogg Vorbis resource into a clip.
Parameters
| Name |
Type |
Description |
ogg |
NatinyResource |
Resource containing Ogg Vorbis data |
Returns
| Type |
Description |
NatinyClip |
Clip handle; 0 on failure |
Example
C
NatinyClip clip = natiny_clip_load(ogg);
Notes
- Decoding costs memory: 16 bits per sample per channel at the file's own
rate, held until the clip is destroyed.
- Returns
0 for an invalid resource, invalid Ogg data or allocation
failure.