pread_f * is_DPMI (char *filename) { // currently, this does NOT work with stdin if (!openstream (&dpmi.myStream, filename, dpmi.streamType, dpmi.nic, dpmi.portNumber)) { if (debug > 1) fprintf (fp_stderr, "This is not a DPMI trace\n"); rewind (stdin); return (NULL); } if (debug > 1) { fprintf (fp_stdout, "DPMI trace\n:Comment size: %d, ver: %d.%d id: %s \n comments: %s\n", dpmi.myStream.FH.comment_size, dpmi.myStream.FH.version.major, dpmi.myStream.FH.version.minor, dpmi.myStream.FH.mpid, dpmi.myStream.comment); } if (!net_conf) internal_wired = TRUE; return (pread_DPMI); }
/// /// .wav を読み込む void Wav::load( const FilePath& filepath ) { // ファイルを開いてサイズを取得 openstream(filepath); // サイズ分のメモリを確保 data_ = (uint8_t*)T3_SYS_ALLOC(size_); datastrage_allocated_ = true; // 読み込み readstream(data_, size_); // ファイルを閉じる closestream(); }