AwReadWrite
Read Write Library for AnyWave
Public Member Functions | List of all members
AwBlock Class Reference

AwBlock defines a block of data. More...

#include <AwReadWriteLib.h>

Public Member Functions

float duration ()
 
void setDuration (float duration)
 
quint32 samples ()
 
void setSamples (quint32 samples)
 
void setStartPosition (float pos)
 
float start ()
 
int index ()
 
AwMarkerList & markers ()
 
qint32 markersCount ()
 
AwMarker * addMarker (AwMarker &marker)
 
AwMarker * addMarker (AwMarker *marker)
 
void setMarkers (const AwMarkerList &markers)
 

Detailed Description

AwBlock defines a block of data.

A block has a duration in seconds and a number of samples. A position in seconds defines where the block begins in the file.

Remarks
A block of data may contains markers.
See also
AwMarker AwMarkerList

Member Function Documentation

AwMarker * AwBlock::addMarker ( AwMarker &  marker)

Adds a marker to the block. The marker passed as parameter is duplicated before insertion.

AwMarker * AwBlock::addMarker ( AwMarker *  marker)

Adds a marker to the block. The marker passed as parameter is duplicated before insertion.

float AwBlock::duration ( )
inline

Gets the total duration in seconds.

int AwBlock::index ( )
inline

Returns the ID of the block.

AwMarkerList& AwBlock::markers ( )
inline

Returns the markers present in the block. The list can be empty if no markers are present.

qint32 AwBlock::markersCount ( )
inline

Returns the number of markers present in the block.

quint32 AwBlock::samples ( )
inline

Returns the number of samples for a channel.

void AwBlock::setDuration ( float  duration)
inline

Sets the duration in seconds.

void AwBlock::setMarkers ( const AwMarkerList &  markers)
inline

Adds a complete list of markers to the block.

void AwBlock::setSamples ( quint32  samples)
inline

Sets the number of samples by channels.

void AwBlock::setStartPosition ( float  pos)
inline

Defines the offset position of the block in the current data file.

float AwBlock::start ( )
inline

Returns the position from the beginning of file.


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