From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastian H." Subject: Re: How to save playback out in a file too Date: Mon, 17 Oct 2011 11:56:57 +0200 Message-ID: <4E9BFBE9.1050103@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by alsa0.perex.cz (Postfix) with SMTP id 4788510383B for ; Mon, 17 Oct 2011 12:23:42 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: ajay khandelwal Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org > Hi, > I want to same output of playback in a file. > > We are developing IEC958 device but to debug want to save output of IEC958 > plug in a file. > > Please suggest how to do that? You could use the "file" plugin. Extend your ~/.asoundrc with something like pcm.write_file { type file slave { pcm hw:0 } file "/home/user/alsafile.wav" format "wav" } Then use the "write_file" device for playback. E.g. for mplayer mplayer -ao alsa:device=write_file myvideo.mkv Sebastian