removed unused files, the mixer has it's own resampling code

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9815 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2004-11-06 22:07:09 +00:00
parent b5602a834c
commit aa09be21b3
7 changed files with 0 additions and 984 deletions
-32
View File
@@ -1,32 +0,0 @@
#ifndef _CHANNEL_MIXER_
#define _CHANNEL_MIXER_
/***********************************************************************
* AUTHOR: Marcus Overhagen
* FILE: ChannelMixer.h
* DESCR: Converts mono into stereo
* stereo into mono (this one isn't very good)
* (multiple channel support should be added in the future)
***********************************************************************/
namespace MediaKitPrivate {
class ChannelMixer
{
public:
static status_t
mix(void *dest, int dest_chan_count,
const void *source, int source_chan_count,
int framecount, uint32 format);
static status_t
mix_2_to_1(void *dest, const void *source, int framecount, uint32 format);
static status_t
mix_1_to_2(void *dest, const void *source, int framecount, uint32 format);
};
} //namespace MediaKitPrivate
#endif
-53
View File
@@ -1,53 +0,0 @@
#ifndef _SAMPLE_CONVERTER_
#define _SAMPLE_CONVERTER_
/***********************************************************************
* AUTHOR: Marcus Overhagen
* FILE: SampleConverter.h
* DESCR: Converts between different sample formats:
* media_raw_audio_format::B_AUDIO_FLOAT
* media_raw_audio_format::B_AUDIO_INT
* media_raw_audio_format::B_AUDIO_SHORT
* media_raw_audio_format::B_AUDIO_CHAR
* media_raw_audio_format::B_AUDIO_UCHAR
***********************************************************************/
namespace MediaKitPrivate {
class SampleConverter
{
public:
static status_t
convert(void *dest, uint32 dest_format,
const void *source, uint32 source_format,
int samplecount);
static void convert(uint8 *dest, const float *source, int samplecount);
static void convert(uint8 *dest, const int32 *source, int samplecount);
static void convert(uint8 *dest, const int16 *source, int samplecount);
static void convert(uint8 *dest, const int8 *source, int samplecount);
static void convert(int8 *dest, const float *source, int samplecount);
static void convert(int8 *dest, const int32 *source, int samplecount);
static void convert(int8 *dest, const int16 *source, int samplecount);
static void convert(int8 *dest, const uint8 *source, int samplecount);
static void convert(int16 *dest, const float *source, int samplecount);
static void convert(int16 *dest, const int32 *source, int samplecount);
static void convert(int16 *dest, const int8 *source, int samplecount);
static void convert(int16 *dest, const uint8 *source, int samplecount);
static void convert(int32 *dest, const float *source, int samplecount);
static void convert(int32 *dest, const int16 *source, int samplecount);
static void convert(int32 *dest, const int8 *source, int samplecount);
static void convert(int32 *dest, const uint8 *source, int samplecount);
static void convert(float *dest, const int32 *source, int samplecount);
static void convert(float *dest, const int16 *source, int samplecount);
static void convert(float *dest, const int8 *source, int samplecount);
static void convert(float *dest, const uint8 *source, int samplecount);
};
} //namespace MediaKitPrivate
#endif
@@ -1,29 +0,0 @@
#ifndef _SAMPLINGRATE_CONVERTER_
#define _SAMPLINGRATE_CONVERTER_
/***********************************************************************
* AUTHOR: Marcus Overhagen
* FILE: SamplingrateConverter.cpp
* DESCR: Converts between different sampling rates
* This is really bad code, as there are much better algorithms
* than the simple duplicating or dropping of samples.
* Also, the implementation isn't very nice.
* Feel free to send me better versions to [email protected]
***********************************************************************/
namespace MediaKitPrivate {
class SamplingrateConverter
{
public:
static status_t
convert(void *dest, int destframecount,
const void *src, int srcframecount,
uint32 format,
int channel_count);
};
} //namespace MediaKitPrivate
#endif