English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 07 April 2021, 09:58   #1
TomSoniq
Registered User
 
Join Date: Feb 2019
Location: Hannover / Germany
Posts: 22
Query supported MIME types from MHI

Hi all,


MHI was originally developed as an easy to use interface to send MPEG audio data (mainly layer 2 and layer 3 a.k.a. mp2 and mp3) to a mp2/mp3-only hardware decoder. (This is where the M in MHI comes from )


Nowadays more advanced hardware decoders have become available like the one on the Prisma Megamix. So MHI has evolved into a standard for sending all sorts of compressed audio to a hardware decoder.


But the application using it can't know which formats are actually supported by the corresponding hardware. It can only make a guess or simply send any data hoping that it would work. Not a good long term solution.


So what about adding a new query tag to MHIQuery() which returns a list of supported audio formats?


To make this open to the future I'd suggest it simply returns a comma-separated list of MIME types.


This is still a little ambiguous because MIME types tend to specify the container rather than the CODEC. Hence it might make sense to create a sub-list for each container and list the specific codecs in it like:


Code:
audio/mpeg{audio/mp2,audio/mp3}
or


Code:
audio/ogg{audio/vorbis,audio/opus}
and hardware modules that can do vorbis but can't do opus could list:


Code:
audio/ogg{audio/vorbis}
These sub-lists lead us to MPEG-4 audio a.k.a. m4a which also can contain various formats like ALS, CELP and Direct Stream Transfer but mainly AAC.


So a hardware decoder that supports AAC contained in MP4 (which is ADIF) but also as a raw AAC-ADTS stream could list


Code:
audio/mp4{audio/aac},audio/aac
So the response for MAS3507D based players would simply be:


Code:
audio/mpeg{audio/mp2,audio/mp3}
But VS1063 based players like the Prisma Megamix would at least reply:


Code:
audio/mpeg{audio/mp2,audio/mp3},audio/ogg{audio/vorbis},audio/mp4{audio/aac},audio/aac,audio/flac,audio/x-ms-wma
What do you think?
TomSoniq is offline  
Old 28 July 2021, 00:10   #2
kriz
Junior Member
 
kriz's Avatar
 
Join Date: Sep 2001
Location: No(R)Way
Age: 41
Posts: 3,185
Somehow this topic went unanswered, but it would be very nice to have these options for the different formats... Also makes higher potential for new cards or productions
kriz is offline  
Old 06 September 2022, 09:04   #3
TomSoniq
Registered User
 
Join Date: Feb 2019
Location: Hannover / Germany
Posts: 22
I've uploaded a new dev archive to Aminet which supports this:
http://aminet.net/driver/audio/mhi_dev.lha
TomSoniq is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Approaches to MHI stevelord Coders. General 3 10 May 2020 19:41
[blitz] gui for MHI - ready to use peceha Coders. Blitz Basic 28 19 April 2020 23:44
Icon types AmiGer project.WHDLoad 9 10 September 2013 19:41
MIME type for .ADZ files on the Abime.net server eLowar project.EAB 1 16 September 2007 12:10
A1200 - Different types? teh New to Emulation or Amiga scene 4 07 June 2004 16:57

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:39.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08332 seconds with 13 queries