vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / media-add-ons / mixer / MixerAddOn.h
blob494f09d9a6a5bfb65f602f411f1341c3b246f9a2
1 /*
2 * Copyright 2002 David Shipman,
3 * Copyright 2003-2007 Marcus Overhagen
4 * Copyright 2007 Haiku Inc. All rights reserved.
5 * Distributed under the terms of the MIT License.
6 */
7 #ifndef _AUDIOMIXER_ADDON_H
8 #define _AUDIOMIXER_ADDON_H
11 #include <MediaAddOn.h>
14 class AudioMixerAddon : public BMediaAddOn {
15 public:
16 virtual ~AudioMixerAddon();
17 explicit AudioMixerAddon(image_id image);
19 virtual status_t InitCheck(const char** _failureText);
20 virtual int32 CountFlavors();
21 virtual status_t GetFlavorAt(int32 n,
22 const flavor_info** _info);
23 virtual BMediaNode * InstantiateNodeFor(const flavor_info* info,
24 BMessage* config, status_t* _error);
25 virtual status_t GetConfigurationFor(BMediaNode* node,
26 BMessage* toMmessage);
28 virtual bool WantsAutoStart();
29 virtual status_t AutoStart(int index, BMediaNode** _node,
30 int32* _internalID, bool* _hasMore);
32 private:
33 media_format* fFormat;
34 flavor_info* fInfo;
37 #endif // _AUDIOMIXER_ADDON_H