vfs: check userland buffers before reading them.
[haiku.git] / src / apps / mediaplayer / supplier / AudioTrackSupplier.h
blob236648fb20e41824b3cc5685f803f9d77eed0651
1 /*
2 * Copyright 2007-2008, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
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 {
17 public:
18 AudioTrackSupplier();
19 virtual ~AudioTrackSupplier();
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;
27 virtual int32 TrackIndex() const = 0;
30 #endif // AUDIO_TRACK_SUPPLIER_H