Skip to content

Allow passing AVAsset to waveform analyzer#110

Merged
dmrschmidt merged 1 commit intodmrschmidt:mainfrom
mihai8804858:main
Jan 22, 2026
Merged

Allow passing AVAsset to waveform analyzer#110
dmrschmidt merged 1 commit intodmrschmidt:mainfrom
mihai8804858:main

Conversation

@mihai8804858
Copy link
Copy Markdown
Contributor

This will allow passing AVURLAsset directly to WaveformAnalyzer instead of URL, so I don't create multiple assets pointing to the same file.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for passing AVAsset directly to WaveformAnalyzer, allowing callers to reuse existing asset instances instead of creating multiple assets for the same file. The existing URL-based API is refactored to delegate to the new asset-based method, and an unused parameter is removed from an internal helper method.

Changes:

  • Added new public samples(fromAsset:count:qos:) method accepting AVAsset parameter
  • Refactored existing samples(fromAudioAt:count:qos:) to delegate to the new method
  • Removed unused assetReader parameter from internal process method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dmrschmidt dmrschmidt merged commit a7a96cf into dmrschmidt:main Jan 22, 2026
6 checks passed
@dmrschmidt
Copy link
Copy Markdown
Owner

Thanks for your contribution, this makes sense :)

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.

3 participants