AwBlock defines a block of data.
More...
#include <AwReadWriteLib.h>
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.
- See also
- AwMarker AwMarkerList
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.
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.
Returns the position from the beginning of file.
The documentation for this class was generated from the following files: