hi Gareth,
now i can run minimad and it output file,but what is the output file's format? it may be inputed directly to DAC?
the madplay can output raw format file and it can play when i simply add wave format header to it. but minimad'output dont the same as madplay's.
On 2002-03-18 11:38:00 Gareth wrote:
i dont know how to initiate arm and set the start address using arm-linux.whether in ctr0.s ?
I think the function 'decode' will just take a pointer to where the mp3 is. In minimad.c : decode(fdm, stat.st_size);
where fdm is the pointer to the mp3 data
what do the stdin and stdout refer to ? keyboard and screen? in minimad.c : int main(int argc, char *argv[]) { struct stat stat; void *fdm;
if (argc != 1) return 1; .. if you run minimad with any parameters it will return doing nothing.
Yes it will normally print the data to the screen so you redirect it to a file using "> audio.pcm."
"if (argc != 1)" means return if the arguments are not 1. So if there are no arguments it will do nothing.
Have you managed to compile minimad.c for arm yet?
Best regards.
acen10 acen10@263.net