Any resources on how to implement Reggae classes?
  • Just looking around
    Posts: 6 from 2018/8/29
    Hey everyone,

    I'm trying to write a Reggae class for MOD files. Other than the autodocs, I haven't found any information on how to write a Reggae class (everything in the library seems directed to someone consuming classes, not writing them).

    Do you guys know if there are any sample source code around? Something simple, like the sample libraries included in the SDK would be ideal. If not, any tips would be greatly appreciated :-)

    Thanks!
  • »07.09.18 - 19:20
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Jeckel
    Posts: 123 from 2007/3/11
    +1 on that one! There is a couple of classes I'd like to write. :)
  • »07.09.18 - 21:01
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    zukow
    Posts: 485 from 2005/2/9
    From: Poland
    I'll contact with Krashan and ask which his classes can be released as examples. I'll also release one of my classes (probably sunraster decoder/demuxer, crop filter, and maybe some en coder muxer). Which type of classes (except mod) do You want to implement?


    [ Edited by zukow 07.09.2018 - 23:21 ]
  • »07.09.18 - 21:21
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Jeckel
    Posts: 123 from 2007/3/11
    Would be great!
    On my side I'd like to create at least an audio decoder and some image decoders (and eventually encoders).
  • »07.09.18 - 21:32
    Profile
  • Just looking around
    Posts: 6 from 2018/8/29
    Quote:

    zukow wrote:
    I'll contact with Krashan and ask which his classes can be released as examples. I'll also release one of my classes (probably sunraster decoder/demuxer, crop filter, and maybe some en coder muxer).



    Thank you so much zukow. You're awesome :-)

    Quote:


    Which type of classes (except mod) do You want to implement?



    I'm mostly interested in audio classes -- after the MOD one, if things go well I'd move to similar formats (e.g. MED or AHX).

    Thanks!
  • »07.09.18 - 21:57
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    polluks
    Posts: 398 from 2007/10/23
    From: Gelsenkirchen,...
    At least we have deep_demuxer and deep_decoder.
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.11
  • »08.09.18 - 23:22
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Quote:

    adolfopa wrote:
    If not, any tips would be greatly appreciated :-)

    You can just ask here. However I admit that some simple audio decoder/demuxer source code would be a good start. However MOD player will be a special case, as it will not stream data from the source while playing. Instead a demuxer should load the whole module from source into memory and then render some PCM audio (I guess simply INT16, which is 16-bit signed PCM) to its output. Then audiopcm.decoder will be connected automatically by Reggae, which, in most cases, will detect identity audio transformation (INT16 -> INT16) and will just forward pull requests.

    For Reggae you will need pull-driven replayer, I mean it has to be able to deliver audio frames in arbitrary sized blocks, and timing should be based solely on frame counter and requested sampling rate.
  • »12.09.18 - 19:16
    Profile Visit Website
  • Just looking around
    Posts: 6 from 2018/8/29
    Quote:

    Krashan wrote:
    You can just ask here.



    You're gonna regret saying that, believe me ;-)

    Thanks a lot for the info. I'll try to move forward with a simpler class then, and ask here in the forums if I find any problems.

    Thanks!
  • »12.09.18 - 19:50
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    zukow
    Posts: 485 from 2005/2/9
    From: Poland
    Taaadaaam:
    https://expirebox.com/files/475600153264a4f7a8f2e833bf3b3656.lha

    I included my deep.demuxer deep.decoder and Krashan's digibooster3.demuxer.

    https://github.com/widelec-BB/libvstring is also required

    If you have any questions or want to your work added to official MorphOS iso as contribution please contact me (or Krashan in audio related things)
    Please also don't use own parameters/ metadata idents, just official ones.
  • »15.09.18 - 22:15
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Jeckel
    Posts: 123 from 2007/3/11
    Many thanks, it will help a lot! :)
  • »15.09.18 - 22:58
    Profile
  • Just looking around
    Posts: 6 from 2018/8/29
    Thanks x 1000!

    This really makes things a lot easier :-)
  • »16.09.18 - 09:59
    Profile