1 /* Copyright 2000-2008, Ingo Weinhold <ingo_weinhold@gmx.de>,
2 * All Rights Reserved. Distributed under the terms of the MIT license.
4 #ifndef AUDIO_SUPPLIER_H
5 #define AUDIO_SUPPLIER_H
8 /*! This class is an interface used by the AudioProducer to retreive the
9 audio data to be played. */
12 #include <MediaDefs.h>
20 virtual ~AudioSupplier();
22 virtual void SetAudioProducer(AudioProducer
* producer
);
24 virtual status_t
InitCheck() const;
26 virtual bigtime_t
InitialLatency() const = 0;
28 virtual status_t
GetFrames(void* buffer
, int64 frameCount
,
30 bigtime_t endTime
) = 0;
32 virtual void SetFormat(const media_format
& format
) = 0;
35 AudioProducer
* fAudioProducer
;
39 #endif // AUDIO_SUPPLIER_H