Noatun API Documentation

conversion.h

Go to the documentation of this file.
00001 #ifndef NOATUN_CONVERT_H
00002 #define NOATUN_CONVERT_H
00003 
00007 namespace Conversion
00008 {
00012 void convertMono8ToFloat(unsigned long samples, unsigned char *from, float *to);
00016 void interpolateMono8ToFloat(unsigned long samples, double start, double speed,
00017                              unsigned char *from, float *to);
00018 
00022 void convertMono16leToFloat(unsigned long samples, unsigned char *from, float *to);
00023 
00027 void interpolateMono16leToFloat(unsigned long samples, double startpos, double speed,
00028                                 unsigned char *from, float *to);
00029 
00033 void convertStereoI8To2Float(unsigned long samples, unsigned char *from,
00034                              float *left, float *right);
00035 
00040 void interpolateStereoI8To2Float(unsigned long samples, double startpos, double speed,
00041                                  unsigned char *from, float *left, float *right);
00045 void convertStereoI16leTo2Float(unsigned long samples, unsigned char *from, float *left,
00046                                 float *right);
00047 
00052 void interpolateStereoI16leTo2Float(unsigned long samples, double startpos, double speed,
00053                                     unsigned char *from, float *left, float *right);
00054 
00058 void interpolateMonoFloatToFloat(unsigned long samples, double startpos, double speed,
00059                                  float *from, float *to);
00060 
00064 void convertStereoIFloatTo2Float(unsigned long samples, float *from, float *left,
00065                                  float *right);
00066 
00070 void interpolateStereoIFloatTo2Float(unsigned long samples, double startpos,
00071                                      double speed, float *from, float *left,
00072                                      float *right);
00073 
00077 void convertMonoFloatTo16le(unsigned long samples, float *from, unsigned char *to);
00078 
00082 void convertStereo2FloatToI16le(unsigned long samples, float *left, float *right,
00083                                 unsigned char *to);
00084 
00088 void convertMonoFloatTo8(unsigned long samples, float *from, unsigned char *to);
00089 
00093 void convertStereo2FloatToI8(unsigned long samples,     float *left, float *right,
00094                              unsigned char *to);
00095 
00100 inline void toLittleEndian(unsigned long len, char *buffer);
00101 
00106 inline void toBigEndian(unsigned long len, char *buffer);
00107 
00112 void swapEndian(unsigned long length, char *buffer);
00113 
00114 
00115 }
00116 
00117 
00118 #endif
00119 
KDE Logo
This file is part of the documentation for Noatun 2.6.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 22 00:20:36 2004 by doxygen 1.3.8-20040913 written by Dimitri van Heesch, © 1997-2003