Debian Codegraph @

Xpjproject/pjmedia/include/pjmedia-audiodev/alsa.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2024 Teluu Inc. (http://www.teluu.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 #ifndef __PJMEDIA_AUDIODEV_ALSA_H__
19 #define __PJMEDIA_AUDIODEV_ALSA_H__
20
21 /**
22 * @file pjmedia-audiodev/alsa.h
23 * @brief ALSA Audio Device.
24 */
25
26 #include <pjmedia/audiodev.h>
27
28 /**
29 * @defgroup PJMED_AUDDEV_ALSA ALSA Audio Device
30 * @ingroup audio_device_api
31 * @brief ALSA specific Audio Device API
32 * @{
33 *
34 * This section describes specific functions for ALSA audio devices.
35 * Application can use @ref PJMEDIA_AUDIODEV_API API to manipulate
36 * the ALSA audio device.
37 *
38 */
39
40 PJ_BEGIN_DECL
41
42
43 /**
44 * Manually set ALSA devices. This function will remove all devices registered
45 * in the factory and register the specified devices.
46 *
47 * Note that by default the library will automatically try to enumerate and
48 * register the ALSA devices during factory initialization. Application can
49 * override the registered devices using this function.
50 *
51 * If application wish to let the library do the device enumeration again,
52 * just call this function with zero device, i.e: \a count is set to zero.
53 *
54 * @param af The ALSA factory, or NULL to use the default.
55 * @param count The number of ALSA device names.
56 * @param names The ALSA device names to be registered.
57 *
58 * @return PJ_SUCCESS on success.
59 */
60 PJ_DECL(pj_status_t) pjmedia_aud_alsa_set_devices(pjmedia_aud_dev_factory *af,
61 unsigned count,
62 const char* names[]);
63
64
65
66 PJ_END_DECL
67
68
69 /**
70 * @}
71 */
72
73 #endif /* __PJMEDIA_AUDIODEV_ALSA_H__ */
74