libsent/src/anlz/wrsamp.c

説明を見る。
00001 
00016 /*
00017  * Copyright (c) 1991-2006 Kawahara Lab., Kyoto University
00018  * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
00019  * Copyright (c) 2005-2006 Julius project team, Nagoya Institute of Technology
00020  * All rights reserved
00021  */
00022 
00023 #include <sent/stddefs.h>
00024 #include <sent/speech.h>
00025 
00035 int
00036 wrsamp(int fd, SP16 *buf, int len)
00037 {
00038   int ret;
00039 #ifndef WORDS_BIGENDIAN
00040   /* swap byte order to BIG ENDIAN */
00041   swap_sample_bytes(buf, len);
00042 #endif
00043   ret = write(fd, buf, len * sizeof(SP16));
00044 #ifndef WORDS_BIGENDIAN
00045   /* undo byte swap */
00046   swap_sample_bytes(buf, len);
00047 #endif
00048   return(ret);
00049 }

Juliusに対してTue Dec 26 16:19:28 2006に生成されました。  doxygen 1.5.0