[xmp] Mass update on to-be-ported old drivers

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 14 years ago
parent 30ff6aafed
commit 526dac4670
  1. 2
      src/drivers/aix.c
  2. 2
      src/drivers/alsa05.c
  3. 20
      src/drivers/file.c
  4. 2
      src/drivers/hpux.c
  5. 2
      src/drivers/os2_dart.c
  6. 2
      src/drivers/pulseaudio.c
  7. 2
      src/drivers/qnx.c
  8. 2
      src/drivers/sgi.c

@ -49,7 +49,7 @@ static char *help[] = {
NULL
};
struct xmp_drv_info drv_bsd = {
struct sound_driver sound_bsd = {
"aix", /* driver ID */
"AIX PCM audio", /* driver description */
help, /* help */

@ -54,7 +54,7 @@ static char *help[] = {
NULL
};
struct xmp_drv_info drv_alsa05 = {
struct sound_driver sound_alsa05 = {
"alsa05", /* driver ID */
"ALSA 0.5 PCM audio", /* driver description */
help, /* help */

@ -24,7 +24,7 @@
#define O_BINARY 0
#endif
#define DATA(x) (((struct data *)drv_file.data)->x)
#define DATA(x) (((struct data *)sound_file.data)->x)
struct data {
int fd;
@ -45,7 +45,7 @@ static char *help[] = {
NULL
};
struct xmp_drv_info drv_file = {
struct sound_driver sound_file = {
"file", /* driver ID */
"file", /* driver description */
help, /* help */
@ -63,8 +63,8 @@ static int init(struct context_data *ctx)
int bsize;
char *token, **parm;
drv_file.data = malloc(sizeof (struct data));
if (drv_file.data == NULL)
sound_file.data = malloc(sizeof (struct data));
if (sound_file.data == NULL)
return -1;
DATA(endian) = 0;
@ -86,13 +86,13 @@ static int init(struct context_data *ctx)
}
if (strcmp(o->outfile, "-")) {
bsize = strlen(drv_file.description) + strlen(o->outfile) + 8;
bsize = strlen(sound_file.description) + strlen(o->outfile) + 8;
buf = malloc(bsize);
snprintf(buf, bsize, "%s: %s", drv_file.description,
snprintf(buf, bsize, "%s: %s", sound_file.description,
o->outfile);
drv_file.description = buf;
sound_file.description = buf;
} else {
drv_file.description = strdup("Output to stdout");
sound_file.description = strdup("Output to stdout");
}
return 0;
@ -122,6 +122,6 @@ static void shutdown(struct context_data *ctx)
if (DATA(fd) > 0)
close(DATA(fd));
free(drv_file.description);
free(drv_file.data);
free(sound_file.description);
free(sound_file.data);
}

@ -48,7 +48,7 @@ static char *help[] = {
NULL
};
struct xmp_drv_info drv_hpux = {
struct sound_driver sound_hpux = {
"hpux", /* driver ID */
"HP-UX PCM audio", /* driver description */
help, /* help */

@ -64,7 +64,7 @@ static char *help[] = {
NULL
};
struct xmp_drv_info drv_os2dart = {
struct sound_driver sound_os2dart = {
"dart", /* driver ID */
"OS/2 Direct Audio Realtime", /* driver description */
help, /* help */

@ -29,7 +29,7 @@ static void dummy()
{
}
struct xmp_drv_info drv_pulseaudio = {
struct sound_driver sound_pulseaudio = {
"pulseaudio", /* driver ID */
"PulseAudio", /* driver description */
NULL, /* help */

@ -37,7 +37,7 @@ static char *help[] = {
NULL
};
struct xmp_drv_info drv_qnx = {
struct sound_driver sound_qnx = {
"QNX", /* driver ID */
"QNX PCM audio", /* driver description */
NULL, /* help */

@ -55,7 +55,7 @@ static char *help[] = {
NULL
};
struct xmp_drv_info drv_sgi = {
struct sound_driver sound_sgi = {
"sgi", /* driver ID */
"SGI PCM audio", /* driver description */
help, /* help */

Loading…
Cancel
Save