I have read them, but I still don’t get why two classes for loading media files are needed
Did you look up the System overview?: https://www.haiku-os.org/legacy-docs/bebook/TheMediaKit_Overview.htm
The MediaFile is to access a MediaFile (read write and so on)
MediaFiles is to assing a Mediafile to a system events and so on
https://www.haiku-os.org/legacy-docs/bebook/BMediaFiles_Overview.html
thanks for the explanation