source: qutecom-coip/libs/sound/src/win32/Win32AudioDeviceId.h @ 126:e699782dd54b

Last change on this file since 126:e699782dd54b was 126:e699782dd54b, checked in by laurent, 3 years ago

update copyright

File size: 2.2 KB
RevLine 
[0]1/*
[123]2 * QuteCom, a voice over Internet phone
[126]3 * Copyright (C) 2010 Mbdsys
[0]4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 */
19
20#ifndef OWWIN32AUDIODEVICEID_H
21#define OWWIN32AUDIODEVICEID_H
22
23#include <util/NonCopyable.h>
24
25#include <string>
26
27/**
28 * Converts a audio device name to a device id using the Win32 API.
29 *
30 * @author Tanguy Krotoff
31 */
32class Win32AudioDeviceId : NonCopyable {
33public:
34
35        /**
36         * Gets the wave out audio device id given its name.
37         *
38         * @param deviceName name of the wave out audio device (sound card)
39         * @return the device id corresponding to the audio device, or 0 (the default one)
40         *         or -1 if no audio device (sound card) are present on the system
41         */
42        static int getWaveOutDeviceId(const std::string & deviceName);
43
44        /**
45         * Gets the wave in audio device id given its name.
46         *
47         * @param deviceName name of the wave in audio device (sound card)
48         * @return the device id corresponding to the audio device, or 0 (the default one)
49         *         or -1 if no audio device (sound card) are present on the system
50         */
51        static int getWaveInDeviceId(const std::string & deviceName);
52
53        /**
54         * Gets the mixer audio device id given its name.
55         *
56         * @param mixerName name of the mixer audio device, can be a sound card, depends on the platform
57         * @return the device id corresponding to the audio device, or 0 (the default one)
58         *         or -1 if no audio device (sound card) are present on the system
59         */
60        static int getMixerDeviceId(const std::string & mixerName);
61};
62
63#endif  //OWWIN32AUDIODEVICEID_H
Note: See TracBrowser for help on using the repository browser.