Stop playing audio in a live call

@param string $liveCallUuid
@throws PlivoValidationException
492703
public function stopPlaying($liveCallUuid)
    {
        if (empty($liveCallUuid)) {
            throw new PlivoValidationException(
                "Which call to stop playing in? No callUuid given");
        }

        $this->client->delete(
            $this->uri . $liveCallUuid . '/Play/',
            []
        );
    }
1290850
public function killCallback($callback)
    {
        $key = $this->getCallbackKey($callback);

        self::$_baseRealCallbacks[$key] = false;

        return $this;
    }
877298
public static function quietCall( callable $callback /*, parameters... */ ) {
		$args = array_slice( func_get_args(), 1 );
		self::suppressWarnings();
		$rv = call_user_func_array( $callback, $args );
		self::restoreWarnings();
		return $rv;
	}
952122
public function stop()
    {
        if (!empty($this->channel)) {
            echo 'Stopping consumer by removing callbacks.' . PHP_EOL;
            $this->channel->callbacks = null;
            return true;
        } else {
            return false;
        }
    }
572322
public void stop()
    {
        if (mAudioListener != null)
        {
            Log.d("SOUND", "stopping audio source %d %s", getSourceId(), getSoundFile());
            mAudioListener.getAudioEngine().stopSound(getSourceId());
        }
    }
1079450
public function stopAction()
  {
    $this->setNoRender();

    /* grab user parameters from $_REQUEST array */
    $sid = TeamSpeak3_Helper_Uri::getUserParam("id", 0);

    try
    {
      /* stop server */
      $this->ts3->serverStop($sid);

      /* save custom ok mesage */
      $this->setLastEvent("The virtual server (ID " . $sid . ") has been stopped.");
    }
    catch(Exception $e)
    {
      /* save catched error mesage */
      $this->setLastEvent($e->getMessage(), TRUE);
    }

    /* goto indexAction() */
    $this->redirect("server");
  }
1218830
public synchronized void stop () {
        if (isRunning()) {
            MetadataFinder.getInstance().removeTrackMetadataListener(metadataListener);
            WaveformFinder.getInstance().removeWaveformListener(waveformListener);
            BeatGridFinder.getInstance().removeBeatGridListener(beatGridListener);
            running.set(false);
            pendingUpdates.clear();
            queueHandler.interrupt();
            queueHandler = null;

            // Report the loss of our signatures, on the proper thread, outside our lock
            final Set<Integer> dyingSignatures = new HashSet<Integer>(signatures.keySet());
            signatures.clear();
            SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
                    for (Integer player : dyingSignatures) {
                        deliverSignatureUpdate(player, null);
                    }
                }
            });
        }
        deliverLifecycleAnnouncement(logger, false);
    }
160650
public void stop() {
        if(log.isInfoEnabled()) {
            log.info("Stopping Zabbix agent.");
        }

        if(enablePassive) {
        	if(log.isInfoEnabled()) {
        		log.info("Stopping passive listener.");
        	}

	        listenerThread.shutdown();
	        try {
	            listenerThread.join();

	        } catch(InterruptedException ie) {
	            //
	        }

	        if(log.isInfoEnabled()) {
	        	log.info("Passive listener stopped.");
	        }
        }

        if(enableActive) {
        	if(log.isInfoEnabled()) {
        		log.info("Stopping active agent.");
        	}

        	activeThread.shutdown();
        	try {
        		activeThread.join();

        	} catch(InterruptedException ie) {
        		//
        	}

        	if(log.isInfoEnabled()) {
        		log.info("Active agent stopped.");
        	}
        }

        if(log.isInfoEnabled()) {
            log.info("Zabbix agent stopped.");
        }
    }
1197609
@Override
  public void cancel(final Status reason) {
    checkNotNull(reason, "reason");
    boolean delegateToRealStream = true;
    ClientStreamListener listenerToClose = null;
    synchronized (this) {
      // If realStream != null, then either setStream() or cancel() has been called
      if (realStream == null) {
        realStream = NoopClientStream.INSTANCE;
        delegateToRealStream = false;

        // If listener == null, then start() will later call listener with 'error'
        listenerToClose = listener;
        error = reason;
      }
    }
    if (delegateToRealStream) {
      delayOrExecute(new Runnable() {
        @Override
        public void run() {
          realStream.cancel(reason);
        }
      });
    } else {
      if (listenerToClose != null) {
        listenerToClose.closed(reason, new Metadata());
      }
      drainPendingCalls();
    }
  }
448713
public function stop($resourceId, $optParams = array())
  {
    $params = array('resourceId' => $resourceId);
    $params = array_merge($params, $optParams);
    return $this->call('stop', array($params), "Google_Service_Surveys_SurveysStopResponse");
  }
215891
public function stopListening($event, $callback)
    {
        if (!isset($this->events[$event])) {
            return true;
        }

        $key = array_search($callback, $this->events[$event]);
        if ($key !== false) {
            unset($this->events[$event][$key]);
        }

        return true;
    }
1329995
@SuppressWarnings("WeakerAccess")
    public synchronized void stop() {
        if (isRunning()) {
            BeatFinder.getInstance().removeBeatListener(beatListener);
            VirtualCdj.getInstance().removeUpdateListener(updateListener);
            running.set(false);
            positions.clear();
            updates.clear();
            deliverLifecycleAnnouncement(logger, false);
        }
    }
124020
public synchronized void raInactive() {

		this.provider.removeSipListener(this);
		
		ListeningPoint[] listeningPoints = this.provider.getListeningPoints();
		
		for (int i = 0; i < listeningPoints.length; i++) {
			ListeningPoint lp = listeningPoints[i];
			for (int k = 0; k < 10; k++) {
				try {
					this.sipStack.deleteListeningPoint(lp);
					this.sipStack.deleteSipProvider(this.provider);
					break;
				} catch (ObjectInUseException ex) {
					tracer
							.severe(
									"Object in use -- retrying to delete listening point",
									ex);
					try {
						Thread.sleep(100);
					} catch (Exception e) {

					}
				}
			}
		}

		this.providerWrapper.raInactive();
		this.sipStack.stop();

		if (tracer.isFineEnabled()) {
			tracer.fine("Sip Resource Adaptor entity inactive.");
		}		
	}
45339
def stop_playback(self):
        """"""
        self._sink.flush()
        self._sink.stop()
        self._playing = False
1160358
@ObjectiveCName("toggleCallMuteWithCallId:")
    public void toggleCallMute(long callId) {
        if (modules.getCallsModule().getCall(callId).getIsAudioEnabled().get()) {
            modules.getCallsModule().muteCall(callId);
        } else {
            modules.getCallsModule().unmuteCall(callId);
        }
    }
893631
public function cancel($matchId, $optParams = array())
  {
    $params = array('matchId' => $matchId);
    $params = array_merge($params, $optParams);
    return $this->call('cancel', array($params));
  }
453765
public function removeCall(Call $call)
    {
        $newQueue = new \SplQueue();
        while (!$this->callQueue->isEmpty()) {
            $c = $this->callQueue->dequeue();

            if ($c === $call)
                continue;

            $newQueue->enqueue($c);
        }
        $this->callQueue = $newQueue;

        $registration = $call->getRegistration();
        if ($registration) {
            $registration->removeCall($call);
        }
    }