Hi,
I'm trying to use minimad to understand the interface to libmad. First, I was having trouble using it with a command like: cat test.mp3 | minimad This was failing on the test for fstat...
So, I modified the code: fd = open ("test.mp3", O_RDONLY); fstat (fd, &stat); fdm = mmap(0, stat.st_size, PROT_READ, MAP_SHARED, fd, 0); if (fdm == MAP_FAILED) return 3;
When I run this version of minimad, minimad dumps junk to my screen.
Anyone have any ideas about what's going wrong?
w