No BSD License  

Highlights from
pa-wavplay

4.80952

4.8 | 21 ratings Rate this file 41 Downloads (last 30 days) File Size: 113 KB File ID: #4017

pa-wavplay

by

 

29 Sep 2003 (Updated )

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

| 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.

Acknowledgements

This file inspired Tplay.M: Artefact Free Audio Presentation Despite Windows 7.

MATLAB release MATLAB 6.5 (R13)
Other requirements Win32 only. Source code available at: http://sourceforge.net/projects/pa-wavplay/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (32)
25 Jul 2014 Joseph Desloge

OK -- the new (64-bit) version is back up. Had to use GitHub to store the files. Enjoy.

24 Jul 2014 Joseph Desloge

Bad news: Mathworks removed the 64-bit pa-wavplay. Apparently, new submissions can no longer contain MEX files -- and pa-wavplay, both old and new, relies on MEXs. My apologies. I'm working on a work-around.

23 Jul 2014 Joseph Desloge

I love this tool. So far, it's main limitation for me has been that is only works on 32-bit versions of Matlab.

So, I went and found the original code on SourceForge and re-worked it so that it now runs on both 32-bit and 64-bit versions of Matlab. Further, I have added WASAPI audio (the newest form of Windows Audio for Win Vista and later) to its capability.

The Matlab call structure remains unchanged, so it should be backward compatible with existing code.

It can be found by searching for "pa-wavplay 32-bit and 64-bit". Hope this helps someone else also.

12 Jan 2014 John

Follow up on my previous comment: I have pa_wavplay working now on a 64-bit Win 7 machine with MATLAB R2013b(32-bit). The digitizer is a PreSonus FP-10 with Firewire interface and the PreSonus ASIO driver. My experience agrees with what Philippe-Aubert Gauthier reported below in 2010: pa_wavplay still works but you must use a 32-bit version of MATLAB.

11 Jan 2014 John

Has anyone been able to compile an update for Win 7 64bit that works with the current version of Matlab?

26 Dec 2011 Li Shenguang

Great!It's just what I am looking for~~~

08 Sep 2011 Ajay Kumar

What is is the maximum number of channels that it can support?
I plan to use about 64 Inputs. I can manage to find a 64 Input sound card. But, is it possible to record all those channels using this code?

10 Dec 2010 Kenneth Faller II

Does this support synchronous or asynchronous audio IO?

20 Sep 2010 Corey Gravelle

Pretty good stuff, my only gripes would be my inability to turn off the printed text "Playing on device (x)" and "Recording on device (x)", probably because I'm a DLL novice. Also, the lag between recordings (see Daniel Oberfeld's comment) was an issue for my planned use. Nevertheless, great coding and thanks!

16 Sep 2010 Trevor Agus

Really useful code, thanks. Is there (or could there be) an option to suppress the text output that seems to be standard. Whenever I play a sound using pa_wavplay, I get output such as:

Using ASIO driver
Playing on device 0

This can be reassuring, but it is problematic if (say) you're trying to test whether someone can hear the sound or not.

14 Aug 2010 Rafal Samborski

Good job! Works well with Lexicon Ionix u82s ASIO.

30 Jul 2010 Philippe-Aubert Gauthier

Following my previous comment, here is my recent advice. On win64 bits, I have not been able to run pa_wavplay in Matlab 64 bits. Using Matlab 32 bits in Win 7 64 bits, I have been able to run pa_wavplay without any problem with a 96-channel system made from MOTU sound cards.

12 Jul 2010 Philippe-Aubert Gauthier

Anybody heard about a a win64 compiled version of the pa_wavplay's sll?

15 May 2008 oktus oktus

Works well with my Creative E-MU 0202 USB SoundCard

28 Jan 2008 V M

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

16 May 2007 Erik Östlin

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

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?

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!

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

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

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

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!

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)! :(

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.

02 Mar 2005 Ipek Oruc

Works great! Very useful!

28 Dec 2004 Christopher Brown

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

03 Nov 2004 augie widyotriatmo  
22 May 2004 Artur Ready

Excellent job. Its very helpfull. :)

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";-)

28 Nov 2003 Huss Habiboglu

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

02 Oct 2003 Trent Mankelow

This is simply the best piece of software ever written.

02 Oct 2003 Rua Haszard Morris

shot bro

Updates
02 Oct 2003

Modified documentation and Description for web page.

19 Nov 2003

Added a link to the source code in Other requirements.

Contact us