natiny_clip_get_channels
C
uint32_t natiny_clip_get_channels(NatinyClip clip);
Returns how many channels a clip was decoded with.
Parameters
| Name |
Type |
Description |
clip |
NatinyClip |
Clip handle |
Returns
| Type |
Description |
uint32_t |
Channel count as the file carries it; 0 for an invalid clip |
Example
C
uint32_t channels = natiny_clip_get_channels(clip);
Notes
- Playback uses at most the first two decoded channels. A spatial source
mixes those channels down to mono; a non-spatial source sends them to the
corresponding output channels.
- Invalid and destroyed handles return
0.