/** Broadcasts audio metadata to the registered listener */ private void broadcast(AudioMetadata metadata) { if (mAudioMetadataListener != null) { mAudioMetadataListener.receive(metadata); } }
/** Broadcasts metadata to a registered listener */ protected void broadcast(Metadata metadata) { if (mMetadataListener != null) { mMetadataListener.receive(metadata); } }
/** Broadcasts the channel state attribute change event to all registered listeners */ protected void broadcast(ChangedAttribute attribute) { if (mChangedAttributeListener != null) { mChangedAttributeListener.receive(attribute); } }
/** Broadcasts a channel state event to any registered listeners */ protected void broadcast(DecoderStateEvent event) { if (mDecoderStateListener != null) { mDecoderStateListener.receive(event); } }
@Override public void receive(float sample) { if (mListener != null) { mListener.receive(sample >= 0); } }