Author Topic: TitchySID - 12kb Player for MASM and PUREBASIC  (Read 19362 times)

0 Members and 1 Guest are viewing this topic.

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Hi!
Here is the TitchySID-LIB (TinySID) with sources by StatMAT in ONLY 12kb!
I did a conversion to Purebasic...
Hope the rest follows...  :P

BIG thanx to StatMAT for this great SMALL lib!

Cheers eNeRGy
 
coding: jwasm,masm
hobby: www.scd2003.de

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #1 on: July 28, 2008 »
!

Almost makes me want to use Masm! :)
Nice one!
Shockwave ^ Codigos
Challenge Trophies Won:

Offline StatMat

  • C= 64
  • **
  • Posts: 43
  • Karma: 14
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #2 on: July 29, 2008 »
Cheers for the spread energy. I saw there's already another fine library by Jim and stormbringer here. Funny that we we're working independently on the same thing, at the same time, with slightly different goals!  8)

Anyway, I hope this lib will prove useful anyway. And I should be releasing an even smaller v1.1 shortly. I love optimising! Sad really...  :P
"When the only tool you own is a hammer, every problem begins to resemble a nail."

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #3 on: July 29, 2008 »
Hi StatMAT!
Nice to see yu here...
For the spreading... yes...that are the common friends from SnD and DBF!!...  ;)
but... again... thanx for this lib.... its working great!!!

Cheers
eNeRGy
coding: jwasm,masm
hobby: www.scd2003.de

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #4 on: July 29, 2008 »
Just one thing missing - a readme :D This looks quite useful I think I will have a stab at this lib. StartSID - StopSID just what we need without any bloaty frills

Challenge Trophies Won:

Offline StatMat

  • C= 64
  • **
  • Posts: 43
  • Karma: 14
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #5 on: July 29, 2008 »
Just one thing missing - a readme :D

Yeah, I was a bit lazy there! I'll include one when I release v1.1 shortly. ;)
"When the only tool you own is a hammer, every problem begins to resemble a nail."

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #6 on: July 29, 2008 »
Have some good karma Statmat.  ;)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline StatMat

  • C= 64
  • **
  • Posts: 43
  • Karma: 14
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #7 on: August 06, 2008 »
Okay, I've now finished working on v1.1 which is now considerably smaller (8.2kb). There's also some optional new functionality such as play/resume and changing songs (which adds about 1k to the lib). The package now contains two demos, one in MASM and the other in C (Visual Studio). And as if that wasn't enough, there's also a proper readme this time! ;)

Hope some of you will find it useful.
"When the only tool you own is a hammer, every problem begins to resemble a nail."

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #8 on: August 06, 2008 »
@StatMat:

Awesome. Thanks a lot for this release and for nice
C example!

That deserves some K++
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #9 on: August 06, 2008 »
Thanks Statmat, cheers for the mention in the info file too and thanks for posting it.

It's really cool to have !  :clap: K+
Shockwave ^ Codigos
Challenge Trophies Won:

Offline jihad

  • ZX 81
  • *
  • Posts: 24
  • Karma: 19
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #10 on: August 06, 2008 »
thx for this nice lib   :bananaphallus:
Challenge Trophies Won:

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #11 on: August 07, 2008 »
 :clap:
Very goood StatMAT!!   :P
coding: jwasm,masm
hobby: www.scd2003.de

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #12 on: August 10, 2008 »
Nice work indeed, I love those libs coded in ASM :)

I'll do a fb wrapper soon
Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #13 on: August 11, 2008 »
This is a really nice package, but since you're already delivering a precompiled lib, it would be nice to avoid this:
Code: [Select]
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\masm32.lib
Oh, and maybe you can have a look what's going wrong here ?
« Last Edit: August 11, 2008 by hellfire »
Challenge Trophies Won:

Offline StatMat

  • C= 64
  • **
  • Posts: 43
  • Karma: 14
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #14 on: August 12, 2008 »
Yes, you're quite right, those libs should not be hardcoded like that. In my focus to tweak the actual code, I forgot to sort that. ;)

Anyway, I now have a version that does this, and I am currently looking into the bug with that Commando sid file you provided. I will release v1.2 once that is sorted.
"When the only tool you own is a hammer, every problem begins to resemble a nail."

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #15 on: August 13, 2008 »
Awesome!  Thanks very much!

Jim
Challenge Trophies Won:

Offline StatMat

  • C= 64
  • **
  • Posts: 43
  • Karma: 14
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #16 on: September 09, 2008 »
I know things have gone a little quiet on this as I have been busy with real-life work recently. Anyway, I just thought I've give you a quick update. Basically the known bugs/issues as pointed out by hellfire etc have been resolved, and quite a few emulation issues have been fixed. I'm just finishing up the main new feature of this release which is an FFT routine for people to visualise the sound with spectrum analysers and whatnot. The format of the returned data is the same as BASS, allowing the use of the many examples for that. There's also going to be fading functionality which I hope some users may find useful.

I expect to do a release in the next week. :)
"When the only tool you own is a hammer, every problem begins to resemble a nail."

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #17 on: September 09, 2008 »
 :clap: :-*
coding: jwasm,masm
hobby: www.scd2003.de

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #18 on: September 09, 2008 »
Damned sweet :)

FFT will be a really great feature for this lib.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline StatMat

  • C= 64
  • **
  • Posts: 43
  • Karma: 14
    • View Profile
Re: TitchySID - 12kb Player for MASM and PUREBASIC
« Reply #19 on: September 13, 2008 »
Well, to keep things interesting, I have decided to give you guys a sneak-peek at the latest TitchySID in action. I have attached the updated demo which demonstrates the new FFT stuff with a spectrum analyser. The library has also had quite a few bug fixes in the emulation (@hellfire - Commando should now work correctly! ;) ). The code also sync the threads better to avoid nasty artifacts when switching song. I haven't released the lib yet as I want to optimize the code further and update the docs etc. Plus I need to finish the logarithmic fading. Anyway, it should give a good idea how things are going. The extras version of lib has grown to around 12.5kb now (was about 9.5kb before), but I still think that's okay. And of course, the non-extras lib is still nice and small for those who don't want the frills. As usual, it's been difficult to make time to work on the code, but I promise it will be released very shortly for you all to play with!  ;D
"When the only tool you own is a hammer, every problem begins to resemble a nail."