mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 15:47:33 +08:00
70 lines
1.9 KiB
Go
70 lines
1.9 KiB
Go
package ffmpeg
|
|
|
|
/*
|
|
#include <libavutil/replaygain.h>
|
|
*/
|
|
import "C"
|
|
|
|
// AVReplayGain
|
|
type AVReplayGain C.struct_AVReplayGain
|
|
|
|
// Custom: GetTrackGain gets `AVReplayGain.track_gain` value.
|
|
func (rg *AVReplayGain) GetTrackGain() int32 {
|
|
return (int32)(rg.track_gain)
|
|
}
|
|
|
|
// Custom: SetTrackGain sets `AVReplayGain.track_gain` value.
|
|
func (rg *AVReplayGain) SetTrackGain(v int32) {
|
|
rg.track_gain = (C.int32_t)(v)
|
|
}
|
|
|
|
// Custom: GetTrackGainAddr gets `AVReplayGain.track_gain` address.
|
|
func (rg *AVReplayGain) GetTrackGainAddr() *int32 {
|
|
return (*int32)(&rg.track_gain)
|
|
}
|
|
|
|
// Custom: GetTrackPeak gets `AVReplayGain.track_peak` value.
|
|
func (rg *AVReplayGain) GetTrackPeak() uint32 {
|
|
return (uint32)(rg.track_peak)
|
|
}
|
|
|
|
// Custom: SetTrackPeak sets `AVReplayGain.track_peak` value.
|
|
func (rg *AVReplayGain) SetTrackPeak(v uint32) {
|
|
rg.track_peak = (C.uint32_t)(v)
|
|
}
|
|
|
|
// Custom: GetTrackPeakAddr gets `AVReplayGain.track_peak` address.
|
|
func (rg *AVReplayGain) GetTrackPeakAddr() *uint32 {
|
|
return (*uint32)(&rg.track_peak)
|
|
}
|
|
|
|
// Custom: GetAlbumGain gets `AVReplayGain.album_gain` value.
|
|
func (rg *AVReplayGain) GetAlbumGain() int32 {
|
|
return (int32)(rg.album_gain)
|
|
}
|
|
|
|
// Custom: SetAlbumGain sets `AVReplayGain.album_gain` value.
|
|
func (rg *AVReplayGain) SetAlbumGain(v int32) {
|
|
rg.album_gain = (C.int32_t)(v)
|
|
}
|
|
|
|
// Custom: GetAlbumGainAddr gets `AVReplayGain.album_gain` address.
|
|
func (rg *AVReplayGain) GetAlbumGainAddr() *int32 {
|
|
return (*int32)(&rg.album_gain)
|
|
}
|
|
|
|
// Custom: GetAlbumPeak gets `AVReplayGain.album_peak` value.
|
|
func (rg *AVReplayGain) GetAlbumPeak() uint32 {
|
|
return (uint32)(rg.album_peak)
|
|
}
|
|
|
|
// Custom: SetAlbumPeak sets `AVReplayGain.album_peak` value.
|
|
func (rg *AVReplayGain) SetAlbumPeak(v uint32) {
|
|
rg.album_peak = (C.uint32_t)(v)
|
|
}
|
|
|
|
// Custom: GetAlbumPeakAddr gets `AVReplayGain.album_peak` address.
|
|
func (rg *AVReplayGain) GetAlbumPeakAddr() *uint32 {
|
|
return (*uint32)(&rg.album_peak)
|
|
}
|