[alsa-devel] A minimal playback program does't work on my system
Joël Krähemann
weedlight at gmail.com
Sat Aug 16 02:36:01 CEST 2014
On Fri, 2014-08-15 at 18:19 +0100, Carpon frédéric wrote:
> Hello,
>
> Yesterday i have written.
> I answer to everybody. I am new and I don't know if there is special rule.
> Note : It would be good to have a forum to see the messages and answers in a pretty form.
>
> the programme in c comes from
>
> http://equalarea.com/paul/alsa-audio.html
> you can download it at
> https://mon-partage.fr/f/uvyw39wo/
>
> To answer to Michael i have sound in my HDMI with that :
> >speaker-test -c2 -D hw:0,0
>
> so i did that
> >gcc -o minimal_playback minimal_playback.c -lasound (warning comes)
> and
> >./minimal_playback "plughw:0,0"
> and i have this result :
> >Error of segmentation
>
> Where i can an exemple with the possibility to do something like that :
> >./minimal_playback "plughw:0,0" "mywave.wav"
>
>
> Thank you for your help
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Probably you want to use a library that does type and endianes
conversion like:
http://www.mega-nerd.com/libsndfile/
More information about the Alsa-devel
mailing list