Subject: Re: Audiofire 8 sound card From: =?ISO-8859-1?Q?P=E1draig_Kitterick?= <=?ISO-8859-1?Q?P=E1draig_Kitterick?=> Date: Mon, 9 Jul 2007 10:43:12 +0100 List-Archive:<http://lists.mcgill.ca/scripts/wa.exe?LIST=AUDITORY>Hi Elena, Be aware that pa_wavplay loads the entire sample buffer into memory _before_ playing, which of course causes large delays for large soundfiles. This was a particular problem with the type of multi-channel, high sampling rate files I was trying to play in a time-critical application. So, I put together a MEX extension for Matlab which uses ASIO, PortAudio (http://www.portaudio.com/) and libsndfile (http://www.mega-nerd.com/libsndfile/). It does a buffered read from the sound file, allowing for instant playback of even very large files, and has full support for any device with ASIO-compliant drivers. Let me know if you're interested and I send you the code. Padraig -- Pádraig Kitterick Graduate Student Department of Psychology University of York Heslington York YO10 5DD UK Tel: +44 (0) 1904 43 3170 Email: p.kitterick@xxxxxxxx