29 #ifndef __H3DSOUNDSTREAMNODE_H__
30 #define __H3DSOUNDSTREAMNODE_H__
52 virtual unsigned int read(
char *buffer,
unsigned int size ) = 0;
This abstract node type is used to derive node types that can stream PCM sound data.
Definition: H3DSoundStreamNode.h:42
virtual unsigned int read(char *buffer, unsigned int size)=0
Read PCM data from the stream into the buffer.
virtual unsigned int samplesPerSecond()=0
Returns the number of samples per second for the current PCM data stream.
virtual H3DTime duration()=0
The duration in seconds for the the PCM data.
virtual unsigned int bitsPerSample()=0
Returns the number of bits for a sample.
virtual void reset()=0
Reset the stream to the beginning of the sound stream.
virtual unsigned int totalDataSize()=0
Returns the total size of the PCM data of the current stream.
virtual unsigned int nrChannels()=0
Returns the number of channels per second for the current PCM data stream.
Node is the base class for all classes that can be part of the H3D scene-graph.
Definition: Node.h:46
H3D API namespace.
Definition: Anchor.h:38