[linux-minidisc] Implementing downloading in QHiMDTransfer
Hello,
I am currently trying to implement downloading tracks to HiMD for
QHiMDTransfer, I have some questions regarding this:
Is there a way to tell if a file is actually an MP3 file or not, using
libmad (could not find anything in their "documentation", perhaps someone
here knows better)? I looked at the code of himdcli and could not find a
file type checking, so I just tried to transfer something else and it
"succeeded". Obviously, the HiMD-Player complains about the useless track.
This is okay for a CL-Interface where people are supposed to know what
they are doing, but at least for me that would be an unacceptable behavior
of a GUI application.
If there is no way, should I just check, if the file ends with '.mp3'?
Would not be a really good solution, but better than nothing IMHO.
I would need to recycle some code from himdcli. Simply copying and pasting
is obviously a terrible solution. Should I add higher level functions to
libhimd (seems to be low-level orientated) or introduce a new library for
that? If the latter, someone else would need to integrate it into these
strange Qt Project files. I have no idea at all how these work...
Kevin