"Fossies" - the Fresh Open Source Software Archive 
Member "alsa-oss-1.1.8/alsa/alsa-oss-emul.h" (7 Jan 2019, 2613 Bytes) of package /linux/misc/alsa-oss-1.1.8.tar.bz2:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "alsa-oss-emul.h" see the
Fossies "Dox" file reference documentation and the last
Fossies "Diffs" side-by-side code changes report:
1.0.28_vs_1.1.6.
1 #ifndef __ALSA_OSS_EMUL_H
2 /*
3 * OSS Redirector
4 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
5 *
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 *
21 */
22
23 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
24 #define NEW_MACRO_VARARGS
25 #endif
26
27 #define OSS_MAJOR 14
28 #define OSS_DEVICE_MIXER 0
29 #define OSS_DEVICE_SEQUENCER 1
30 #define OSS_DEVICE_MIDI 2
31 #define OSS_DEVICE_DSP 3
32 #define OSS_DEVICE_AUDIO 4
33 #define OSS_DEVICE_DSPW 5
34 #define OSS_DEVICE_SNDSTAT 6
35 #define OSS_DEVICE_MUSIC 8
36 #define OSS_DEVICE_DMMIDI 9
37 #define OSS_DEVICE_DMFM 10
38 #define OSS_DEVICE_AMIXER 11
39 #define OSS_DEVICE_ADSP 12
40 #define OSS_DEVICE_AMIDI 13
41 #define OSS_DEVICE_ADMMIDI 14
42
43 #define OSS_WAIT_EVENT_READ (1<<0)
44 #define OSS_WAIT_EVENT_WRITE (1<<1)
45 #define OSS_WAIT_EVENT_ERROR (1<<2)
46
47 extern int lib_oss_pcm_open(const char *pathname, int flags, ...);
48 extern int lib_oss_pcm_close(int fd);
49 extern int lib_oss_pcm_nonblock(int fd, int nonblock);
50 extern ssize_t lib_oss_pcm_read(int fd, void *buf, size_t count);
51 extern ssize_t lib_oss_pcm_write(int fd, const void *buf, size_t count);
52 extern void * lib_oss_pcm_mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset);
53 extern int lib_oss_pcm_munmap(void *start, size_t length);
54 extern int lib_oss_pcm_ioctl(int fd, unsigned long int request, ...);
55 extern int lib_oss_pcm_select_prepare(int fd, int fmode, fd_set *readfds, fd_set *writefds, fd_set *exceptfds);
56 extern int lib_oss_pcm_select_result(int fd, fd_set *readfds, fd_set *writefds, fd_set *exceptfds);
57 extern int lib_oss_pcm_poll_fds(int fd);
58 extern int lib_oss_pcm_poll_prepare(int fd, int fmode, struct pollfd *ufds);
59 extern int lib_oss_pcm_poll_result(int fd, struct pollfd *ufds);
60
61 extern int lib_oss_mixer_open(const char *pathname, int flags, ...);
62 extern int lib_oss_mixer_close(int fd);
63 extern int lib_oss_mixer_ioctl(int fd, unsigned long int request, ...);
64
65 #endif /* __ALSA_OSS_EMUL_H */