Subject: A strage problem with stdio.
To: None <netbsd-help@netbsd.org>
From: Koh Sato <k-sato@ks-s.otaru-uc.ac.jp>
List: netbsd-help
Date: 12/21/2000 17:21:42
Hello. I encountered a strange problem with stdio
when I try to play an MP3 file(on NetBSD-1.5BETA).
It works fine when I converted an MP3 file into a WAV file
(in a disk, utilizing madplay) and then play the WAV file
with 'waveplay'. But when I connected madplay and waveplay
via pipe, it failed.
Moreover, it is so strange that this problem seems
independent of above 2 applications, according to the following
test(5-6th bytes are different). Does anyone have any idea?
Thanks.
---------------------------------------------------------------
jerry# madplay -o wav:- ../lame3.70/testcase.mp3 | od -cx | head
MPEG Audio Decoder version 0.12.2 (beta) - Copyright (C) 2000 Robert Leslie
0000000 R I F F \0 \0 \0 \0 W A V E f m t
4952 4646 0000 0000 4157 4556 6d66 2074
0000020 020 \0 \0 \0 001 \0 002 \0 D 254 \0 \0 020 261 002 \0
0010 0000 0001 0002 ac44 0000 b110 0002
0000040 004 \0 020 \0 d a t a \0 \0 \0 \0 \0 \0 \0 \0
0004 0010 6164 6174 0000 0000 0000 0000
0000060 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
0000 0000 0000 0000 0000 0000 0000 0000
*
0004460 377 377 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
Broken pipe
jerry# madplay -o wav:- ../lame3.70/testcase.mp3 >a.wav
MPEG Audio Decoder version 0.12.2 (beta) - Copyright (C) 2000 Robert Leslie
6 frames decoded (0:00:00.1)
jerry# od -cx a.wav | head
0000000 R I F F $ l \0 \0 W A V E f m t
4952 4646 6c24 0000 4157 4556 6d66 2074
0000020 020 \0 \0 \0 001 \0 002 \0 D 254 \0 \0 020 261 002 \0
0010 0000 0001 0002 ac44 0000 b110 0002
0000040 004 \0 020 \0 d a t a \0 l \0 \0 \0 \0 \0 \0
0004 0010 6164 6174 6c00 0000 0000 0000
0000060 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
0000 0000 0000 0000 0000 0000 0000 0000
*
0004460 377 377 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
Broken pipe
---------------------------------------------------------------
-
Koh Sato
k-sato@ks-s.otaru-uc.ac.jp