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