2023-10-24 21:24:55 CST W43D2

This commit is contained in:
aggresss
2023-10-24 21:24:55 +08:00
parent e163918619
commit 4329c27b55
47 changed files with 3577 additions and 165 deletions

69
avutil_replaygain.go Normal file
View File

@@ -0,0 +1,69 @@
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)
}