private void StopOperation(INotificationReceiver nRec) { nRec.Stop(); if (UseNotifications) { nMan.ReleaseAudioResources(); } }
void stopOperation(INotificationReceiver nRec) { nRec.Stop(); if (useNotifications) { nMan.ReleaseAudioResources(); status.Text = "Released"; } }
public void OnAudioFocusChange(AudioFocus focusChange) { switch (focusChange) { // We will take any flavor of AudioFocusgain that the system gives us and use it. case AudioFocus.GainTransient: case AudioFocus.GainTransientMayDuck: case AudioFocus.Gain: parent.StartAsync(); SetStatus("Granted"); break; // If we get any notificationthat removes focus - just terminate what we were doing. case AudioFocus.LossTransientCanDuck: case AudioFocus.LossTransient: case AudioFocus.Loss: parent.Stop(); SetStatus("Removed"); break; default: break; } }
void stopOperation (INotificationReceiver nRec) { nRec.Stop (); if (useNotifications) { nMan.ReleaseAudioResources (); status.Text = "Released"; } }
void stopOperation(INotificationReceiver nRec) { nRec.Stop(); }
void StopOperation(INotificationReceiver nRec) { nRec.Stop(); //if (useNotifications) //{ // nMan.ReleaseAudioResources(); // status.Text = "Released"; //} }