Go to the source code of this file.
Defines | |
#define | SND_HWDEP_DLSYM_VERSION _dlsym_hwdep_001 |
#define | SND_HWDEP_OPEN_READ (O_RDONLY) |
#define | SND_HWDEP_OPEN_WRITE (O_WRONLY) |
#define | SND_HWDEP_OPEN_DUPLEX (O_RDWR) |
#define | SND_HWDEP_OPEN_NONBLOCK (O_NONBLOCK) |
#define | snd_hwdep_info_alloca(ptr) do { assert(ptr); *ptr = (snd_hwdep_info_t *) alloca(snd_hwdep_info_sizeof()); memset(*ptr, 0, snd_hwdep_info_sizeof()); } while (0) |
Typedefs | |
typedef _snd_hwdep_info | snd_hwdep_info_t |
typedef enum _snd_hwdep_iface | snd_hwdep_iface_t |
typedef enum _snd_hwdep_type | snd_hwdep_type_t |
typedef _snd_hwdep | snd_hwdep_t |
Enumerations | |
enum | _snd_hwdep_iface { SND_HWDEP_IFACE_OPL2 = 0, SND_HWDEP_IFACE_OPL3, SND_HWDEP_IFACE_OPL4, SND_HWDEP_IFACE_SB16CSP, SND_HWDEP_IFACE_EMU10K1, SND_HWDEP_IFACE_YSS225, SND_HWDEP_IFACE_ICS2115, SND_HWDEP_IFACE_LAST = SND_HWDEP_IFACE_ICS2115 } |
enum | _snd_hwdep_type { SND_HWDEP_TYPE_HW, SND_HWDEP_TYPE_SHM, SND_HWDEP_TYPE_INET } |
Functions | |
int | snd_hwdep_open (snd_hwdep_t **hwdep, const char *name, int mode) |
Opens a new connection to the HwDep interface. More... | |
int | snd_hwdep_close (snd_hwdep_t *hwdep) |
close HwDep handle. More... | |
int | snd_hwdep_poll_descriptors (snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space) |
get poll descriptors. More... | |
int | snd_hwdep_poll_descriptors_revents (snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) |
get returned events from poll descriptors. More... | |
int | snd_hwdep_nonblock (snd_hwdep_t *hwdep, int nonblock) |
set nonblock mode. More... | |
int | snd_hwdep_info (snd_hwdep_t *hwdep, snd_hwdep_info_t *info) |
get information about HwDep handle. More... | |
int | snd_hwdep_ioctl (snd_hwdep_t *hwdep, unsigned int request, void *arg) |
do hardware dependent ioctl. More... | |
ssize_t | snd_hwdep_write (snd_hwdep_t *hwdep, const void *buffer, size_t size) |
write bytes using HwDep handle. More... | |
ssize_t | snd_hwdep_read (snd_hwdep_t *hwdep, void *buffer, size_t size) |
read bytes using HwDep handle. More... | |
size_t | snd_hwdep_info_sizeof (void) |
get size of the snd_hwdep_info_t structure in bytes. More... | |
int | snd_hwdep_info_malloc (snd_hwdep_info_t **ptr) |
allocate a new snd_hwdep_info_t structure. More... | |
void | snd_hwdep_info_free (snd_hwdep_info_t *obj) |
frees the snd_hwdep_info_t structure. More... | |
void | snd_hwdep_info_copy (snd_hwdep_info_t *dst, const snd_hwdep_info_t *src) |
copy one snd_hwdep_info_t structure to another. More... | |
unsigned int | snd_hwdep_info_get_device (const snd_hwdep_info_t *obj) |
get hwdep device number. More... | |
int | snd_hwdep_info_get_card (const snd_hwdep_info_t *obj) |
get hwdep card number. More... | |
const char * | snd_hwdep_info_get_id (const snd_hwdep_info_t *obj) |
get hwdep driver identifier. More... | |
const char * | snd_hwdep_info_get_name (const snd_hwdep_info_t *obj) |
get hwdep driver name. More... | |
snd_hwdep_iface_t | snd_hwdep_info_get_iface (const snd_hwdep_info_t *obj) |
get hwdep protocol interface. More... | |
void | snd_hwdep_info_set_device (snd_hwdep_info_t *obj, unsigned int val) |
set hwdep device number. More... |
>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA