Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Dec 1, 2024
1 parent b5f2934 commit 7900de7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/resampling_audio/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ var (

var (
af *astiav.AudioFifo
decodedFrame *astiav.Frame
finalFrame *astiav.Frame
resampledFrame *astiav.Frame
src *astiav.SoftwareResampleContext
decodedFrame *astiav.Frame
)

func main() {
Expand Down Expand Up @@ -135,8 +135,8 @@ func main() {
log.Fatal(fmt.Errorf("main: allocating samples failed: %w", err))
}

// Do this only if you want to make sure final frames have an exact constant number of samples
// In that case we use an audio FIFO
// For the sake of the example we use an audio FIFO to ensure final frames have an exact constant
// number of samples except for the last one. However this is optional and it depends on your use case
finalFrame = astiav.AllocFrame()
defer finalFrame.Free()
finalFrame.SetChannelLayout(resampledFrame.ChannelLayout())
Expand Down

0 comments on commit 7900de7

Please sign in to comment.