OS/2, eCS & ArcaOS - Technical > Multimedia

Rebuilds of MM Audio Pack

(1/10) > >>

Paul Smedley:
Hi All,

For some reason, something made me thing of the MM Audio Pack (http://r6.ca/MMAudioPak/)

I've rebuilt the 3x DLL's (mmiomp3.dll; mmioflac.dll; mmioogg.dll) with GCC 12.2.0 and to use the libc libraries - previously these were built with EMX and gcc 2.8.x.

I also updated the source libs used (where possible). Whilst mmiomp3 is still using madlib 0.15.0b (as it's the latest availabl), the others are now using the latest libraries.

Not sure if the source is in git anywhere, I'll likely add it to my git when I get a chance.  mmiomp3 and mmioogg were pretty trivial to build; for mmioflac needed some work to adapt to API changes.

I haven't been able to test these much right now (sound doesn't work real well in the VM on my linux laptop) - so they could do really bad things :)

However, on a VM with AC97 hardware, I found that opening a FLAC caused a WPS restart; opening an OGG seemed to open the file ok and start to play, but the timer didn't advance; and for some reason, an MP3 wasn't associated correctly :(

https://smedley.id.au/tmp/mmaudiopack-20221029.zip

Cheers,

Paul

Martin Iturbide:
Hi Paul

Thanks for recompiling this libraries.

I have this two repos on the collected source code on OS2World:
- https://github.com/OS2World/MM-SOUND-MMAudioPack
- https://github.com/OS2World/LIB-MM-libmad

Feel free to modify or update those or clone it. I had already give you access. You  know I don't know much about source code and compiling, but I hope it is helpful.

I will be trying you versions as soon as I get some time. This week I will be getting ready for Warpstock.

Regards

David McKenna:
 Hey Paul,

  Thanks for working on this! I gave it a good test, and here is what I found:

Playback: MP3 and OGG work fine. FLA causes a WPS reset and POPUPLOG:

10-29-2022  16:34:57  SYS3184  PID 0023  TID 002c  Slot 0090
C:\OS2\PMSHELL.EXE
c000009b
1d85092b
EAX=00000000  EBX=00000000  ECX=00000000  EDX=00000000
ESI=18fd0459  EDI=18bc0420 
DS=0053  DSACC=d0f3  DSLIM=bfffffff 
ES=0053  ESACC=d0f3  ESLIM=bfffffff 
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:1d85092b  CSACC=d0df  CSLIM=bfffffff
SS:ESP=0053:06bdeca8  SSACC=d0f3  SSLIM=bfffffff
EBP=06bded60  FLG=00010246

MMIOFLAC.DLL 0001:0000092b

 I'm using your latest UniAud (6.0.3).

Convert: Converting MP3 and OGG to WAV works fine. Trying to convert anything to FLA results in a 0 length file. Trying to convert an FLA file to anything fails with a POPUPLOG:

10-29-2022  11:12:34  SYS3184  PID 0055  TID 0001  Slot 0016
C:\MMOS2\MMCLASS\BIN\AUDCONV.EXE
c000009b
1d87092b
EAX=00000000  EBX=00000000  ECX=00000000  EDX=00000000
ESI=0000000a  EDI=00047ba4 
DS=0053  DSACC=d0f3  DSLIM=bfffffff 
ES=0053  ESACC=d0f3  ESLIM=bfffffff 
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:1d87092b  CSACC=d0df  CSLIM=bfffffff
SS:ESP=0053:00047a40  SSACC=d0f3  SSLIM=bfffffff
EBP=00047af8  FLG=00010246

MMIOFLAC.DLL 0001:0000092b

 Trying to convert anything to OGG crashes the convert app, I lose sound and the 'Convert' menu item with a POPUPLOG:

10-29-2022  11:03:13  SYS3175  PID 0066  TID 0003  Slot 0049
C:\MMOS2\MMCLASS\BIN\AUDCONV.EXE
c0000005
bffe00e3
P1=00000002  P2=0285ffe8  P3=XXXXXXXX  P4=XXXXXXXX 
EAX=0005d130  EBX=02898338  ECX=0285ffe8  EDX=00000000
ESI=02898420  EDI=02898420 
DS=0053  DSACC=d0f3  DSLIM=bfffffff 
ES=0053  ESACC=d0f3  ESLIM=bfffffff 
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:bffe00e3  CSACC=d0df  CSLIM=bfffffff
SS:ESP=0053:0287efdc  SSACC=d0f3  SSLIM=bfffffff
EBP=0287f080  FLG=00010206

GCC1.DLL 0001:000000e3

------------------------------------------------------------

10-29-2022  11:03:13  SYS3170  PID 0066  TID 0001  Slot 008d
C:\MMOS2\MMCLASS\BIN\AUDCONV.EXE
c0010002
1fa5f331
P1=00000003  P2=XXXXXXXX  P3=XXXXXXXX  P4=XXXXXXXX 
EAX=00074130  EBX=02898338  ECX=0003fd08  EDX=174604f0
ESI=00000000  EDI=02898308 
DS=0053  DSACC=d0f3  DSLIM=bfffffff 
ES=0053  ESACC=d0f3  ESLIM=bfffffff 
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:bffe00e3  CSACC=d0df  CSLIM=bfffffff
SS:ESP=0053:00047cfc  SSACC=d0f3  SSLIM=bfffffff
EBP=00047da0  FLG=00010202

PMMERGE.DLL 0004:000ff331

 then have to reboot to get sound back. There is no 'Convert' menu item for MP3. Would be nice to add that. With the original Russel O'Conner version from 2003 (I presume that is what you started with), everything works except can't convert MP3 or OGG to FLA (it just exits the convert app with no error, but not really a practical idea anyway).

 Maybe it would be a good idea to just compile the existing old libraries with the new compiler first so we can compare functionality to the original build?

Regards,

Paul Smedley:
Hi Dave,

https://smedley.id.au/tmp/mmaudiopack-20221030.zip has the minimal changes to work with the newer compiler. It used the libs that are included in the source, although I had to replace some missing files.

The problem with encoding MP3 is that the MAD library only does decoding..

I forked Martin's github and will checkin the code shortly.

Hopefully this one doesn't crash :)

Edit: https://github.com/psmedley/MM-SOUND-MMAudioPack is updated now

Cheers,

Paul

Paul Smedley:
https://smedley.id.au/tmp/mmaudiopack-20221030b.zip fixes a couple of compiler warnings in mmioflac. I still can't get any flac to play - the ones I have don't seem to work with the original mmioflac.dll either...

Navigation

[0] Message Index

[#] Next page

Go to full version