おおつかです >>>>> <77adlq$rq4$1 _at_ newsgw8.odn.ne.jp> の記事で >>>>> "Makino Ken-ichi" <chinu _at_ pop01.odn.ne.jp> さんは書きました Ken> 牧野と言います。 Ken> このスレッドを見付けて、自分でもLinuxでMp3ファイルを作ってみようと Ken> 思ったんですが、8hz-mp3がコンパイル出来なくて困ってます。 [...] Ken> Makefileなど、何処をどういじればいいか、さっぱり見当が付かないので、 Ken> ヒントなど教えてもらえると嬉しいです。 wave.c 冒頭の #include <fcntl.h> /* use setmode */ #include <io.h> /* use setmode */ は消去しちゃって下さい。それと setmode 関数の呼び出し部分も外します。 *** wave.c.orig Sun Sep 6 21:16:39 1998 --- wave.c Sun Sep 6 21:16:50 1998 *************** *** 48,59 **** int i; /* loop counter for seek stream */ #endif /* WAVCH */ - if (config.from_stdin) { - config.wave.file = stdin; - setmode(fileno(stdin), O_BINARY); /* samples are binary stream */ - } else { if((config.wave.file = fopen(config.infile,"rb")) == NULL) ERROR("Unable to open file"); - } #ifdef MFCPCM /* dodgy PCM hacked back in */ if (pcm_switch == 1) { /* force raw pcm reading */ --- 48,54 ---- これでうまくいくと思います。(というか上のは Unix には関係ない部 分なんですね) -- ======= L i n u x I n s i d e ============================ おおつかまさひと | E-mail : negi _at_ KU3G.org OHTSUKA Masahito | WWW : http://www.KU3G.org/negi/
Follow-Ups:
- [fol] Re: 8hz-mp3 のコンパイルMakino Ken-ichi
- [fol] Re: Linux でMP3音楽データを再生する方法の報告Akira Gonda
- [fol] Re: Linux でMP3音楽データを再生する方法の報告sphere
- [fol] 8hz-mp3 のコンパイルMakino Ken-ichi
- Prev by Date: [fol] Re: Word 文書やExcelファイルは読めますか?
- Next by Date: [fol] Re: ATI 3D RagePro(AGP) + XFree86 3.3.3.1 problem
- Previous by thread: [fol] 8hz-mp3 のコンパイル
- Next by thread: [fol] Re: 8hz-mp3 のコンパイル
- Indexes:[Main][Thread]