HosrDiretta
Loading...
Searching...
No Matches
DIRETTA::Stream Class Reference

Stream class for managing audio data streams in Diretta.(Sync) More...

#include <Stream.hpp>

Inheritance diagram for DIRETTA::Stream:
_diretta_stream

Public Member Functions

 Stream ()
 Default constructor initializing an empty Stream.
 
 Stream (Stream &&)
 Move constructor.
 
 ~Stream ()
 Destructor.
 
Streamoperator= (Stream &&)
 Move assignment operator.
 
void swap (Stream &)
 Swap Data.
 
void move (Stream &)
 Move Data.
 
void move (ACQUA::Buffer &)
 Move Data.
 
void clear ()
 Clear the stream data.
 
void resize (std::size_t)
 Resize the stream data buffer.
 
void resize (std::size_t, std::uint8_t)
 Resize the stream data buffer and fill with a specific byte value.
 
bool resize_noremap (std::size_t si)
 Change the length without altering the actual memory size. if the size is zero, free the memory.
 
bool resize_noremap (std::size_t si, std::uint8_t)
 Change the length without altering the actual memory size. if the size is zero, free the memory.
 
bool resize ()
 Adjust the actual memory size to match the length.
 
void fill (std::uint8_t)
 Fill the stream data buffer with a specific byte value.
 
void fs_resize (FormatConfigure, int fs, bool fl)
 Resize the stream data buffer.
 
bool fs_resize_noremap (FormatConfigure, int fs, bool fl)
 Change the length without altering the actual memory size. if the size is zero, free the memory.
 
std::size_t size () const
 Get the size of the stream data buffer.
 
bool empty () const
 Get is empty.
 
int frames (FormatConfigure)
 Get framse size.
 
std::uint8_t * get ()
 Get a pointer to the stream data buffer (non-const version).
 
const std::uint8_t * get () const
 Get a pointer to the stream data buffer (const version).
 
std::uint8_t * get_8 ()
 Get a pointer to the stream data buffer as 8-bit unsigned integers (non-const version).
 
const std::uint8_t * get_8 () const
 Get a pointer to the stream data buffer as 8-bit unsigned integers (const version).
 
std::uint16_t * get_16 ()
 Get a pointer to the stream data buffer as 16-bit unsigned integers (non-const version).
 
const std::uint16_t * get_16 () const
 Get a pointer to the stream data buffer as 16-bit unsigned integers (const version).
 
std::uint32_t * get_32 ()
 Get a pointer to the stream data buffer as 32-bit unsigned integers (non-const version).
 
const std::uint32_t * get_32 () const
 Get a pointer to the stream data buffer as 32-bit unsigned integers (const version).
 
std::uint64_t * get_64 ()
 Get a pointer to the stream data buffer as 64-bit unsigned integers (non-const version).
 
const std::uint64_t * get_64 () const
 Get a pointer to the stream data buffer as 64-bit unsigned integers (const version).
 
Streamoperator= (const Stream &)=delete
 COPY.
 
 Stream (const Stream &)=delete
 
Streamoperator+= (const Stream &buf)
 APPEND.
 

Additional Inherited Members

- Public Attributes inherited from _diretta_stream
union { 
 
   long long   _P 
 
   void *   P 
 
Data 
 Data buffer pointer.
 
unsigned long long Size
 Size of the data buffer in bytes.
 

Detailed Description

Stream class for managing audio data streams in Diretta.(Sync)

Member Function Documentation

◆ fs_resize()

void DIRETTA::Stream::fs_resize ( FormatConfigure ,
int fs,
bool fl )

Resize the stream data buffer.

Parameters
fsframesize
fltrue fill mute

◆ fs_resize_noremap()

bool DIRETTA::Stream::fs_resize_noremap ( FormatConfigure ,
int fs,
bool fl )

Change the length without altering the actual memory size. if the size is zero, free the memory.

Parameters
fsframesize
fltrue fill mute
Returns
true when the size has been changed

◆ resize()

bool DIRETTA::Stream::resize ( )

Adjust the actual memory size to match the length.

Returns
true when the size has been changed

◆ resize_noremap() [1/2]

bool DIRETTA::Stream::resize_noremap ( std::size_t si)

Change the length without altering the actual memory size. if the size is zero, free the memory.

Parameters
siSpecified size
Returns
true when the size has been changed

◆ resize_noremap() [2/2]

bool DIRETTA::Stream::resize_noremap ( std::size_t si,
std::uint8_t  )

Change the length without altering the actual memory size. if the size is zero, free the memory.

Parameters
siSpecified size
flThe byte value used to fill the container after resizing.
Returns
true when the size has been changed

The documentation for this class was generated from the following file: