Mercurial > audlegacy-plugins
changeset 1670:815c23eab53e
Fix pulseaudio plugin
author | Christian Birchinger <joker@netswarm.net> |
---|---|
date | Sat, 08 Sep 2007 14:49:11 +0200 |
parents | e1985da23d28 |
children | 49704b7f41db |
files | src/pulse_audio/pulse_audio.c |
diffstat | 1 files changed, 14 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pulse_audio/pulse_audio.c Sat Sep 08 04:39:38 2007 +0300 +++ b/src/pulse_audio/pulse_audio.c Sat Sep 08 14:49:11 2007 +0200 @@ -704,27 +704,21 @@ } static OutputPlugin pulse_op = { - NULL, - NULL, - "PulseAudio Output Plugin", - NULL, - NULL, - pulse_about, - NULL, - pulse_get_volume, - pulse_set_volume, - pulse_open, - pulse_write, - pulse_close, - pulse_flush, - pulse_pause, - pulse_free, - pulse_playing, - pulse_get_output_time, - pulse_get_written_time, - NULL, + .description = "PulseAudio Output Plugin", + .about = pulse_about, + .get_volume = pulse_get_volume, + .set_volume = pulse_set_volume, + .open_audio = pulse_open, + .write_audio = pulse_write, + .close_audio = pulse_close, + .flush = pulse_flush, + .pause = pulse_pause, + .buffer_free = pulse_free, + .buffer_playing = pulse_playing, + .output_time = pulse_get_output_time, + .written_time = pulse_get_written_time, }; OutputPlugin *pulse_oplist[] = { &pulse_op, NULL }; -DECLARE_PLUGIN(pulse, NULL, NULL, NULL, pulse_oplist, NULL, NULL, NULL, NULL); +SIMPLE_OUTPUT_PLUGIN(pulser, pulse_oplist);