[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audiofire 8 sound card



Dear list,

Due to the large amount of interest I have received from members of this list in relation to the Matlab ASIO extension I mentioned, I thought it would be a good idea to post a link to the code here. You can find it on the Matlab Fileexchange at:

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=15704&objectType=file

Any questions or comments, etc. are welcome,

Best wishes,

Padraig

-------- Original Message --------
Subject: Re: Audiofire 8 sound card
Date: Mon, 09 Jul 2007 10:43:12 +0100
From: Pádraig Kitterick <p.kitterick@xxxxxxxxxxxxxxxx>
To: AUDITORY - Research in Auditory Perception <AUDITORY@xxxxxxxxxxxxxxx>
References: <AUDITORY%200707080010278280.5021@xxxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxxx


-- 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@xxxxxxxxxxxxxxxx