OGG Vorbis decoding/playing in Swift

I'm attempting to create a client library for a service that sends audio as Vorbis streams. Is there currently a way to play Vorbis audio using Swift?

I've managed to link libvorbis to my Swift package, and I've gotten a raw [Int8] PCM stream; however, I can't seem to load it into AVAudioPCMBuffer correctly.

We don't have much detail to go on here. This might be a C interoperability issue, or it could be an AVAudioPCMBuffer issue. If it's the latter, you should ask on the Apple Dev Forums (or Stack Overflow.) If it's a C interoperability issue, this is the right place.

Terms of Service

Privacy Policy

Cookie Policy