H3D::H3DSoundStreamNode Class Reference
[Abstract nodes.]

This abstract node type is used to derive node types that can stream PCM sound data. More...

#include <H3DSoundStreamNode.h>

Inheritance diagram for H3D::H3DSoundStreamNode:

Inheritance graph
List of all members.

Public Member Functions

virtual void reset ()=0
 Reset the stream to the beginning of the sound stream.
virtual unsigned int read (char *buffer, unsigned int size)=0
 Read PCM data from the stream into the buffer.
virtual unsigned int bitsPerSample ()=0
 Returns the number of bits for a sample.
virtual unsigned int samplesPerSecond ()=0
 Returns the number of samples per second for the current PCM data stream.
virtual unsigned int nrChannels ()=0
 Returns the number of channels per second for the current PCM data stream.
virtual unsigned int totalDataSize ()=0
 Returns the total size of the PCM data of the current stream.
virtual H3DTime duration ()=0
 The duration in seconds for the the PCM data.

Detailed Description

This abstract node type is used to derive node types that can stream PCM sound data.


Member Function Documentation

virtual unsigned int H3D::H3DSoundStreamNode::read char *  buffer,
unsigned int  size
[pure virtual]
 

Read PCM data from the stream into the buffer.

Parameters:
buffer A buffer to write data into.
size The number of bytes of data to read.
Returns:
The number of bytes written to the buffer.


Generated on Thu Aug 24 12:39:22 2006 for H3D API by  doxygen 1.4.5