Work with Ogg Vorbis

I have an ogg vorbis file, and I have to perform two operations with it:

  • reduction of part of a file from one position to another
  • merge another file with an existing one

How can I implement these two operations in C #?

+5
source share
2 answers

I would look into the c-documentation for libogg and figure out how to do this with c. And then write almost the same code in C # using a wrapper over libogg.

I created a low-level wrapper over libogg and libvorbis using the interop helper: https://github.com/CodesInChaos/Xiph/blob/master/LowLevel.cs

, , , .

, , , , .

, API , . , granulepos .

StreamID - , ogg. , , , .

, granulepos - , , , vorbis. , .

+5

libzplay http://libzplay.sourceforge.net/ , :

  • OpenFile
  • SetWaveOutFile ( .ogg, )
  • StartPlayback
  • StopPlayback ( )

, #.
, . , , .:)

+5

All Articles