Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

GapeFileReader Class Reference

This class reads in sound files. More...

#include <gapefilereader.h>

Inheritance diagram for GapeFileReader::

GapeUnit List of all members.

Public Slots

virtual void receiveTick (const GapeFloat *values, int numValues)
 Filereaders emit the next sample in their file (mixed with an incoming sample if they are sent a non NULL value). More...


Public Methods

 GapeFileReader (const QString &filename, int mode=GapeConsts::LOOPING)
 The constructor. More...

 GapeFileReader (GapeController *c, const QString &filename, int mode=GapeConsts::LOOPING)
 The constructor. More...

 ~GapeFileReader ()

Detailed Description

This class reads in sound files.

It can currently handle *.wav, *.aif, *.aiff, *.snd files, and *.raw files.

Author:
Dave Chisholm
Since:
Beta 1.0
Version:
Last Modified Beta 1.0

Definition at line 17 of file gapefilereader.h.


Constructor & Destructor Documentation

GapeFileReader::GapeFileReader ( const QString & filename,
int mode = GapeConsts::LOOPING )
 

The constructor.

Parameters:
filename   The name of the file.
mode   The playback mode - should be either GapeConsts::LOOPING or GapeConsts::ONEPLAY. Defaults to looping.

Definition at line 10 of file gapefilereader.cpp.

Referenced by GapeFileReader().

GapeFileReader::GapeFileReader ( GapeController * c,
const QString & filename,
int mode = GapeConsts::LOOPING )
 

The constructor.

Parameters:
c   An optional controller.
filename   The name of the file.
The   playback mode - should be either GapeConsts::LOOPING or GapeConsts::ONEPLAY

Definition at line 64 of file gapefilereader.cpp.


Member Function Documentation

void GapeFileReader::receiveTick ( const GapeFloat * values,
int numValues ) [virtual, slot]
 

Filereaders emit the next sample in their file (mixed with an incoming sample if they are sent a non NULL value).

This will emit either the number of channels of the incoming sample, or the number of channels in the file, whichever is larger.

Parameters:
values   pointer to samples data being sent to the function
numValues   number of floating point values pointed to by "values" (ie number of channels of audio)

Reimplemented from GapeUnit.

Definition at line 74 of file gapefilereader.cpp.


The documentation for this class was generated from the following files:
Generated at Thu Jun 21 13:28:51 2001 for GAPE by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001