#include <AudioFormat.h>
Public Types | |
| enum | Packing { INTERLACED } |
| enum | SampleType { UNSIGNED8, SIGNED8, UNSIGNED16, SIGNED16, FLOAT32 } |
Public Methods | |
| AudioFormat (SampleType dt=FLOAT32, int chan=1, int sampRate=44100) | |
| default constructor. More... | |
| void | copy (const AudioFormat &af) |
| copy one descriptor to another result: sets this descriptor to af. More... | |
| AudioFormat (const AudioFormat &af) | |
| copy constructor. More... | |
| const AudioFormat& | operator= (const AudioFormat &af) |
| equal operator. More... | |
| bool | operator== (const AudioFormat &af) const |
| equal operator. More... | |
| bool | operator!= (const AudioFormat &af) const |
| not equal operator. More... | |
| int | sampsize () const |
| sample size in bytes. More... | |
Public Attributes | |
| int | samplingRateHz |
| sampling rate in herz (usually a value like 44100, 22050, 11025, etc.). More... | |
| int | channels |
| number of channels in the audio data until there is an interlaced flag, the data will always be interlaced when channels > 1. More... | |
| SampleType | datatype |
| the datatype of each sample see the enum values listed this AudioFormat class for available types. More... | |
Definition at line 227 of file AudioFormat.h.
|
|
Definition at line 230 of file AudioFormat.h. |
|
|
Definition at line 235 of file AudioFormat.h. |
|
|
default constructor.
Definition at line 243 of file AudioFormat.h. |
|
|
copy constructor.
Definition at line 260 of file AudioFormat.h. |
|
|
copy one descriptor to another result: sets this descriptor to af.
Definition at line 252 of file AudioFormat.h. Referenced by AudioFormat(), and operator=().
|
|
|
equal operator.
Definition at line 266 of file AudioFormat.h. |
|
|
equal operator.
Definition at line 273 of file AudioFormat.h. Referenced by operator!=().
|
|
|
not equal operator.
Definition at line 285 of file AudioFormat.h. |
|
|
sample size in bytes.
Definition at line 291 of file AudioFormat.h. Referenced by syn::WavAudioIStream::numsamps(), syn::WavAudioIStream::read(), syn::WavAudioIStream::seek(), and syn::RawAudioOStream::write().
|
|
|
sampling rate in herz (usually a value like 44100, 22050, 11025, etc.).
Definition at line 310 of file AudioFormat.h. |
|
|
number of channels in the audio data until there is an interlaced flag, the data will always be interlaced when channels > 1.
Definition at line 316 of file AudioFormat.h. |
|
|
the datatype of each sample see the enum values listed this AudioFormat class for available types.
Definition at line 321 of file AudioFormat.h. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001