I just use a modified version of the libopusfile library:
https://www.opus-codec.org/release/d...file_0_12.html
The source for my plugin can be found here:
https://github.com/RamonUnch/in_opus
The source is a bit of a mess but it was quickly developed as a side project, targeting Win9x and Winamp 2.x