2 * Copyright 2008 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT licensce.
5 #ifndef AUDIO_CHANNEL_CONVERTER_H
6 #define AUDIO_CHANNEL_CONVERTER_H
9 /*! This AudioReader just converts the source channel count
10 into another one, e.g. 1 -> 2. Frame rate and sample format
15 #include "AudioReader.h"
18 class AudioChannelConverter
: public AudioReader
{
20 AudioChannelConverter(AudioReader
* source
,
21 const media_format
& format
);
22 virtual ~AudioChannelConverter();
24 virtual bigtime_t
InitialLatency() const;
25 virtual status_t
Read(void* buffer
, int64 pos
, int64 frames
);
27 virtual status_t
InitCheck() const;
29 AudioReader
* Source() const;
35 #endif // AUDIO_CHANNEL_CONVERTER_H