Author Topic: Tiny SID Player for Freebasic and C  (Read 56415 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #20 on: September 04, 2007 »
It only plays PSID files (check the first 4 byte of the .SID files by loading them in notepad).  It won't play RSID (Real SID) files - in fact, it'll just reject them.

Jim
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #21 on: September 05, 2007 »
Thanks Jim, that'll be why some songs dont play.

Does anyone have any links to PSID tunes?

Cheers,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #22 on: September 05, 2007 »
This is pretty much all of them http://www.hvsc.c64.org/ ;D

Jim
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #23 on: September 05, 2007 »
Cheers Jim :)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline TbbW

  • ZX 81
  • *
  • Posts: 6
  • Karma: 1
    • View Profile
    • Emperium Xenos
Re: Tiny SID Player for Freebasic and C
« Reply #24 on: September 30, 2007 »
it fails bigtime to play Freestyler.sid by agemixer.
while Xmplay and SidPlay can play it properly.
( tested with tinysid with software )

got a memory cant be read error with
Antics.sid by Chris Huelsbeck

and i seem to get volume issues with some samples ( som are been played at a realy low volume while other instruments in the same tune play on a good volume almost masking over the bugged ones )

ah yeh for those who dont know:
http://remix.kwed.org <- remixes of old SID tunes.
http://www.remix64.com <- another page with remixes aswell.
http://www.slayradio.org <- shoutcast radiostation with C64 in focus.
« Last Edit: September 30, 2007 by TbbW »

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #25 on: October 01, 2007 »
Thanks TbbW!  I know the lib that's released here has (at least!) one serious bug and I should repost it.  The latest version includes volume control, but I guarantee that I'm not playing at less that 100% of the original tune's volume.  This player won't play RSID tunes, they rely on the advanced emulation features from sidplay, and you probably need to see if there's been a PSID conversion done.
I'll check out those songs though - if something obvious is wrong I'll fix it.
remix.kwed.org rules.

Cheers!

Jim
Challenge Trophies Won:

Offline TbbW

  • ZX 81
  • *
  • Posts: 6
  • Karma: 1
    • View Profile
    • Emperium Xenos
Re: Tiny SID Player for Freebasic and C
« Reply #26 on: October 01, 2007 »
coolers :)

Offline stormbringer

  • Time moves by fast, no second chance
  • Amiga 1200
  • ****
  • Posts: 453
  • Karma: 73
    • View Profile
    • www.retro-remakes.net
Re: Tiny SID Player for Freebasic and C
« Reply #27 on: October 01, 2007 »
did you add a way to use another sound output mechanism than DirectX?
We once had a passion
It all seemed so right
So young and so eager
No end in sight
But now we are prisoners
In our own hearts
Nothing seems real
It's all torn apart

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #28 on: October 01, 2007 »
Sorry, no :(.  I know you wanted to wrap it with waveout.
The point of this lib was to provide a way that anyone at dbf could link with it and play the majority of SID files from C or Freebasic.  So, I chose DirectSound and wrapped the code from here http://www.syntheticsw.com/~sinsch/?id=download&s=k2&action=showall&category=d224b84443 in to a library.  The point being it was simple, small and functional without the end user having to know anything about SID format and audio playback.
Again, I'm very sorry, but I'm not going to be releasing a version which just does the playback, since then I won't have had any input at all.  Anyone who can code should just grab the PSP source from the link and add it to their project.  It's brilliantly coded and will build on just about anything. :)

Jim
Challenge Trophies Won:

Offline stormbringer

  • Time moves by fast, no second chance
  • Amiga 1200
  • ****
  • Posts: 453
  • Karma: 73
    • View Profile
    • www.retro-remakes.net
Re: Tiny SID Player for Freebasic and C
« Reply #29 on: October 01, 2007 »
Thanks for the link Jim. I had a quick look at the code and seems not too difficult to hack it.. the original source code actually has the function to render the samples in a buffer.. so it should be quite simple to reuse it ;)
We once had a passion
It all seemed so right
So young and so eager
No end in sight
But now we are prisoners
In our own hearts
Nothing seems real
It's all torn apart

Offline jihad

  • ZX 81
  • *
  • Posts: 24
  • Karma: 19
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #30 on: October 01, 2007 »
ohhh yesss
i waited so long for this lib
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #31 on: October 01, 2007 »
I have just updated the OP with the latest source.
[quoteUpdated the library with a little sample code and some bug fixes.
Also, added a couple of functions
SID_set_volume(0 to 127) which Clyde wanted, and
SID_get_details() which can return the song name, author and copyright details.
Check the sample for usage details.
[/quote]
I've left the original archive there too.  For some reason some users are experiencing problems even with this bug fixed library, and it would be good to hear some feedback.

Jim
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Tiny SID Player for Freebasic and C
« Reply #32 on: October 02, 2007 »
Is this build different to the test version you posted in the admin forum mate?
Shockwave ^ Codigos
Challenge Trophies Won:

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #33 on: October 02, 2007 »
Hi Jim....    :goodpost:

But one question....
I use Purebasic with the static lib.... it runs very well....
Did yu update the static lib too???
Best regards...
eNeRGy











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

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #34 on: October 02, 2007 »
Nick it's the same one.
energy - there is a new static lib in the new archive.  Just rename it from libtinysid.a to tinysid.lib or whatever, it's the same file.

Jim
Challenge Trophies Won:

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #35 on: October 03, 2007 »
 :cheers:
coding: jwasm,masm
hobby: www.scd2003.de

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #36 on: October 04, 2007 »
Hi Jim
testet new static lib with new function and it works as fine as the first one
for Purebasic !
Thank yu very much...
Excellent work...
Cheers
eNeRGY
coding: jwasm,masm
hobby: www.scd2003.de

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #37 on: October 06, 2007 »
Hi...
Here is the Wrapper for Purebasic...
Hope anybody can use it!!

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

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Tiny SID Player for Freebasic and C
« Reply #38 on: October 06, 2007 »
Karma up!

Thanks for the wrapper Energy!
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Tiny SID Player for Freebasic and C
« Reply #39 on: October 07, 2007 »
Cool, thanks!

Jim
Challenge Trophies Won: