⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auxana_rec.3

📁 speech signal process tools
💻 3
字号:
.\" Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved.\" @(#)auxana_rec.3	1.2	10/6/87 ESI.TH AUXANA_REC 3\-ESPS 10/6/87.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..ds ]Y "\fBESI INTERNAL\fP.SH NAMEallo_auxana_rec \- allocate memory for auxiliary portion of an expandedESPS FEA_ANA file record..brinit_auxana_hd \- initialize an expanded FEA file header for subtype FEA_ANA..SH SYNOPSIS.ft B.nf#include <esps/esps.h>#include <esps/fea.h>#include <esps/anafea.h>#include <esps/feaquant.h>struct auxana *allo_auxana_rec( hd, p )struct header *hd;struct anafea *p;intinit_auxana_hd( hd, order_vcd, order_unvcd, maxpulses, maxraw )struct header *hd;long order_vcd;long order_unvcd;long maxpulses;long maxraw;.fi.ft.SH DESCRIPTION\fIAllo_auxana_rec\fR allocates memory for the auxiliary portion of anexpanded FEA_ANA file record and returns a pointer to it. The memoryallocations assume that the header was initialized by a call to\fIinit_auxana_hd\fR. Because the size of the allocated recorddepends on values in the data file header, it is important to ensure thatan expanded FEA_ANA record is consistent with the header of the file itis being used with [see \fIinit_auxana_hd\fR]. Internally,\fIallo_auxana_rec\fR hooks the FEA record up to an \fIauxana\fR struct..PP\fIInit_auxana_hd\fR accepts a pointer \fIhd\fR to an ESPS FEA file header. Itinitializes the record-field definitions to describe the auxiliary fields thatmake up an expanded file of subtype FEA_ANA. It does this by means of calls to\fIadd_fea_fld\fR (3\-ESPS). For a description of the expanded FEA_ANA recordfields, see \fIaux_ana\fR (5\-ESPS). \fIInit_auxana_hd\fR returns 1 if any ofthe internal calls to \fIadd_fea_fld\fR (3\-ESPS) return an error code; otherwise,it returns 0. \fIInit_auxana_hd\fR should be called only when creating a newexpanded FEA_ANA file, after the call to \fInew_header\fR (3\-ESPS), or\fIcopy_header\fR (3\-ESPS). For a description of the parameters \fIorder_vcd\fR,\fIorder_unvcd\fR, \fImaxpulses,\fR and \fImaxraw\fR, see \fIfea_ana\fR (5\-ESPS)..SH EXAMPLES.if n .ta 33.if t .ta 3i.nf\fB\s-1Reading an existing file:\s+1\fRFILE *ifp;struct auxana *auxana_rec;struct anafea *anafea_rec;struct header *ih;ih = read_header( ifp );anafea_rec = allo_anafea_rec( ih );auxana_rec = allo_auxana_rec( ih, anafea_rec );if ( get_anafea_rec( anafea_rec, ih, ifp ) == EOF ) . . .for ( i = 0; i < order; i++ )    c[i] = auxana_rec\->spec_param_idx[i];\fB\s-1Creating a new file:\s+1\fRFILE *ifp;FILE *ofp;struct auxana *auxana_rec;struct anafea *anafea_rec;struct header *ih;struct header *oh;ih = read_header( ifp );oh = copy_header( ih );if ( init_auxana_hd( oh, order_vcd, order_unvcd, maxpulses, maxraw ) )    ERROR_EXIT( "error filling expanded FEA_ANA header" ); . . .write_header( oh, ofp );anafea_rec = allo_anafea_rec( oh );auxana_rec = allo_auxana_rec( oh, anafea_rec ); . . .for ( i = 0; i < order; i++ )    auxana_rec\->spec_param_idx[i] = c[i]; . . .put_anafea_rec( anafea_rec, oh, ofp );.fi.PPIn both of these examples, notice that the FEA_ANA read and writeroutines, \fIget_anafea_rec\fR (3\-ESPS) and \fIput_anafea_rec\fR(3\-ESPS), implicitly perform the I/O for the auxiliary data \- noseparate routines are needed..SH DIAGNOSTICSIf \fIhd\fR does not point to a FEA header of subtype FEA_ANA, theprogram terminates with an assertion failure.  .SH BUGSNone known..SH SEE ALSOallo_anafea_rec (3\-ESPS), init_anafea_hd (3\-ESPS), aux_ana (5\-ESPS),fea_ana (5\-ESPS)..SH AUTHORPrograms and manual page by Jim Elliott.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -