Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load media from assets #19

Open
kuamanet opened this issue Aug 23, 2022 · 0 comments
Open

Load media from assets #19

kuamanet opened this issue Aug 23, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@kuamanet
Copy link

// Read track URL from the bundle assets
        guard let inputFileUrl = Bundle.main.url(forResource: trackPath, withExtension: "mp3") else {
            throw KlaepPlayerError.couldNotLoadTrack
        }
        
        // Load the track inside a AVAudioFile
        let inputFile = try AVAudioFile(forReading: inputFileUrl)
@kuamanet kuamanet added the enhancement New feature or request label Aug 23, 2022
@kuamanet kuamanet added this to the First release milestone Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant