/// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     if (dolbyAudioProcessing != null)
     {
         this.ReleaseDolbySession();
         this.dolbyAudioProcessing.Dispose();
         this.dolbyAudioProcessing = null;
     }
 }
 /// <summary>
 /// Creates the dolby.
 /// </summary>
 public void StartDolbySession()
 {
     // We need the CreateDolby Method cause on application lifecycle the method Initialize of the Service is only called once.
     // so it is needed to
     if (dolbyAudioProcessing == null)
     {
         this.dolbyEventListener   = new DolbyEventListener();
         this.dolbyAudioProcessing = DolbyAudioProcessing.GetDolbyAudioProcessing(Application.Context, this.FromEnum(this.currentProfile), this.dolbyEventListener);
     }
 }
Beispiel #3
0
        public void InitAudio()
        {
            if (mDolbyAudioProcessing != null)
            {
                return;
            }

            mDolbyAudioProcessing = DolbyAudioProcessing.GetDolbyAudioProcessing(context, DolbyAudioProcessing.PROFILE.Music, this);

            if (mDolbyAudioProcessing == null)
            {
                return;
            }
        }
        void InitAudio()
        {
            if (mDolbyAudioProcessing != null)
            {
                return;
            }

            mDolbyAudioProcessing = DolbyAudioProcessing.GetDolbyAudioProcessing(this, DolbyAudioProcessing.PROFILE.Music, this);

            if (mDolbyAudioProcessing == null)
            {
                Toast.MakeText(this, "Dolby Audio Processing load failed", ToastLength.Short).Show();
                return;
            }
        }