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.
8 #ifndef _OPENSOUNDDEVICEMIXER_H
9 #define _OPENSOUNDDEVICEMIXER_H
11 #include "OpenSoundDevice.h"
13 class OpenSoundDeviceMixer
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
; };
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);
41 status_t fInitCheckStatus
;
42 oss_mixerinfo fMixerInfo
;