btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / mediaplayer / media_node_framework / audio / AudioChannelConverter.h
blob99cbcda75eb0ee261aad4b92e13999c61f45fc01
1 /*
2 * Copyright 2008 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT licensce.
4 */
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
11 remain unchanged.
15 #include "AudioReader.h"
18 class AudioChannelConverter : public AudioReader {
19 public:
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;
31 protected:
32 AudioReader* fSource;
35 #endif // AUDIO_CHANNEL_CONVERTER_H