Browse Source

make sio_onvol(3) return a integer exposing whether a volume knob

is available for the stream. As we're at it, remove macros and
functions that are neither used nor documented.
OPENBSD_4_9
ratchov 14 years ago
parent
commit
f60a5c1cbc
1 changed files with 2 additions and 21 deletions
  1. +2
    -21
      src/include/sndio.h

+ 2
- 21
src/include/sndio.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: sndio.h,v 1.3 2009/07/25 11:27:14 ratchov Exp $ */
/* $OpenBSD: sndio.h,v 1.4 2010/11/06 20:25:42 ratchov Exp $ */
/* /*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
* *
@ -86,12 +86,6 @@ struct sio_cap {
#define MIO_OUT 4 #define MIO_OUT 4
#define MIO_IN 8 #define MIO_IN 8
/*
* maximum size of the encording string (the longest possible
* encoding is ``s24le3msb'')
*/
#define SIO_ENCMAX 10
/* /*
* default bytes per sample for the given bits per sample * default bytes per sample for the given bits per sample
*/ */
@ -106,16 +100,6 @@ struct sio_cap {
#define SIO_LE_NATIVE 0 #define SIO_LE_NATIVE 0
#endif #endif
/*
* default device for the sun audio(4) back-end
*/
#define SIO_SUN_PATH "/dev/audio"
/*
* default socket name for the aucat(1) back-end
*/
#define SIO_AUCAT_PATH "default"
/* /*
* maximum value of volume, eg. for sio_setvol() * maximum value of volume, eg. for sio_setvol()
*/ */
@ -127,10 +111,7 @@ extern "C" {
struct pollfd; struct pollfd;
int sio_strtoenc(struct sio_par *, char *);
int sio_enctostr(struct sio_par *, char *);
void sio_initpar(struct sio_par *); void sio_initpar(struct sio_par *);
struct sio_hdl *sio_open(const char *, unsigned, int); struct sio_hdl *sio_open(const char *, unsigned, int);
void sio_close(struct sio_hdl *); void sio_close(struct sio_hdl *);
int sio_setpar(struct sio_hdl *, struct sio_par *); int sio_setpar(struct sio_hdl *, struct sio_par *);
@ -146,7 +127,7 @@ int sio_pollfd(struct sio_hdl *, struct pollfd *, int);
int sio_revents(struct sio_hdl *, struct pollfd *); int sio_revents(struct sio_hdl *, struct pollfd *);
int sio_eof(struct sio_hdl *); int sio_eof(struct sio_hdl *);
int sio_setvol(struct sio_hdl *, unsigned); int sio_setvol(struct sio_hdl *, unsigned);
void sio_onvol(struct sio_hdl *, void (*)(void *, unsigned), void *);
int sio_onvol(struct sio_hdl *, void (*)(void *, unsigned), void *);
struct mio_hdl *mio_open(const char *, unsigned, int); struct mio_hdl *mio_open(const char *, unsigned, int);
void mio_close(struct mio_hdl *); void mio_close(struct mio_hdl *);


Loading…
Cancel
Save