add debug msg

master v1.0.26
Baik S. Hyun 3 years ago
parent 5d45f1ec27
commit d7a0d6498f

@ -401,6 +401,7 @@ func (self *AudioEncoder) Encode(frame av.AudioFrame) (pkts [][]byte, err error)
var pkt []byte var pkt []byte
if frame.SampleFormat != self.SampleFormat || frame.ChannelLayout != self.ChannelLayout || frame.SampleRate != self.SampleRate { if frame.SampleFormat != self.SampleFormat || frame.ChannelLayout != self.ChannelLayout || frame.SampleRate != self.SampleRate {
fmt.Printf("%+v\n", self)
if frame, err = self.resample(frame); err != nil { if frame, err = self.resample(frame); err != nil {
return return
} }

Loading…
Cancel
Save