VirtualBox

source: vbox/trunk/src/VBox/Devices/Audio/DrvHostAudioAlsaStubsMangling.h@ 90778

Last change on this file since 90778 was 89471, checked in by vboxsync, 3 years ago

DrvHostAudioAlsa: Use snd_pcm_set_chmap to identify the channels we're outputting. bugref:9890

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1/* $Id: DrvHostAudioAlsaStubsMangling.h 89471 2021-06-02 20:53:43Z vboxsync $ */
2/** @file
3 * Mangle libasound symbols.
4 *
5 * This is necessary on hosts which don't support the -fvisibility gcc switch.
6 */
7
8/*
9 * Copyright (C) 2013-2020 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifndef VBOX_INCLUDED_SRC_Audio_DrvHostAudioAlsaStubsMangling_h
21#define VBOX_INCLUDED_SRC_Audio_DrvHostAudioAlsaStubsMangling_h
22#ifndef RT_WITHOUT_PRAGMA_ONCE
23# pragma once
24#endif
25
26#define ALSA_MANGLER(symbol) VBox_##symbol
27
28#define snd_lib_error_set_handler ALSA_MANGLER(snd_lib_error_set_handler)
29#define snd_strerror ALSA_MANGLER(snd_strerror)
30
31#define snd_device_name_hint ALSA_MANGLER(snd_device_name_hint)
32#define snd_device_name_get_hint ALSA_MANGLER(snd_device_name_get_hint)
33#define snd_device_name_free_hint ALSA_MANGLER(snd_device_name_free_hint)
34
35#define snd_pcm_avail_update ALSA_MANGLER(snd_pcm_avail_update)
36#define snd_pcm_close ALSA_MANGLER(snd_pcm_close)
37#define snd_pcm_avail_delay ALSA_MANGLER(snd_pcm_avail_delay)
38#define snd_pcm_delay ALSA_MANGLER(snd_pcm_delay)
39#define snd_pcm_drain ALSA_MANGLER(snd_pcm_drain)
40#define snd_pcm_drop ALSA_MANGLER(snd_pcm_drop)
41#define snd_pcm_nonblock ALSA_MANGLER(snd_pcm_nonblock)
42#define snd_pcm_open ALSA_MANGLER(snd_pcm_open)
43#define snd_pcm_prepare ALSA_MANGLER(snd_pcm_prepare)
44#define snd_pcm_readi ALSA_MANGLER(snd_pcm_readi)
45#define snd_pcm_resume ALSA_MANGLER(snd_pcm_resume)
46#define snd_pcm_set_chmap ALSA_MANGLER(snd_pcm_set_chmap)
47#define snd_pcm_start ALSA_MANGLER(snd_pcm_start)
48#define snd_pcm_state ALSA_MANGLER(snd_pcm_state)
49#define snd_pcm_state_name ALSA_MANGLER(snd_pcm_state_name)
50#define snd_pcm_writei ALSA_MANGLER(snd_pcm_writei)
51
52#define snd_pcm_hw_params ALSA_MANGLER(snd_pcm_hw_params)
53#define snd_pcm_hw_params_any ALSA_MANGLER(snd_pcm_hw_params_any)
54#define snd_pcm_hw_params_sizeof ALSA_MANGLER(snd_pcm_hw_params_sizeof)
55#define snd_pcm_hw_params_get_buffer_size ALSA_MANGLER(snd_pcm_hw_params_get_buffer_size)
56#define snd_pcm_hw_params_get_period_size_min ALSA_MANGLER(snd_pcm_hw_params_get_period_size_min)
57#define snd_pcm_hw_params_set_rate_near ALSA_MANGLER(snd_pcm_hw_params_set_rate_near)
58#define snd_pcm_hw_params_set_access ALSA_MANGLER(snd_pcm_hw_params_set_access)
59#define snd_pcm_hw_params_set_buffer_time_near ALSA_MANGLER(snd_pcm_hw_params_set_buffer_time_near)
60#define snd_pcm_hw_params_set_buffer_size_near ALSA_MANGLER(snd_pcm_hw_params_set_buffer_size_near)
61#define snd_pcm_hw_params_get_buffer_size_min ALSA_MANGLER(snd_pcm_hw_params_get_buffer_size_min)
62#define snd_pcm_hw_params_set_channels_near ALSA_MANGLER(snd_pcm_hw_params_set_channels_near)
63#define snd_pcm_hw_params_set_format ALSA_MANGLER(snd_pcm_hw_params_set_format)
64#define snd_pcm_hw_params_get_period_size ALSA_MANGLER(snd_pcm_hw_params_get_period_size)
65#define snd_pcm_hw_params_set_period_size_near ALSA_MANGLER(snd_pcm_hw_params_set_period_size_near)
66#define snd_pcm_hw_params_set_period_time_near ALSA_MANGLER(snd_pcm_hw_params_set_period_time_near)
67
68#define snd_pcm_sw_params ALSA_MANGLER(snd_pcm_sw_params)
69#define snd_pcm_sw_params_current ALSA_MANGLER(snd_pcm_sw_params_current)
70#define snd_pcm_sw_params_get_start_threshold ALSA_MANGLER(snd_pcm_sw_params_get_start_threshold)
71#define snd_pcm_sw_params_set_avail_min ALSA_MANGLER(snd_pcm_sw_params_set_avail_min)
72#define snd_pcm_sw_params_set_start_threshold ALSA_MANGLER(snd_pcm_sw_params_set_start_threshold)
73#define snd_pcm_sw_params_sizeof ALSA_MANGLER(snd_pcm_sw_params_sizeof)
74
75#endif /* !VBOX_INCLUDED_SRC_Audio_DrvHostAudioAlsaStubsMangling_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use