2 * Copyright 2007-2008, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Stephan Aßmus <superstippi@gmx.de>
8 #ifndef AUDIO_TRACK_SUPPLIER_H
9 #define AUDIO_TRACK_SUPPLIER_H
11 #include <MediaDefs.h>
12 #include <MediaFormats.h>
14 #include "AudioReader.h"
16 class AudioTrackSupplier
: public AudioReader
{
19 virtual ~AudioTrackSupplier();
21 virtual const media_format
& Format() const = 0;
22 virtual status_t
GetEncodedFormat(media_format
* format
)
24 virtual status_t
GetCodecInfo(media_codec_info
* info
) const = 0;
25 virtual bigtime_t
Duration() const = 0;
27 virtual int32
TrackIndex() const = 0;
30 #endif // AUDIO_TRACK_SUPPLIER_H