Files
haiku-beta6/headers/private/media/SamplingrateConverter.h
T

30 lines
860 B
C++
Raw Normal View History

2002-07-09 12:24:59 +00:00
#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