Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

syn::audio_data_traits Class Template Reference

describes traits for an audio sample i.e. More...

#include <AudioFormat.h>

List of all members.

Static Public Methods

type min ()
type max ()
type bytes ()
int range ()
float rangef ()
type one_fourth_range ()
 returns a number useful in getting a scale factor dividing this with the one_fourth_range of another type will yield a scale useful to convert between datatypes... More...


Detailed Description

template<typename type> class syn::audio_data_traits

describes traits for an audio sample i.e.

smallest_possible_value = audio_data_traits<float>.min() number_of_bytes_in_sample = audio_data_traits<float>.bytes()

Definition at line 55 of file AudioFormat.h.


Member Function Documentation

template<typename type>
type syn::audio_data_traits<type>::min ( ) [static]
 

template<typename type>
type syn::audio_data_traits<type>::max ( ) [static]
 

template<typename type>
type syn::audio_data_traits<type>::bytes ( ) [static]
 

Referenced by syn::SampleBuffer::bytes().

template<typename type>
int syn::audio_data_traits<type>::range ( ) [static]
 

template<typename type>
float syn::audio_data_traits<type>::rangef ( ) [static]
 

template<typename type>
type syn::audio_data_traits<type>::one_fourth_range ( ) [static]
 

returns a number useful in getting a scale factor dividing this with the one_fourth_range of another type will yield a scale useful to convert between datatypes...

NOTE: this is 1/4. 1/2 doesn't always fit into the data type, because 1/2 the range can still be larger than max()


The documentation for this class was generated from the following file:
Generated at Mon Apr 15 09:27:52 2002 for subsynth by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001