Skip to content

feat(bindings): expose AVAudioFifo data path and av_tx FFT call#52

Merged
flexiondotorg merged 3 commits into
mainfrom
api-coverage
Jun 8, 2026
Merged

feat(bindings): expose AVAudioFifo data path and av_tx FFT call#52
flexiondotorg merged 3 commits into
mainfrom
api-coverage

Conversation

@flexiondotorg

Copy link
Copy Markdown
Contributor
  • Add AVAudioFifoWrite, AVAudioFifoRead, AVAudioFifoPeek, AVAudioFifoPeekAt wrappers reusing samplePointerArray from samples.go for planar/packed audio
  • Add AVTxCall invoker shim (tx.c + tx.go) to call av_tx function pointers from Go, enabling FFT transform invocation on AVTXContext
  • Both APIs remain root-package only; skip accounting confirmed at ceiling 245

- Add AVAudioFifoWrite, AVAudioFifoRead, AVAudioFifoPeek,
  AVAudioFifoPeekAt wrappers reusing samplePointerArray from samples.go
  for planar/packed audio
- Add AVTxCall invoker shim (tx.c + tx.go) to call av_tx function
  pointers from Go, enabling FFT transform invocation on AVTXContext
- Both APIs remain root-package only; skip accounting confirmed at
  ceiling 245

Signed-off-by: Martin Wimpress <code@wimpress.io>
- Add audio_fifo.go and tx.go entries to hand-written bindings section
- Update coverage from 89.9% to 90.4% (911/1008 functions)

Signed-off-by: Martin Wimpress <code@wimpress.io>
Signed-off-by: Martin Wimpress <code@wimpress.io>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 4 files (changes from recent commits).

Requires human review: These new C bindings for audio FIFO and FFT function pointers involve unsafe C interop and memory management, adding significant complexity and risk that warrants a human review despite passing an AI check.

Re-trigger cubic

@flexiondotorg flexiondotorg merged commit 6fb938e into main Jun 8, 2026
5 checks passed
@flexiondotorg flexiondotorg deleted the api-coverage branch June 8, 2026 13:42

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: This PR adds low-level cgo bindings to FFmpeg's audio FIFO and FFT transform APIs, using unsafe.Pointer and C function pointers; such changes have inherent memory-safety risks and require careful human review beyond what automated analysis can catch.

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant