44B¤Î¥Õ¥¡¥¤¥ë¤¬½ÐÍè¤ë¤Î¤Ë¶õ¤Î¥Õ¥¡¥¤¥ë¤È¤ÏÉÔÀµ³Î¤Ç¤¹¤Í
savefilename = "D:\\record.wav"
Samplingrate = 44100
samplingbitrate = 16
mci "open new alias rec type waveaudio"
// ²»¼Á¤ÎÀßÄê
mci "set rec channels 2 samplespersec "+str(Samplingrate)+" bitspersample "+str(samplingbitrate)
// Ï¿²»³«»Ï
mci "record rec"
// 1ÉÃÂÔµ¡
wait 100
// Ää»ß¤·½ñ¤¹þ¤ß
mci "stop rec"
mci "save rec \""+savefilename+"\""
mci "close rec"
wait 50
exist savefilename
filesize = strsize
sdim data,filesize+1
bload savefilename,data
lpoke data,28,(Samplingrate*2*(samplingbitrate/8))
bsave savefilename,data,filesize
sdim data
stop
¥µ¥ó¥×¥ê¥ó¥°¥ì¡¼¥È¤äÎ̻Ҳ½¥Ó¥Ã¥È¿ô¤òÊѤ¨¤é¤ì¤ë¤è¤¦¤Ë¤·¤Æ¤ß¤Þ¤·¤¿
¤¦¤Á¤ÎPC¤Ï´ûÄêÃͤκÆÀ¸¥Ç¥Ð¥¤¥¹¤¬96000Hz/24bit¡¢Ï¿²»¥Ç¥Ð¥¤¥¹¤¬48000Hz/24bit¤Ç¤¹¤¬¡¢
¤³¤ÎÊýË¡¤Ç¤ÎÏ¿²»¤Ï44100Hz/16bit¤È48000Hz/16bit¤ÇÏ¿²»½ÐÍè¤Þ¤»¤ó¤Ç¤·¤¿