VirtualBox

source: vbox/trunk/src/VBox/RDP/client/rdpsnd.h@ 30798

Last change on this file since 30798 was 11982, checked in by vboxsync, 16 years ago

All: license header changes for 2.0 (OSE headers, add Sun GPL/LGPL disclaimer)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1/*
2 rdesktop: A Remote Desktop Protocol client.
3 Sound infrastructure
4 Copyright (C) Michael Gernoth 2006-2007
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19*/
20
21/*
22 * Sun GPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
24 * the General Public License version 2 (GPLv2) at this time for any software where
25 * a choice of GPL license versions is made available with the language indicating
26 * that GPLv2 or any later version may be used, or where a choice of which version
27 * of the GPL is applied is otherwise unspecified.
28 */
29
30struct audio_packet
31{
32 struct stream s;
33 uint16 tick;
34 uint8 index;
35
36 struct timeval arrive_tv;
37 struct timeval completion_tv;
38};
39
40struct audio_driver
41{
42 void (*add_fds) (int *n, fd_set * rfds, fd_set * wfds, struct timeval * tv);
43 void (*check_fds) (fd_set * rfds, fd_set * wfds);
44
45 RD_BOOL(*wave_out_open) (void);
46 void (*wave_out_close) (void);
47 RD_BOOL(*wave_out_format_supported) (RD_WAVEFORMATEX * pwfx);
48 RD_BOOL(*wave_out_set_format) (RD_WAVEFORMATEX * pwfx);
49 void (*wave_out_volume) (uint16 left, uint16 right);
50
51 RD_BOOL(*wave_in_open) (void);
52 void (*wave_in_close) (void);
53 RD_BOOL(*wave_in_format_supported) (RD_WAVEFORMATEX * pwfx);
54 RD_BOOL(*wave_in_set_format) (RD_WAVEFORMATEX * pwfx);
55 void (*wave_in_volume) (uint16 left, uint16 right);
56
57 char *name;
58 char *description;
59 int need_byteswap_on_be;
60 int need_resampling;
61 struct audio_driver *next;
62};
63
64/* Driver register functions */
65struct audio_driver *alsa_register(char *options);
66struct audio_driver *libao_register(char *options);
67struct audio_driver *oss_register(char *options);
68struct audio_driver *sgi_register(char *options);
69struct audio_driver *sun_register(char *options);
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette