delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/23/10:14:58

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=ILH
v6Oc1heUivbMXdGupUJGgk2VHqNQ73UYbmJ6nA6SnlDUOiYguqO0zq8ZwHDZrQAL
XvYeAKpldMGpihfLz0cilgKIvq65CPDCcTbBU9KyKzEpqJTZTf7UhyD0eNi4K03h
doxqXkpfa8o7hnYTuiEd5wGqlSScfi7AB6quxL+E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; s=default; bh=DCs234+dl
I9zKI+acz40kGJfVXo=; b=gVHYLfgswgL3LeMw1tpJS1/XTGlKmG1nQRmhvhVbh
ts/ZhJB+BPD3R3ZyAi4WqRnt2vE8Yid+zaeI80Ybbyt9THPUrmKE3ayucyZycwgn
8+Aq6ew0/juKSUbVAzJbgWK3Q+Z0zeTPVrVRC6gsaFN0HmiCP7Gelf1uSeJhZvy0
RE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.6 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,T_HK_NAME_DR autolearn=ham version=3.3.2
X-HELO: mail.tu-berlin.de
X-tubIT-Incoming-IP: 130.149.58.163
Message-ID: <b142693002a07a2271590a8663971f72.squirrel@www.physik.tu-berlin.de>
Date: Sun, 23 Feb 2014 16:14:28 +0100
Subject: aplay (audio) support for cygwin - solution
From: "Dr. Alexander Kleinsorge" <aleks AT physik DOT tu-berlin DOT de>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.22
MIME-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019