• Welcome to Dark Bit Factory & Gravity.
 

Tiny SID Player for Freebasic and C

Started by Jim, August 29, 2007

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Jim

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:

Clyde

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:

Jim

Challenge Trophies Won:

Clyde

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


Challenge Trophies Won:

TbbW

#24
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.

Jim

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:


stormbringer

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

Jim

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:

stormbringer

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

jihad

ohhh yesss
i waited so long for this lib
Challenge Trophies Won:

Jim

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:

Shockwave

Is this build different to the test version you posted in the admin forum mate?
Shockwave ^ Codigos
Challenge Trophies Won:

energy

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

Jim

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:

energy

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

energy

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

energy

Hi...
Here is the Wrapper for Purebasic...
Hope anybody can use it!!

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

Shockwave

Karma up!

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

Jim

Challenge Trophies Won: