4.86667

4.9 | 15 ratings Rate this file 60 downloads (last 30 days) File Size: 113.36 KB File ID: #4017

pa-wavplay

by Matt Frear

 

29 Sep 2003 (Updated 30 Sep 2004)

No BSD License  

Play and record multi-channel audio using either an ASIO, DirectSound, or Windows multimedia audio d

Download Now | Watch this File

File Information
Description

The zip file contains 3 separate MEX file dlls, one for asio, one for windows audio, and one for directx.

See the included pa_wavplay.m, pa_wavrecord.m, and pa_wavplayrecord.m for documentation.

pa_wavplay uses the open source portaudio API.

MATLAB release MATLAB 6.5 (R13)
Other requirements Win32 only. Source code available at: http://sourceforge.net/projects/pa-wavplay/
Zip File Content  
Other Files pa_wavrecord.m,
pa_wavplayrecord.m,
pa_wavplay.m,
pawavplaya.dll,
pawavplayx.dll,
pawavplayw.dll,
pa_wavplay usage instructions.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (19)
02 Oct 2003 Rua Haszard Morris

shot bro

02 Oct 2003 Trent Mankelow

This is simply the best piece of software ever written.

28 Nov 2003 Huss Habiboglu

Very neat and nice indeed! I think you're using PortAudio. Thanks!

21 May 2004 Ryu Araki

very nice, but with 'async' mode support, this package will be more and more useful. Regarding 'async' mode, see "help wavplay";-)

22 May 2004 Artur Ready

Excellent job. Its very helpfull. :)

03 Nov 2004 augie widyotriatmo  
28 Dec 2004 Christopher Brown

ASIO works great with the Echo Gina3G multichannel card. Thank you!

02 Mar 2005 Ipek Oruc

Works great! Very useful!

11 Mar 2005 Daniel Oberfeld

Great, exactly what I was looking for... Tried to code something myself with PortAudio, but this tool saved me loads of time.

Two comments:
1) Would be nice if one could control the latency between input and output. I use an RME Digi 9636 and the recodings always have some 100 ms of silence at the beginning.

2) Sometimes I get 'truncated playback': the last few ms of a sound are not played. I use a simple workaround by padding the sound with 100 ms digital 0.

05 Apr 2005 Thomas S

I can't seem to get any sound in or out using M-box (I've installed the ASIO core drivers available on Digidesigns homepage)! :(

06 Apr 2005 David Hallett

Once again Matt Frear amazes us with his amazing talents and produces software that exceeds even our most lofty expectations. Well done Matt!

09 Dec 2005 Ray Goldsworthy

I would love some follow up concerning using this file with the MBox since that was the only negative review. grazi: raygold@mit.edu

30 Jan 2006 Bob Setseo

First of all how do I get this application to run.I am new to matlab so please would someone give me a step by step guide on how to do this.I want to play a wav file that has 5 columns in matlab so i understand pa_wavplay can do that.However,I realised the setup is quite straight.What other supporting libraries do i need to download and where do i install what.do the dll's go into my matlab working directory or somewhere else?

Too many questions,please help

23 Feb 2006 Peyroutet Olivier

Very good software, but I've got a mistake with memory management: I have put the function call 'pawavplayw' into a loop to continuously record 1 second samples, but it uses more and more memory, and Matlab crashes after about 50 iterations.
So do anyone have the solution to this problem?? (how to release memory between each iteration?)
thanks

23 Mar 2006 Philippe-Aubert Gauthier

A really great set of functions. I am now using pawavplaya directly and wondering why (by comparison with "soundsc" or "sound" in Matlab) it is not possible to make something else (in the command window) when "pawavplaya" is running ... "sound" seems to be based on "playsnd" which does not stop the access to the command window. Anyway, the functions are so great that I must admit that without that I would not have been able to finish my PhD on time!

06 Apr 2006 Philippe-Aubert Gauthier

I am wondering if pa_wavplay is working with ASIO or ASIO2? Since it is from 2003, and I think (?) that ASIO2 are from 2002-2003?

16 May 2007 Erik Östlin

Fantastic; it worked straight away with my Digigram VXPocket 440 soundcard (4 outputs and 2 inputs); many thanks!

28 Jan 2008 V M

Worked extremely well out of the box! Why hasn't something like this been incorporated into Matlab yet?

15 May 2008 oktus oktus

Works well with my Creative E-MU 0202 USB SoundCard

Please login to add a comment or rating.
Updates
02 Oct 2003

Modified documentation and Description for web page.

19 Nov 2003

Added a link to the source code in Other requirements.

30 Sep 2004

Version 2.1 released.
+ recording capability
+ simultaneous playing & recording
+ uses floats (32bit) internally instead of shorts (16bit).

Tag Activity for this File
Tag Applied By Date/Time
sound Matt Frear 22 Oct 2008 07:08:10
asio Matt Frear 22 Oct 2008 07:08:10
directsound Matt Frear 22 Oct 2008 07:08:10
multichannel Matt Frear 22 Oct 2008 07:08:10
playback recording Matt Frear 22 Oct 2008 07:08:10
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com