class tsAudio : public SoNode

Feedback node rendering a signal to a audio stream

Inheritance:


Public Methods

tsAudio()
Constructor
virtual ~tsAudio()
Destructor

Public

New Fields
SoSFFloat IORateRatio
Field storing ratio of input and output sample rate

Protected Fields

Scrubber* pScrubber
The object we employ for reading and playing audio.
char pScrubberFileName[200]

Protected

Action behaviour:
virtual void GLRender(SoGLRenderAction *action)
Not yet implemented! This implements the GL rendering action
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Not yet implemented! Computes the duration in time.
virtual void callback(SoCallbackAction *action)
Does nothing yet!
Synchronizing staff:
float lastSpeed
stamp_t lastUST

Private Methods

SO_NODE_HEADER(tsAudio)
Inventor macro

Documentation

Feedback node rendering a signal to a audio stream. Until now, it only redners a tsData1RFloatFile node.

Takes time and speed to render for from tsTimeElement.
Takes signal data from a file in tsData1RFloatFile.

This node ceates and communicates an object of class 'Scubber'. This is a sample rate converter written by Tobias Kunze(tkunze@engr.sgi.com). It builds a separate thread for reading, converting and playing audio frames from an audio file. This code is used for simplicity.

Limitation:
- To have access to a file, currently only signal data from a tsData1RFloatFile can be played back. The nodes field 'filename' is directly read and used. This is not very systematically!
- Use SoComplexity as quality of Scrubber/RingSound .
- Give Audio Haardware back when not playing, so other applications (movieplayer) can use it.

SO_NODE_HEADER(tsAudio)
Inventor macro

New Fields

SoSFFloat IORateRatio
Field storing ratio of input and output sample rate. This can be used to scale use of processor power! Nearest possible output sample rate is taken.

tsAudio()
Constructor

virtual ~tsAudio()
Destructor

Action behaviour:

virtual void GLRender(SoGLRenderAction *action)
Not yet implemented! This implements the GL rendering action. Until a new tsAudioAction is implemented, the audio rednering is done here.

virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Not yet implemented! Computes the duration in time.

virtual void callback(SoCallbackAction *action)
Does nothing yet!

Synchronizing staff:

float lastSpeed

stamp_t lastUST

Scrubber* pScrubber
The object we employ for reading and playing audio.

char pScrubberFileName[200]


This class has no child classes.
Author:
(c) Andreas Lücke, Tobias Kunze
Version:
0.0
See Also:
tsData1RFloat

alphabetic index hierarchy of classes


This page is part of the tsKit's reference manual by Andreas Lücke.
Back to tsKit-Home

generated by doc++