public interface SampleProducer extends SampleProcessor
A sample producer is able to produce sample on different channels.
A sample producer can produce samples of different metadata for reach channel/
The following production sequence must be observed:
setProducedMetadata()for each produced channel
produce()for each sample to produce for every channel
|Modifier and Type||Method and Description|
Produce a single sample on the specified channel
Set the metadata associated with the specified channel
Start producing samples, must be invoked before any call to
Stop producing samples, no
void setProducedMetadata(SampleMetadata metadata, int channel)
metadata- The metadata to be associated to the specified channel
channel- The channel whoses metadata are being associated with
void produce(Sample s, int channel)
s- The sample produced
channel- The channel on which is produced the sample
produce()call should occur after this service has been called.
Copyright © 1998-2020 Apache Software Foundation. All Rights Reserved.