Exemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            // Free the mod handle.
            LibModPlugNative.UnloadMod(modFileHandle);

            base.Dispose(disposing);
        }
Exemplo n.º 2
0
        public LibModPlugReader(string fileName)
        {
            // Load the module file and get the handle to it.
            modFileHandle = LibModPlugNative.LoadFile(fileName);

            // Make the new wave format.
            waveFormat = new WaveFormat(44100, 16, 2);
        }
Exemplo n.º 3
0
 public override int Read(byte[] buffer, int offset, int count)
 {
     // Read the samples into the buffer. Returns number of bytes read.
     return(LibModPlugNative.ModPlug_Read(modFileHandle, buffer, count));
 }