xref: /haiku/src/apps/mediaplayer/supplier/AudioTrackSupplier.h (revision b55a57da7173b9af0432bd3e148d03f06161d036)
1 /*
2  * Copyright 2007-2008, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 #ifndef AUDIO_TRACK_SUPPLIER_H
9 #define AUDIO_TRACK_SUPPLIER_H
10 
11 #include <MediaDefs.h>
12 #include <MediaFormats.h>
13 
14 #include "AudioReader.h"
15 
16 class AudioTrackSupplier : public AudioReader {
17  public:
18 								AudioTrackSupplier();
19 	virtual						~AudioTrackSupplier();
20 
21 	virtual	const media_format&	Format() const = 0;
22 	virtual	status_t			GetEncodedFormat(media_format* format)
23 									const = 0;
24 	virtual	status_t			GetCodecInfo(media_codec_info* info) const = 0;
25 	virtual	bigtime_t			Duration() const = 0;
26 
27 	virtual	int32				TrackIndex() const = 0;
28 };
29 
30 #endif // AUDIO_TRACK_SUPPLIER_H
31