Example #1
0
 //New
 public CDGFile(string cdgFileName)
 {
     m_pStream = new CdgFileIoStream();
     m_pStream.open(cdgFileName);
     m_pSurface = new ISurface();
     if (m_pStream != null && m_pSurface != null)
     {
         this.reset();
         m_duration = ((m_pStream.getsize() / CDG_PACKET_SIZE) * 1000) / 300;
     }
 }
Example #2
0
 // IDisposable
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposedValue)
     {
         if (disposing)
         {
             m_pStream.close();
         }
         m_pStream  = null;
         m_pSurface = null;
     }
     this.disposedValue = true;
 }