Hoping someone can help me.
I seem to be running into an issue with the BASS_OPUS_StreamCreateFile() method using BASS.net.
I'm loading the plugin using Bass.BASS_PluginLoad("bassopus.dll") which is loading okay (returns 1, and BASS_ErrorGetCode() is BASS_OK.
Then I'm simply running
var streamPtr = BassOpus.BASS_OPUS_StreamCreateFile("c:\\users\\davey\\downloads\\audio.opus", 0l, 0l, BASSFlag.BASS_STREAM_DECODE);
I receive the error
BASS_ERROR_FILEFORM.
I tried with an opus sample file downloaded from a website, and this seems to open fine. So I'm trying to get to the bottom of what's actually occurring.
The original file "audio.opus" was recorded using WebRTC as I'm trying to record clips through my browser, convert them to MP3 and store them in another folder. Now, I've loaded both files into MediaInfo, and looked at the information of the file (screenshots below)
I'd tried previously with using the WebM addon, but received "BASS_ERROR_CODEC", when I looked at the headers of the file I saw it was technically Opus, so I figured it was worth a shot trying to open the file using BassOpus.
Any pointers would be hugely helpful, please feel free to let me know I've missed something blindingly obvious.