search for: ao_option

Displaying 5 results from an estimated 5 matches for "ao_option".

2001 Aug 21
2
ao changes
Why has ao been changed so that there are now two open() functions ? IMHO the original ao_open() was fine - if you wanted to set the filename for output, you could add an option via ao_append_option and if you wanted to avoid overwriting an existing file, you could stat() it yourself. Having ao_open_live() and ao_open_file() just makes more work for the user of the library for no gain, AFAICT.
2001 Aug 21
2
ao changes
Why has ao been changed so that there are now two open() functions ? IMHO the original ao_open() was fine - if you wanted to set the filename for output, you could add an option via ao_append_option and if you wanted to avoid overwriting an existing file, you could stat() it yourself. Having ao_open_live() and ao_open_file() just makes more work for the user of the library for no gain, AFAICT.
2009 Oct 06
0
[ao] Two patches for libao2
...TIVE] > > --- > src/audio_out.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/src/audio_out.c b/src/audio_out.c > index 88660c0..6e39047 100644 > --- a/src/audio_out.c > +++ b/src/audio_out.c > @@ -613,6 +613,7 @@ int ao_append_option(ao_option **options, const char *key, const char *value) > > op->key = strdup(key); > op->value = strdup(value); > + if (op->key == NULL || op->value == NULL) return 0; > op->next = NULL; > > if ((list = *options) != NULL) { > -- > 1.6.1.2 > > Fr...
2016 Jan 20
2
error of using GATHER intrinsic
Got it. Thanks. I will try it with the trunk version. On Wed, Jan 20, 2016 at 1:36 PM, Tim Northover <t.p.northover at gmail.com> wrote: > Hi Zhi, > On 20 January 2016 at 13:33, zhi chen <zchenhn at gmail.com> wrote: > > Thanks for your response. The attached is the .bc file after my pass. I > > could generate the assembly with -mcpu=skx but not with
2004 Oct 22
0
libao-0.8.5 patch
...0 +0200 @@ -491,7 +491,7 @@ if (!funcs->set_option(device, options->key, options->value)) { /* Problem setting options */ free(device); - errno = AO_EOPENDEVICE; + errno = AO_EBADOPTION; return NULL; } @@ -629,14 +629,23 @@ { FILE *file; ao_device *device; + ao_option *o = options; + char *fname = (char *) filename; - if (strcmp("-", filename) == 0) + while (o) { + if (!(strcmp (o->key, "file"))) { + fname = o->value; + break; + } + o = o->next; + } + if (strcmp("-", fname) == 0) file = stdout; else { if...