Displaying 5 results from an estimated 5 matches for "ao_plugin_open".
2003 Mar 26
1
libao alsa output
...m_hw_params";
err = snd_pcm_hw_params(internal->pcm_handle, hwparams);
if (err < 0)
Comments? Can this get applied?
Thanks
j.
Hello,
I was investigating reports that mpg321 (which uses libao) had
distorted output when using the alsa09 output plugin.
Looking at ao_plugin_open in ao_alsa09.c it makes a call to
snd_pcm_hw_params_set_period_size when i think it should be called
snd_pcm_hw_params_set_buffer_size. And in fact, making this change
fixes the distortion for mp321.
This is my first look at the alsa api so i don't really understand the
significance of...
2002 Mar 17
1
libao source build problems on Mandrake 8.2b4: artsc.h missing?
...s
ao_arts.c: In function `ao_plugin_device_init':
ao_arts.c:72: `internal' undeclared (first use in this function)
ao_arts.c:72: (Each undeclared identifier is reported only once
ao_arts.c:72: for each function it appears in.)
ao_arts.c:74: parse error before `)'
ao_arts.c: In function `ao_plugin_open':
ao_arts.c:92: `internal' undeclared (first use in this function)
ao_arts.c:92: parse error before `)'
ao_arts.c: In function `ao_plugin_play':
ao_arts.c:115: `internal' undeclared (first use in this function)
ao_arts.c:115: parse error before `)'
ao_arts.c: In function `ao...
2002 Apr 11
1
libao: IRIX patch
.../
+ /* Device-specific initialization was successful. */
+ return 1;
}
-
int ao_plugin_set_option(ao_device *device, const char *key, const char *value)
{
return 1; /* No options */
}
-
-/*
- * open the audio device for writing to
- */
+/* Open the audio device for writing. */
int ao_plugin_open(ao_device *device, ao_sample_format *format)
{
ao_irix_internal *internal = (ao_irix_internal *) device->internal;
- ALpv params[2];
+ ALpv params;
int dev = AL_DEFAULT_OUTPUT;
int wsize = AL_SAMPLE_16;
-
- internal->nChannels = channels;
-
- if (alSetQueueSize...
2008 Dec 08
0
sndio support for libao
...+}
+
+int ao_plugin_device_init(ao_device *device)
+{
+ struct sio_hdl *hdl;
+
+ hdl = sio_open(NULL, SIO_PLAY, 0);
+ if (hdl == NULL)
+ return 0;
+ device->internal = hdl;
+ return 1;
+}
+
+int ao_plugin_set_option(ao_device *device, const char *key, const char *value)
+{
+ return 1;
+}
+
+int ao_plugin_open(ao_device *device, ao_sample_format *format)
+{
+ struct sio_hdl *hdl = (struct sio_hdl *)device->internal;
+ struct sio_par par;
+
+ sio_initpar(&par);
+ par.sig = 1;
+ par.le = SIO_LE_NATIVE;
+ par.bits = format->bits;
+ par.rate = format->rate;
+ par.pchan = format->channels;
+ i...
2003 Jan 16
1
Several problems with ogg123
...from /usr/lib/libc_r.so.4
#2 0x284094b5 in esd_connect_tcpip (host=0x0) at esdlib.c:491
#3 0x284097c8 in esd_open_sound (host=0x0) at esdlib.c:627
#4 0x28409a49 in esd_play_stream (format=4129, rate=44100, host=0x0,
name=0x28404da0 "libao output") at esdlib.c:738
#5 0x28404a6d in ao_plugin_open (device=0x806a7c0, format=0xbfafef34)
at ao_esd.c:138
#6 0x280bb7bf in _open_device (driver_id=5, format=0xbfafef34, options=0x0,
file=0x0) at audio_out.c:462
#7 0x280bba3f in ao_open_live (driver_id=5, format=0xbfafef34, options=0x0)
at audio_out.c:583
#8 0x804b514 in audio_reopen_...