VOGONS


First post, by Tronix

User metadata
Rank Member
Rank
Member

I recently partially ported libFLAC to 16-bit open watcom compiler. Don't ask me why -)
So, there:

FLAC2WAV <input.FLAC> <output.WAV>
Minimal system spec: 8088 XT 512Kb RAM. Two versions in archive - for XT and 286/NEC_V20 computers. The presence or absence of a 80x87 coprocessor does not affect the speed.

WAV2FLAC <input.WAV> <output.FLAC> [N]
where N is compression level. Default compression is 5.
Minimal system spec: 80286 with 2Mb RAM. The encoder requires significantly more memory for internal structures and buffers than the decoder, so I had to switch to protected mode using an Phar Lap's 286 DOS extender. Mathematics with float numbers is intensively used for encoding, so the presence of a 80287 coprocessor significantly affects the speed. Three versions in archive - 80287 FPU, integer only math (FLAC__INTEGER_ONLY_LIBRARY define) and without FPU (emulation, very slow) .

Just for lulz, nothing more.

Attachments

  • Filename
    WAV2FLAC.ZIP
    File size
    738.13 KiB
    Downloads
    50 downloads
    File license
    Public domain
  • Filename
    FLAC2WAV.zip
    File size
    173.21 KiB
    Downloads
    60 downloads
    File license
    Public domain
Last edited by Tronix on 2022-10-13, 11:32. Edited 1 time in total.

https://github.com/Tronix286/

Reply 2 of 4, by Grzyb

User metadata
Rank Oldbie
Rank
Oldbie

I'm wondering how long it takes to decode 1 minute of FLAC sound on an 8088@4.77...
...but no, I don't want spoilers, some day I'm going to revamp my Turbo XT, set it to de-turbo, and see for myself 🤣

Żywotwór planetarny, jego gnijące błoto, jest świtem egzystencji, fazą wstępną, i wyłoni się z krwawych ciastomózgowych miedź miłująca...

Reply 3 of 4, by Gustavo

User metadata
Rank Newbie
Rank
Newbie
Grzyb wrote on 2022-10-11, 02:01:

I'm wondering how long it takes to decode 1 minute of FLAC sound on an 8088@4.77...
...but no, I don't want spoilers, some day I'm going to revamp my Turbo XT, set it to de-turbo, and see for myself 🤣

I´m curious too. I bet it will be more than an hour, but sometimes the little Intel surprises me.

Reply 4 of 4, by Tronix

User metadata
Rank Member
Rank
Member

And now MP3 to WAV simple decoder for [XT][8088].
I used Helix mp3 decoder from RealNetworks. I made changes to the assembly.h file (rewrite MULSHIFT32(), MADD64(), SAR64() in 8088 assembler). Source code: https://github.com/Tronix286/HELIXMP3

So, actual version here: https://github.com/Tronix286/HELIXMP3/blob/main/real/mp3.exe
MP3 <input.MP3> <output.WAV>

https://github.com/Tronix286/