forked from roc-streaming/roc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchannel_layout.go
33 lines (28 loc) · 925 Bytes
/
channel_layout.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Code generated by generate_bindings.py script from roc-streaming/bindgen
// roc-toolkit git tag: v0.4.0, commit: 62401be9
package roc
// Channel layout.
//
// Defines number of channels and meaning of each channel.
//
//go:generate stringer -type ChannelLayout -trimprefix ChannelLayout -output channel_layout_string.go
type ChannelLayout int
const (
// Multi-track audio.
//
// In multitrack layout, stream contains multiple channels which represent
// independent "tracks" without any special meaning (unlike stereo or surround)
// and hence without any special processing or mapping.
//
// The number of channels is arbitrary and is defined by Tracks field of
// MediaEncoding struct.
ChannelLayoutMultitrack ChannelLayout = 1
// Mono.
//
// One channel with monophonic sound.
ChannelLayoutMono ChannelLayout = 2
// Stereo.
//
// Two channels: left, right.
ChannelLayoutStereo ChannelLayout = 3
)