It is accomplished ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user