07 April 2021, 09:58 | #1 |
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} Code:
audio/ogg{audio/vorbis,audio/opus} Code:
audio/ogg{audio/vorbis} 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 Code:
audio/mpeg{audio/mp2,audio/mp3} Code:
audio/mpeg{audio/mp2,audio/mp3},audio/ogg{audio/vorbis},audio/mp4{audio/aac},audio/aac,audio/flac,audio/x-ms-wma |
28 July 2021, 00:10 | #2 |
Junior Member
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
|
06 September 2022, 09:04 | #3 |
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 |
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 |
|
|