notes abour using libsndio

2009-01-22 Thread Alexandre Ratchov
hi all, I've tried to clean-up and complete my notes about libsndio, in the hope they can be useful to port more applications to it, and ease writing correct code: http://caoua.org/alex/obsd/libsndio.html if you think it's useful enough, i'll try to improve it and integr

Re: PATCH: libsndio for audio/timidity

2008-12-27 Thread Jacob Meuser
On Sat, Dec 27, 2008 at 04:27:08PM +0900, Iwata wrote: > >> +static int acntl(int request, void *arg) > >> +{ > >> + switch(request) { > >> + case PM_REQ_DISCARD: > >> + case PM_REQ_PLAY_START: /* Called just before playing */ > >> + case PM_REQ_PLAY_END: /* Called just after playing */ > >> +

Re: PATCH: libsndio for audio/timidity

2008-12-26 Thread Iwata
quot; #include "timer.h" #include "instrum.h" #include "playmidi.h" #include "miditrace.h" static int open_output(void); /* 0=success, 1=warning, -1=fatal error */ static void close_output(void); static int output_data(char *buf, int32 nbytes); static int

Re: PATCH: libsndio for audio/timidity

2008-12-26 Thread Jacob Meuser
On Sat, Dec 27, 2008 at 01:49:51PM +0900, IWATA Ray wrote: > Hi, > > This patch adds libsndio to audio/timidity. > libsndio is assigned sound output option to '-Os' and set default > output. > > Thanks. thank you :) > diff -aruN timidity/files/sndio_a.c

PATCH: libsndio for audio/timidity

2008-12-26 Thread IWATA Ray
Hi, This patch adds libsndio to audio/timidity. libsndio is assigned sound output option to '-Os' and set default output. Thanks. diff -aruN timidity/Makefile timidity-libsndio/Makefile --- timidity/Makefile Thu Nov 22 21:52:34 2007 +++ timidity-libsndio/Makefile Sat Dec 27 11:

Re: libsndio backend for PortAudio

2008-12-03 Thread Jacob Meuser
On Wed, Dec 03, 2008 at 01:23:23PM +0100, Alexandre Ratchov wrote: > On Wed, Dec 03, 2008 at 12:37:34PM +0100, David Coppa wrote: > > Hello. > > I'm investigating about writing a libsndio backend for PortAudio, so > > applications like pjsua can interface with aucat.

Re: libsndio backend for PortAudio

2008-12-03 Thread Alexandre Ratchov
On Wed, Dec 03, 2008 at 12:37:34PM +0100, David Coppa wrote: > Hello. > I'm investigating about writing a libsndio backend for PortAudio, so > applications like pjsua can interface with aucat. > Is this really needed? yes, imo. Other ports are using it too, getting portaudio rig

libsndio backend for PortAudio

2008-12-03 Thread David Coppa
Hello. I'm investigating about writing a libsndio backend for PortAudio, so applications like pjsua can interface with aucat. Is this really needed? Is anybody already working on it? Best Regards, David Coppa

Re: libsndio backends for gstreamer

2008-11-02 Thread Jacob Meuser
On Tue, Oct 28, 2008 at 03:31:38AM +, Jacob Meuser wrote: > > this adds playback and recording backends using libsndio. gstreamer > will use them by default. any objections to this going in? > please test with any and all ports that use gstreamer for audio i/o. > I only use

Re: libsndio

2008-10-29 Thread Christian Weisgerber
H_INLINES -fsigned-char" ;; ++DEBUG="-g -Wall -fsigned-char" ++ CFLAGS="-fsigned-char" ++PROFILE="-g -pg -fsigned-char" ;; + esac + fi + CFLAGS="$CFLAGS $cflags_save" +@@ -300,6 +300,11 @@ dnl Check

Re: make SDL use new libsndio by default

2008-10-29 Thread Robert
me of you have noticed a new sound library has come to > > > base (sio_open(3)), and aucat(1) can act as a sound server. > > > > > > this makes SDL use the new library by default (if SDL_SUDIODRIVER > > > is not set in the environment, or you can ex

Re: libsndio

2008-10-29 Thread Christian Weisgerber
Stuart Henderson <[EMAIL PROTECTED]> wrote: > > this will add libsndio backend to libao, and make it the default. > > +++ files/libsndio/Makefile.am 28 Oct 2008 09:42:31 - > > I'd prefer if these went in files/ rather than files/libsndio/, > anyone els

Re: make SDL use new libsndio by default

2008-10-29 Thread Jacob Meuser
sound server. > > > > this makes SDL use the new library by default (if SDL_SUDIODRIVER is > > not set in the environment, or you can explicitly set > > SDL_AUDIODRIVER=libsndio). > > > > playing games is fun testing ;) > > > > if you use the aucat

Re: make SDL use new libsndio by default

2008-10-29 Thread Alexandre Ratchov
sound server. > > > > this makes SDL use the new library by default (if SDL_SUDIODRIVER is > > not set in the environment, or you can explicitly set > > SDL_AUDIODRIVER=libsndio). > > > > playing games is fun testing ;) > > > > if you use the aucat

Re: make SDL use new libsndio by default

2008-10-29 Thread Alexandre Ratchov
On Wed, Oct 29, 2008 at 11:21:47AM +, Stuart Henderson wrote: > On 2008/10/29 12:03, Robert wrote: > > Tested with vlc on Thinkpad X200/amd64. > > > > Without aucat running, everything at 44,48,96kHz works fine. Below > > that the sound is too fast and stutters. > > > > With aucat running all

Re: make SDL use new libsndio by default

2008-10-29 Thread Stuart Henderson
On 2008/10/29 12:03, Robert wrote: > Tested with vlc on Thinkpad X200/amd64. > > Without aucat running, everything at 44,48,96kHz works fine. Below > that the sound is too fast and stutters. > > With aucat running all samplerates except 44kHz and 96kHz, play back is > too fast and stutters. (tes

Re: make SDL use new libsndio by default

2008-10-29 Thread Robert
R is > not set in the environment, or you can explicitly set > SDL_AUDIODRIVER=libsndio). > > playing games is fun testing ;) > > if you use the aucat server, you may want to start it like > $ aucat -b 16384 -l (or even -b 8192 if you have a "faster" machine) >

Re: libsndio

2008-10-29 Thread Stuart Henderson
On 2008/10/28 18:18, Alexandre Ratchov wrote: > this will add libsndio backend to libao, and make it the default. > +++ files/libsndio/Makefile.am28 Oct 2008 09:42:31 - I'd prefer if these went in files/ rather than files/libsndio/, anyone else? Works fine for me.

Re: libsndio backend for mplayer

2008-10-29 Thread Robert
On Wed, 29 Oct 2008 09:20:19 +0100 Robert <[EMAIL PROTECTED]> wrote: > Playback of audio files only works with rates above 44kHz. Aucat wasn't running while i tested this... With aucat listening also audio files with lower sample rates play back at the correct speed. - Robert

Re: libsndio

2008-10-29 Thread Robert
ght? encoding conversions and > resampling are handled in aucat. > > without aucat running, libsndio will use the hardware without doing > any conversion; so everything depends on your device capabilities. > > -- Alexandre ouch! yep, no aucat running... with aucat -l & 48kHz = too fast 44kHz = fine 16kHz = too fast 12kHz = too fast

Re: make SDL use new libsndio by default

2008-10-29 Thread Alf Schlichting
> > > > > perhaps some of you have noticed a new sound library has come to > > > > base (sio_open(3)), and aucat(1) can act as a sound server. > > > > > > > > this makes SDL use the new library by default (if SDL_SUDIODRIVER is not > > >

Re: libsndio

2008-10-29 Thread Alexandre Ratchov
kHz and 48kHz play fine. > Files with a rate below 44kHz are being played back too fast. > i guess you're not running aucat. right? encoding conversions and resampling are handled in aucat. without aucat running, libsndio will use the hardware without doing any conversion; so eve

Re: libsndio

2008-10-29 Thread Robert
On Wed, 29 Oct 2008 08:08:20 +0100 Robert <[EMAIL PROTECTED]> wrote: > On Tue, 28 Oct 2008 18:18:10 +0100 > Alexandre Ratchov <[EMAIL PROTECTED]> wrote: > > > this will add libsndio backend to libao, and make it the default. > > The following ports use it: >

Re: libsndio backend for mplayer

2008-10-29 Thread Robert
G layer-2, layer-3) == AO: [libsndio] 48000Hz 2ch s16le (2 bytes per sample) == Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 32000 Hz, 2 ch, s16le, 128.0 kbit/12.50% (ratio: 16000

Re: PATCH:libao libsndio backend

2008-10-29 Thread Alexandre Ratchov
On Wed, Oct 29, 2008 at 02:31:03AM +0900, IWATA Ray wrote: > Hi, > > This patch adds plugin for libsndio. > If you want to test this backend, please add your ~/.libao. > > $ echo default_driver=sndio > ~/.libao > thanks, its unfortunate we've done the job twice, t

Re: libsndio

2008-10-29 Thread Robert
On Tue, 28 Oct 2008 18:18:10 +0100 Alexandre Ratchov <[EMAIL PROTECTED]> wrote: > this will add libsndio backend to libao, and make it the default. > The following ports use it: > > mpg321, vorbis-tools, tremor-tools, mpd > > I've changed diffs against ./config

Re: libsndio

2008-10-28 Thread Aaron Stellman
On Tue, Oct 28, 2008 at 06:18:10PM +0100, Alexandre Ratchov wrote: > this will add libsndio backend to libao, and make it the default. > The following ports use it: > > mpg321, vorbis-tools, tremor-tools, mpd > > I've changed diffs against ./configure and .in

Re: libsndio

2008-10-28 Thread Matt Jibson
On Tue, Oct 28, 2008 at 11:18 AM, Alexandre Ratchov <[EMAIL PROTECTED]> wrote: > this will add libsndio backend to libao, and make it the default. > The following ports use it: > > mpg321, vorbis-tools, tremor-tools, mpd > > I've changed diffs against ./configure an

Re: PATCH:libao libsndio backend

2008-10-28 Thread Jacob Meuser
On Tue, Oct 28, 2008 at 09:23:21PM +, Jacob Meuser wrote: > On Wed, Oct 29, 2008 at 02:31:03AM +0900, IWATA Ray wrote: > > Hi, > > > > This patch adds plugin for libsndio. > > > + # we link to libpthread just in case one of our plugins does > > + # in

Re: PATCH:libao libsndio backend

2008-10-28 Thread Jacob Meuser
On Wed, Oct 29, 2008 at 02:31:03AM +0900, IWATA Ray wrote: > Hi, > > This patch adds plugin for libsndio. > + # we link to libpthread just in case one of our plugins does > + # in which case this is required to avoid problems on dlclose() > +-AC_CHECK_LIB(pthread, pth

Re: libsndio

2008-10-28 Thread Jacob Meuser
On Tue, Oct 28, 2008 at 06:18:10PM +0100, Alexandre Ratchov wrote: > this will add libsndio backend to libao, and make it the default. > The following ports use it: > > mpg321, vorbis-tools, tremor-tools, mpd > > I've changed diffs against ./configure and .in

Re: libsndio backends for gstreamer

2008-10-28 Thread Jona Joachim
On 2008-10-28, Jacob Meuser <[EMAIL PROTECTED]> wrote: > > this adds playback and recording backends using libsndio. gstreamer > will use them by default. > > please test with any and all ports that use gstreamer for audio i/o. > I only use this with gnash. grepping po

Re: libsndio backend for mplayer

2008-10-28 Thread Antoine Jacoutot
ndio.c 27 Oct 2008 16:19:01 - > @@ -0,0 +1,226 @@ > +#include > +#include > +#include > +#include > + > +#include "config.h" > +#include "mp_msg.h" > +#include "mixer.h" > +#include "help_mp.h" > + > +#include &qu

PATCH:libao libsndio backend

2008-10-28 Thread IWATA Ray
Hi, This patch adds plugin for libsndio. If you want to test this backend, please add your ~/.libao. $ echo default_driver=sndio > ~/.libao Thanks. diff -aruN libao/Makefile libao-sndio/Makefile --- libao/Makefile Wed Dec 12 23:53:39 2007 +++ libao-sndio/MakefileWed Oct 29 02

libsndio backend for mplayer

2008-10-28 Thread Alexandre Ratchov
format.h" + +#include "audio_out.h" +#include "audio_out_internal.h" + +static ao_info_t info = { + "libsndio audio output", + "libsndio", + "Alexandre Ratchov <[EMAIL PROTECTED]>", + "" +}; + +LIBAO_EXTERN(libsndio) +

libsndio

2008-10-28 Thread Alexandre Ratchov
this will add libsndio backend to libao, and make it the default. The following ports use it: mpg321, vorbis-tools, tremor-tools, mpd I've changed diffs against ./configure and .in files to apply to the corresponding .ac and .am files, and switched the port to use autoconf and automake. Is

Re: make SDL use new libsndio by default

2008-10-28 Thread Alf Schlichting
e to > > > base (sio_open(3)), and aucat(1) can act as a sound server. > > > > > > this makes SDL use the new library by default (if SDL_SUDIODRIVER is not > > > set in the environment, or you can explicitly set > > > SDL_AUDIODRIVER=libsndio). > &

Re: make SDL use new libsndio by default

2008-10-27 Thread Jacob Meuser
> > this makes SDL use the new library by default (if SDL_SUDIODRIVER is not > > set in the environment, or you can explicitly set SDL_AUDIODRIVER=libsndio). > > > > playing games is fun testing ;) > > > > if you use the aucat server, you may want to start

libsndio backends for gstreamer

2008-10-27 Thread Jacob Meuser
this adds playback and recording backends using libsndio. gstreamer will use them by default. please test with any and all ports that use gstreamer for audio i/o. I only use this with gnash. grepping ports/INDEX suggests these: rhythmbox-0.11.5 subtitleeditor-0.13.6p1 gcompris-8.4.4p2 swfdec

Re: make SDL use new libsndio by default

2008-10-27 Thread Alf Schlichting
in the environment, or you can explicitly set SDL_AUDIODRIVER=libsndio). > > playing games is fun testing ;) > > if you use the aucat server, you may want to start it like > $ aucat -b 16384 -l (or even -b 8192 if you have a "faster" machine) > or you might have a lon

Re: make SDL use new libsndio by default

2008-10-26 Thread Alexandre Ratchov
in the environment, or you can explicitly set SDL_AUDIODRIVER=libsndio). > > playing games is fun testing ;) > > if you use the aucat server, you may want to start it like > $ aucat -b 16384 -l (or even -b 8192 if you have a "faster" machine) > or you might have a lon

Re: make SDL use new libsndio by default

2008-10-26 Thread Jacob Meuser
On Mon, Oct 27, 2008 at 12:15:17PM +0900, Masao Uebayashi wrote: > > @@ -16,7 +16,7 @@ > > PERMIT_PACKAGE_FTP= Yes > > PERMIT_DISTFILES_CDROM= Yes > > PERMIT_DISTFILES_FTP= Yes > > -WANTLIB= m usbhid > > +WANTLIB= m sa usbhid > > > > MASTER_SITES= ftp://ftp.fr.f

make SDL use new libsndio by default

2008-10-26 Thread Jacob Meuser
perhaps some of you have noticed a new sound library has come to base (sio_open(3)), and aucat(1) can act as a sound server. this makes SDL use the new library by default (if SDL_SUDIODRIVER is not set in the environment, or you can explicitly set SDL_AUDIODRIVER=libsndio). playing games is fun