16 2
C C
,
sampling
AutoCADにMS Wordを持参する方法1
() , quantization ()16 bit(2 byte) 8 bit (1 byte)
C `signed short int' ( short ) 2 byte (-32768 32767 ) 16 short 1
2 ( ) ()
Microsoft WAVE (RIFF) writeWavHead wav_io.c
どのように私はエプソンのプリンタをインストールするには
int writeWavHead (int sampling_frq, int bit, int channel, int datasize, FILE *fp)writeWavHead ()
- sampling_frq
- : [Hz]
- bit
- :
- channel
- : MONORAL ( MONORAL wav_io.h )
- datasize
- :
- fp
- : (; FILE * fopen )
writeWavHead
C fwrite 2 fwrite
if (fwrite(iwave, 2, dur_in_pnt, fp) != (unsigned)dur_in_pnt) { fprintf(stderr, "error: fail to save iwave[].\n"); return 1; }
C
UNIX file.c wav_io.c a.out
cc file.c wav_io.c
UNIX C
Windows C fopen "wb" ( ) "rb" ()
UNIX Windows
その他には、Windows Media PlayerコピーDVDができます
2-1
2 500 msec (0.5 440 Hz [je2-1.c] .wavls 0 file RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 11025 Hz
C
short * iwave;short iwave dur_in_pnt
if ((iwave = (short *)malloc(dur_in_pnt * 2)) == NULL) { fprintf(stderr, "error: cannot allocate enough memory for iwave[].\n"); return 1; }dur_in_pnt short iwave
(iwave)
free(iwave);
2-2
- 2 [je2-2.c]
malloc iwave dur_in_pnt = atoi(argv[1]);
- 2 [je2-3.c]
Windows XP
3.1.0.1
Windows XP H:UNIX ; fs H: UNIX .nthome fs .nthome H:3.1.0.2
UNIX scpscp cp
scp file [...] destfile
scp file [...] destdirfile [...] destfiledestdir file destfile, destdir host: host host: host
scp sine.wav fs:.nthomesine.wav fs .nthome Windows H: 2
host man scp scp scp
wav 3Windows : sndrec32 (: sndvol32)
0 コメント:
コメントを投稿