xref: /haiku/src/apps/mediaplayer/media_node_framework/audio/AudioSupplier.cpp (revision 8dd3060da4f50b8de2830fd93216b186efec7c4f)
1 /*	Copyright 2000-2008, Ingo Weinhold <ingo_weinhold@gmx.de>,
2  *	All Rights Reserved. Distributed under the terms of the MIT license.
3  */
4 
5 
6 #include "AudioSupplier.h"
7 
8 #include "AudioProducer.h"
9 
10 
AudioSupplier()11 AudioSupplier::AudioSupplier()
12 {
13 }
14 
15 
~AudioSupplier()16 AudioSupplier::~AudioSupplier()
17 {
18 }
19 
20 
21 void
SetAudioProducer(AudioProducer * producer)22 AudioSupplier::SetAudioProducer(AudioProducer* producer)
23 {
24 	fAudioProducer = producer;
25 }
26 
27 
28 status_t
InitCheck() const29 AudioSupplier::InitCheck() const
30 {
31 	return fAudioProducer ? B_OK : B_NO_INIT;
32 }
33 
34