Recent

Author Topic: SPC Player Library  (Read 3238 times)

Gigatron

  • Sr. Member
  • ****
  • Posts: 416
  • Amiga Rulez !!
    • Gigatron Shader Network Demo
SPC Player Library
« on: April 01, 2026, 01:56:04 pm »
Hi

I would like to share a new library Called SPC library from Blarggs audio library;
https://github.com/blarggs-audio-libraries/snes_spc
Credited inside spc_lib.pas, this library emulate and play spc file format from
Super nintendo SPC chip more then 36000 spc downloadable here;

https://ftp.modland.com/pub/modules/Nintendo%20SPC/

No information about playing spc file yet but i will include that in the next release;
Spc Header is here ; https://ocremix.org/info/SPC_Format_Specification

Have fun
Regards Gigatron

Coding faster than Light !

Gigatron

  • Sr. Member
  • ****
  • Posts: 416
  • Amiga Rulez !!
    • Gigatron Shader Network Demo
Re: SPC Player Library
« Reply #1 on: April 01, 2026, 10:17:29 pm »
Ok

In this latest version iD666 was added this mean you can get
Some SPC file informations like so ;

Code: Pascal  [Select][+][-]
  1.  Memo1.Clear;
  2.   Memo1.Lines.Add('Title    : ' + SPC_GetTitle);
  3.   Memo1.Lines.Add('Game     : ' + SPC_GetGame);
  4.   Memo1.Lines.Add('Artist   : ' + SPC_GetArtist);
  5.   Memo1.Lines.Add('Dumper   : ' + SPC_GetDumper);
  6.   Memo1.Lines.Add('Comment  : ' + SPC_GetComment);
  7.   Memo1.Lines.Add('Date     : ' + SPC_GetDate);
  8.   Memo1.Lines.Add('Length   : ' + IntToStr(SPC_GetLength) + ' sec');
  9.   Memo1.Lines.Add('Fade     : ' + IntToStr(SPC_GetFadeMs) + ' ms');
  10.   Memo1.Lines.Add('Emulator : ' + IntToStr(SPC_Ge]"]>Blockedlator) + '    (0=Unknown  1=ZSNES  2=Snes9x)');
  11.   Memo1.Lines.Add('Channels : $' + IntToHex(SPC_GetChannels, 2));
  12.   Memo1.Lines.Add('Format   : ' + IfThen(SPC_IsBinary = 1, 'Binary', 'Text'));  

Line 10 is :SPC Get Emulator ! Impossible to write the correct code !

Regards Gtr
« Last Edit: April 02, 2026, 11:01:39 pm by Gigatron »
Coding faster than Light !

creaothceann

  • Sr. Member
  • ****
  • Posts: 357
Re: SPC Player Library
« Reply #2 on: April 14, 2026, 01:59:25 pm »
Just a note to anyone involved: some game songs can't be dumped to an SPC file.

- - -

Many years ago I wrote a SNES tool for savestates and other files, including *.spc: https://www.mediafire.com/folder/6nxhznsrjqqyw/2020-12-21

It was a product of its time, and is abandoned now. The supported emulators (mainly ZSNES, SNES9x) can't really be recommended these days, the source code became too large and interconnected, the GUI was written for the "old" Windows design (Windows 9x up to Windows 7's classic UI), and the source code is for Delphi 5.

 

TinyPortal © 2005-2018