Ejemplo n.º 1
0
  /**
   * Monitors the source data line playback state and broadcasts audio events to the registered
   * listener as the state changes
   */
  @Override
  public void update(LineEvent event) {
    LineEvent.Type type = event.getType();

    if (type == LineEvent.Type.START) {
      mAudioEventBroadcaster.broadcast(mAudioStartEvent);
    } else if (type == LineEvent.Type.STOP) {
      mAudioEventBroadcaster.broadcast(mAudioStopEvent);
    }
  }
Ejemplo n.º 2
0
 /** Broadcasts an audio event to the registered listener */
 private void broadcast(AudioEvent audioEvent) {
   mAudioEventBroadcaster.broadcast(audioEvent);
 }
Ejemplo n.º 3
0
 /** Broadcasts a call event to any registered listeners */
 protected void broadcast(CallEvent event) {
   mCallEventBroadcaster.broadcast(event);
 }