[Alsaplayer-devel] libalsaplayer in LiVES
Basil Achermann
29tpyo5mejhkntt at jetable.com
Sun Oct 2 15:19:49 BST 2005
Hi Salsaman,
libalsaplayer doesn't play music, it is a library that lets you
control an alsaplayer process that is already running via control
socket.
/usr/local/bin/alsaplayer -i daemon
You can specify the output device using the -d option, see alsaplayer
--help.
The player will run as a separate process and you will be able to
control it from your application using libalsaplayer commands like
the ones you mentioned. However, you will have to seriously hack/
enhance alsaplayer to make it work the way you want. Keeping the
thing in sync will be a pain, features like the ability to change
playback speed without changing pitch don't exist.
Don't get me wrong, it will be MUCH better than the sox solution and
it is straightforward to use. But I doubt that it is the perfect tool
for the job as I think you need something more tightly integrated.
Regards,
Basil
On 01.10.2005, at 17:04, salsaman wrote:
> Ah no !
>
> How do I run it as a daemon ?
>
>
> Perhaps I can also explain a bit more about the requirements for
> LiVES.
> Each clip with audio in LiVES has a raw pcm file. The rate can be
> anything, and is stored as part of the clip. The number of channels
> can be currently mono or stereo.
>
> When a clip starts playing, currently I just start sox as a
> separate process, and it plays the audio for the first clip (clips
> can be switched during playback). This is very unsatisfactory, as
> it is not possible to do even simple things like pause the audio.
>
>
> What I would like is:
>
> - play the audio in same/separate thread
> - realtime control of the audio, so that when the video clip is
> switched, the audio track (file) is also switched
> - ability to pause the audio
> - ability to change the audio speed in realtime, including reverse
> play
> - ability to adjust the volume in realtime
> - ability to take timing from the sound card, so that video and
> audio remain in sync
> - knowing when the audio seek is ready, so that video and audio
> playback can begin simultaneously
> - ability to capture any audio that is being sent to the soundcard
> (record mode)
> - ability to let the user pick the audio devices for playback and
> capture
>
> Any help with this would be greatly appreciated.
>
> Regards,
> Salsaman.
>
>
> _______________________________________________
> alsaplayer-devel mailing list
> alsaplayer-devel at lists.tartarus.org
> http://lists.tartarus.org/mailman/listinfo/alsaplayer-devel
>
>
More information about the alsaplayer-devel
mailing list