2 * Copyright (c) 2002, Jerome Duval (jerome.duval@free.fr)
3 * Distributed under the terms of the MIT License.
5 #ifndef MULTI_AUDIO_ADDON_H
6 #define MULTI_AUDIO_ADDON_H
10 #include <MediaAddOn.h>
16 class MultiAudioAddOn
: public BMediaAddOn
{
18 MultiAudioAddOn(image_id image
);
19 virtual ~MultiAudioAddOn();
21 virtual status_t
InitCheck(const char** _failureText
);
22 virtual int32
CountFlavors();
23 virtual status_t
GetFlavorAt(int32 i
, const flavor_info
** _info
);
24 virtual BMediaNode
* InstantiateNodeFor(const flavor_info
* info
,
25 BMessage
* config
, status_t
* _error
);
26 virtual status_t
GetConfigurationFor(BMediaNode
* node
,
28 virtual bool WantsAutoStart();
29 virtual status_t
AutoStart(int count
, BMediaNode
** _node
,
30 int32
* _internalID
, bool* _hasMore
);
33 status_t
_RecursiveScan(const char* path
, BEntry
* rootEntry
= NULL
,
43 // loaded from settings directory
46 extern "C" BMediaAddOn
* make_media_addon(image_id you
);
48 #endif // MULTI_AUDIO_ADDON_H