dt2iff

OlafS3 · 35060

AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #105 on: November 22, 2021, 12:29:34 PM

Try AmiDevCPP to compile for Amiga OS 3.x

Done also this experience, I also installed amiga-gcc-6.4.1b as recommended by "jotd" in the attached link, but the compilation did not happen due to many errors, see screenshot.

http://eab.abime.net/showthread.php?t=93813


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #106 on: November 22, 2021, 02:38:22 PM
AMIGASYSTEM

Are you compiling for AROS 68k or for Amiga 68k?

If it's for Amiga keep in mind that includes may be different.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #107 on: November 22, 2021, 02:50:58 PM
My intention was to compile it for OS3, but can AmiDevCpp compile for AROS 68k as well? I haven't found any examples on how to set up AROS 68k, if you have some I could look into it !


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #108 on: November 22, 2021, 03:43:51 PM
My intention was to compile it for OS3, but can AmiDevCpp compile for AROS 68k as well? I haven't found any examples on how to set up AROS 68k, if you have some I could look into it !

I'm not sure. I will look at it later today.

I did notice though that there are only two sound datatypes: wave and 8svx. But 8svx only has Read8svx but no Write8svx.

So we can open 8svx and convert to wave but not the other way.

Where do we find an 8svx sound sample? Something to test.
« Last Edit: November 22, 2021, 03:52:36 PM by miker1264 »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #109 on: November 22, 2021, 04:34:48 PM
8SVX sound samples were used by programs, games, emulators, I attach some links where you can find 8SVX sounds.

Directory Sound
https://aminet.net/search?query=AmiArcadia.lha

Directory Samples
https://aminet.net/package/misc/emu/fMSX

On 3 Directory GfxMaps
https://aminet.net/search?query=cyberlemming

Directory Sound
https://aminet.net/search?query=videofx


On Amiga there were some converters of this format and compatible, you can see one in the screenshot, your DTConv could do the same conversions i think !


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #110 on: November 23, 2021, 10:50:13 AM
AMIGASYSTEM

Yes. The 8svxtoxxx application works on AROS 68K.

Thanks for the samples. I'm working on sound conversion.

The datatype conversion isn't difficult. But getting a datatype is.




AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #111 on: November 23, 2021, 11:38:36 AM
AMIGASYSTEM

Yes. The 8svxtoxxx application works on AROS 68K.


Yes 8SVXtoXXX works fine on AROS 68k, it seems to suffer with large files.

https://aminet.net/search?query=+8svxtoxxx+



More powerful seems to be SoundConvert other nice software, see screenshot

https://aminet.net/search?query=SoundConvert


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #112 on: November 23, 2021, 12:56:07 PM
DTConv successfully converted an 8svx file to wave.

The difficulty is not the sound datatype conversion. That's actually easier than picture datatype conversion.

The problem is getting an empty sound datatype for destdto (destination datatype) so that we can copy from srcedto to it.

Getting an empty datatype object works for pictures but not for sound datatypes. So I noticed that getting a sound datatype from an existing file works. So I set up a workaround to test my code for sound conversion.

Copy the prototype to Ram Disk that represents the destination format. When getting a destination datatype we use that file.

Object *destdto = NewDTObjectA(dest, NULL); where dest is the prototype filename in Ram Disk. We are only interested in the container and basename not the contents. The data will be copied from srcedto to destdto. The conversion to wave works.

After working with sound files I realize we need more datatypes! Maybe MOD, MIDI, OGG, MP3, WMA  just to mention a few.  :)
« Last Edit: November 23, 2021, 02:29:11 PM by miker1264 »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #113 on: November 24, 2021, 04:17:24 PM
On Aminet I found a small program named "a2ps" to convert a TXT to Ps (PostScript), on OS3 it works perfectly.

Of the program you install two files the executable "a2ps" in C: and a data file called "a2ps-header.ps" in S:

Inside the archive there is a source in C that I have compiled for AROS x86 successfully and without errors.

I tested the compiled executable "a2ps" on AROS One x86 and the program works perfectly, there is only one problem, on AROS I can't find the file "a2ps-header.ps" in S:

In the Readme there is information on how to modify the path of "a2ps-header.ps".


I attach link "a2ps":
https://aminet.net/package/text/print/A2ps


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #114 on: November 24, 2021, 04:57:04 PM
On Aminet I found a small program named "a2ps" to convert a TXT to Ps (PostScript), on OS3 it works perfectly.

Of the program you install two files the executable "a2ps" in C: and a data file called "a2ps-header.ps" in S:

Inside the archive there is a source in C that I have compiled for AROS x86 successfully and without errors.

I tested the compiled executable "a2ps" on AROS One x86 and the program works perfectly, there is only one problem, on AROS I can't find the file "a2ps-header.ps" in S:

In the Readme there is information on how to modify the path of "a2ps-header.ps".


I attach link "a2ps":
https://aminet.net/package/text/print/A2ps

Why can't you just copy a2ps-header.ps to S: ?



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #115 on: November 24, 2021, 05:24:37 PM
Why doesn't it work with AROS!


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #116 on: November 24, 2021, 05:30:44 PM
Why doesn't it work with AROS!

I can't unpack the archive. Unknown compression.

Maybe post it here so I can check it.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #117 on: November 24, 2021, 05:55:48 PM
Strange is a LZH standard (LHA variant), you can unzip it on Windows with WinRAR, with AROS One x86, either from Wanderer (ZuneARC) or from Dopus4, On AROS One 68k with Wanderer or Dopus4.


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #118 on: November 24, 2021, 10:52:53 PM
The commandline datatypes conversion app is finished.  :)

I suppose now I must put together a user-friendly interface.

I found a good sample of gadtools from Thomas Rapp. So I suppose I'm old school because I prefer GadTools over MUI.   :P

« Last Edit: November 25, 2021, 01:28:18 PM by miker1264 »



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #119 on: November 25, 2021, 07:53:52 AM

I can't unpack the archive. Unknown compression.

Maybe post it here so I can check it.

If it helps, i recreated the archive in Zip