3rdparty/licenseReport: Add seperate LGPL checks
[haiku.git] / src / add-ons / media / media-add-ons / opensound / OpenSoundDeviceMixer.h
blob039c747481043df88b8872d4df91ab785e8bd5d7
1 /*
2 * OpenSound media addon for BeOS and Haiku
4 * Copyright (c) 2007, François Revol (revol@free.fr)
5 * Distributed under the terms of the MIT License.
6 */
8 #ifndef _OPENSOUNDDEVICEMIXER_H
9 #define _OPENSOUNDDEVICEMIXER_H
11 #include "OpenSoundDevice.h"
13 class OpenSoundDeviceMixer
15 public:
16 OpenSoundDeviceMixer(oss_mixerinfo *info);
17 virtual ~OpenSoundDeviceMixer(void);
19 virtual status_t InitCheck(void) const;
20 int FD() const { return fFD; };
21 const oss_mixerinfo *Info() const { return &fMixerInfo; };
23 int CountExtInfos();
24 status_t GetExtInfo(int index, oss_mixext *info);
25 status_t GetMixerValue(oss_mixer_value *value);
26 status_t SetMixerValue(oss_mixer_value *value);
27 status_t GetEnumInfo(int index, oss_mixer_enuminfo *info);
32 int CachedUpdateCounter(int index);
33 void SetCachedUpdateCounter(int index, int counter);
36 status_t Get(oss_ *info);
37 status_t Get(oss_ *info);
40 private:
41 status_t fInitCheckStatus;
42 oss_mixerinfo fMixerInfo;
43 int fFD;
46 #endif