This is the mail archive of the
cygwin
mailing list for the Cygwin project.
aplay (audio) support for cygwin - solution
- From: "Dr. Alexander Kleinsorge" <aleks at physik dot tu-berlin dot de>
- To: cygwin at cygwin dot com
- Date: Sun, 23 Feb 2014 16:14:28 +0100
- Subject: aplay (audio) support for cygwin - solution
- Authentication-results: sourceware.org; auth=none
Hi Cygwin-Team
I have a working suggestion to support basic aplay funcionallity for cygwin.
(aplay plays audio from command line.)
using this free 31 kB tool, download "sounder.exe"
(sourcecode free avail., but VisualBasic)
# http://www.elifulkerson.com/projects/commandline-wav-player.php
and copy to /usr/bin/sounder (.exe)
# 1st Option: attached (2kB) aplay.c (my code, no restrictions)
gcc -O1 -o aplay.exe aplay.c
and copy to /usr/bin/
(only basic options supported, but covers most usecases)
http://www.physik.tu-berlin.de/~aleks/aplay.c
# 2nd Option: Alias for bash
alias aplay_q='/usr/bin/sounder ' # -q --quiet
aplay () { file "$1" && sounder "$1"; } # default
Thanks for reading, Alexander
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple