Inheritance: IDisposable
Esempio n. 1
0
 /**
  * Ustawia poziom g³oœnoœci muzyki w tle na poziom z parametru
 */
 //public void SetVolume(float m_Value)
 //{
 //    AL.Source(m_Source, ALSourcef.Gain, m_Value);
 //}
 /**
  * Ustawia wysokoœæ d¿wiêków muzyki w tle na poziom z parametru
  * (spowalnia/przyspiesza odtwarzanie)
 */
 //public void SetPitch(float m_Value)
 //{
 //    AL.Source(m_Source, ALSourcef.Pitch, m_Value);
 //}
 /**
  * Ustawia œcie¿kê do pliku, który mo¿e zostaæ nastêpnie odtworzony
 */
 public bool SetCurrentFile(OggFile NewFile1)
 {
     if (!((m_PlayerState == OggPlayerStatus.Stopped) || (m_PlayerState == OggPlayerStatus.Waiting))) { return false; }
     m_CurrentFile = NewFile1;
     StateChange(OggPlayerStatus.Stopped, OggPlayerStateChanger.UserRequest);
     return true;
 }
Esempio n. 2
0
 public void Dispose()
 {
     this.Stop();
     AL.DeleteBuffers(m_Buffers);
     DestroySource();
     if (m_CurrentFile != null) { m_CurrentFile.Dispose(); m_CurrentFile = null; }
 }