This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

aplay (audio) support for cygwin - solution


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]