openOrNull
Opens the Ogg Vorbis file held in bytes for streaming, or returns null when bytes is empty, is not an Ogg Vorbis file, is corrupt, or has more than two channels. The stream copies bytes, so the caller may reuse the array.
Samples
assertPrints(VorbisStream.openOrNull(byteArrayOf(1, 2, 3)), "null")Content copied to clipboard