comparison scripts/audio/saveaudio.m @ 3332:7c03933635c6

[project @ 1999-11-02 06:57:12 by jwe]
author jwe
date Tue, 02 Nov 1999 06:57:16 +0000
parents d609b993be3b
children 5e0a0b1cba43
comparison
equal deleted inserted replaced
3331:13cdcb7e5066 3332:7c03933635c6
15 ## You should have received a copy of the GNU General Public License 15 ## You should have received a copy of the GNU General Public License
16 ## along with Octave; see the file COPYING. If not, write to the Free 16 ## along with Octave; see the file COPYING. If not, write to the Free
17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
18 ## 02111-1307, USA. 18 ## 02111-1307, USA.
19 19
20 ## usage: saveaudio (name, X, [, ext [, bit]]) 20 ## -*- texinfo -*-
21 ## 21 ## @deftypefn {Function File} {} saveaudio (@var{name}, @var{x}, @var{ext}, @var{bps})
22 ## Saves a vector X of audio data in the file "name.ext". 22 ## Saves a vector @var{x} of audio data to the file
23 ## The format of the audio file is determined by ext which has to be 23 ## @file{@var{name}.@var{ext}}. The optional parameters @var{ext} and
24 ## written without an inital "."; default value for ext is "lin". 24 ## @var{bps} determine the encoding and the number of bits per sample used
25 ## 25 ## in the audio file (see @code{loadaudio}); defaults are @file{lin} and
26 ## Currently, the following audio formats are supported: 26 ## 8, respectively.
27 ## *) mu-law files with extension "mu", "au" or "snd" 27 ## @end deftypefn
28 ## *) linearly encoded files with extension "lin" or "raw" 28
29 ## If the data is saved linearly, the bit argument decides whether an 29 ## See also: lin2mu, mu2lin, loadaudio, playaudio, setaudio, record
30 ## 8-bit (default) or a 16-bit format is used.
31 30
32 ## Author: AW <Andreas.Weingessel@ci.tuwien.ac.at> 31 ## Author: AW <Andreas.Weingessel@ci.tuwien.ac.at>
33 ## Created: 5 September 1994 32 ## Created: 5 September 1994
34 ## Adapted-By: jwe 33 ## Adapted-By: jwe
35 34