The ISampleOutStream interface is return by the ISampleStream::Open call which allows to write into a corresponding writers queue of the opened ISampleStream instance.
More...
The ISampleOutStream interface is return by the ISampleStream::Open call which allows to write into a corresponding writers queue of the opened ISampleStream instance.
For common understanding: ONE ISampleOutStream == ONE writer queue. (but depends on the ISampleStream implementation). The default implementation provided (cSampleStream) will open one writers queue per ISampleOutStream.
- See also
- ISampleStream.
Definition at line 28 of file sampleoutstream_intf.h.
◆ Flush()
Flushes the writers queue within the ISampleStream.
This call is necessary to end all transmit call made by Write ! Only after this call the written ISample and const IStreamType will forwarded to the ISampleStreamReader.
- See also
- ISampleStream for some more information.
- Warning
- If no Flush is called the queue will grow until a Flush call is obtained or (depending on the ISampleStream implementation and mode) the queue will drop content!
- Returns
- Standard Result Code.
◆ GetMode()
◆ SetStreamError()
Forward an error to the corresponding stream.
- Parameters
-
oError | [in] The error passed to the queue and the SampleStream |
- Returns
- Standard Result Code.
Referenced by adtf::streaming::ant::operator<<().
◆ Write() [1/2]
Write a sample refernce to a writers queue of the ISampleStream.
- Parameters
-
[in] | pSample | the sample to write. |
- Returns
- Standard Result Code
- Return values
-
ERR_DEVICE_IN_USE | The Sample were not written to queue |
Referenced by adtf::streaming::ant::operator<<().
◆ Write() [2/2]
Write an stream type reference to the write queue of the ISampleStream.
- Parameters
-
[in] | pStreamType | the type to write. |
- Returns
- Standard Result Code
- Return values
-
ERR_DEVICE_IN_USE | The type is not written to queue |