forked from mxmCherry/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
volume_normalization_mode.go
27 lines (23 loc) · 1.08 KB
/
volume_normalization_mode.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
package openrtb
// 5.17 Volume Normalization Modes
//
// Types of volume normalization modes, typically for audio.
type VolumeNormalizationMode int8
const (
VolumeNormalizationModeNone VolumeNormalizationMode = 0 // None
VolumeNormalizationModeAdVolumeAverageNormalizedToContent VolumeNormalizationMode = 1 // Ad Volume Average Normalized to Content
VolumeNormalizationModeAdVolumePeakNormalizedToContent VolumeNormalizationMode = 2 // Ad Volume Peak Normalized to Content
VolumeNormalizationModeAdLoudnessNormalizedToContent VolumeNormalizationMode = 3 // Ad Loudness Normalized to Content
VolumeNormalizationModeCustomVolumeNormalizationMode VolumeNormalizationMode = 4 // Custom Volume Normalization
)
// Ptr returns pointer to own value.
func (m VolumeNormalizationMode) Ptr() *VolumeNormalizationMode {
return &m
}
// Val safely dereferences pointer, returning default value (VolumeNormalizationModeNone) for nil.
func (m *VolumeNormalizationMode) Val() VolumeNormalizationMode {
if m == nil {
return VolumeNormalizationModeNone
}
return *m
}