Three options:
If you want to try option # 3, I have further comments. It is probably unnecessary, but since you are writing your own file format there is the possibility.
- Wrap the byte data in a MemoryStream: var oggStream = new MemoryStream(oggData);
- Change the custom file format reader to return a stream that reads data as needed (preferred)
-
Implement NVorbis.IPacketProvider in the custom file format reader (advanced)
If you want to try option # 3, I have further comments. It is probably unnecessary, but since you are writing your own file format there is the possibility.