Mercurial > hg > ishara
view audio/audio_format.m @ 38:9d24b616bb06
Added function algebra.
author | samer |
---|---|
date | Tue, 29 Jan 2013 15:59:01 +0000 |
parents | 672052bd81f8 |
children |
line wrap: on
line source
% audio_format - make javax.sound.sampled.AudioFormat object % % audio_format :: % N:natural ~'number of channels', % R:nonneg ~'sampling rate in Hz' % -> javax.sound.sampled.AudioFormat. function f=audio_format(channels,rate,bits,bigendian) if isnan(channels), channels=-1; end if isnan(rate), rate=-1; end if nargin<3, bits=16; end if nargin<4, bigendian=false; end f=javax.sound.sampled.AudioFormat(rate,bits,channels,true,bigendian);