//unsafe void UpdateMinDistance2()
        //{
        //   if( currentSound3DBuffer != null )
        //   {
        //      float value = (float)CurrentVirtualChannel.MinDistance;

        //      int hr = IDirectSound3DBuffer8.SetMinDistance( currentSound3DBuffer, value,
        //         DSound.DS3D_IMMEDIATE );
        //      if( Wrapper.FAILED( hr ) )
        //         DirectSoundWorld.Warning( "IDirectSound3DBuffer8.SetMinDistance", hr );
        //   }
        //}

        //protected override void UpdateMinDistance()
        //{
        //   DirectSoundWorld.criticalSection.Enter();
        //   if( currentSound != null )
        //      UpdateMinDistance2();
        //   DirectSoundWorld.criticalSection.Leave();
        //}

        unsafe void UpdatePitch2()
        {
            float pitch = (float)currentSound.waveFormat->nSamplesPerSec *
                          CurrentVirtualChannel.GetTotalPitch();

            int hr = IDirectSoundBuffer.SetFrequency(currentSoundBuffer, (uint)pitch);

            if (Wrapper.FAILED(hr))
            {
                DirectSoundWorld.Warning("IDirectSoundBuffer.SetFrequency", hr);
            }
        }
 void UpdatePitch2()
 {
     Al.alSourcef(alSource, Al.AL_PITCH, CurrentVirtualChannel.GetTotalPitch());
     OpenALSoundWorld.CheckError();
 }