Does SNESAPU.DLL and libgme.dll work in LOVE2D

General discussion about LÖVE, Lua, game development, puns, and unicorns.
MrFariator
Party member
Posts: 559
Joined: Wed Oct 05, 2016 11:53 am

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by MrFariator »

Generally the reason to use a library like this is to use the console-specific audio features, like how Neito mentions interpolation. While you can convert the track to a more conventional file format like OGG or MP3, those formats don't let you fiddle with the playback in the same way as you could on SNES. It's kind of a niche thing, of course, and you could approximate the same effects with some other audio engineering - though you'd have to go and implement it yourself.
Neito
Prole
Posts: 21
Joined: Sat Jul 09, 2022 9:00 pm

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by Neito »

If I just convert it it wont be the same that's why I need snesapu implemented into Love2D.
I'm thinking of using ffi.
Neito
Prole
Posts: 21
Joined: Sat Jul 09, 2022 9:00 pm

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by Neito »

I don't think I can do this alone.
Yozzaxia
Prole
Posts: 10
Joined: Fri Jul 16, 2021 3:36 pm

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by Yozzaxia »

I don't know what your code looks like, but this works for me:

Code: Select all

local gme = require("LoveGme")()

function love.load()
	gme:loadFile("RS3_Podorui.spc")
	gme:play()
end

function love.update(dt)
	gme:update(dt)
end
User avatar
zorg
Party member
Posts: 3468
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by zorg »

Yozzaxia wrote: Sat Oct 01, 2022 3:09 am I don't know what your code looks like, but this works for me:
...
They did say this before:
I don't want gme anymore now I only want snesapu, because when I tried to play 6646's port of Podorui from romancing saga 3 it didn't play.
I thought Lovegme would work for sure but that wasn't the case.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Neito
Prole
Posts: 21
Joined: Sat Jul 09, 2022 9:00 pm

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by Neito »

I found a better one now but there are some songs whose only ports didn't work.
User avatar
milon
Party member
Posts: 472
Joined: Thu Jan 18, 2018 9:14 pm

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by milon »

Neito wrote: Mon Oct 03, 2022 8:43 pm I found a better one now but there are some songs whose only ports didn't work.
Sorry for the late reply. Have you tried dumping your own .SPC files? It's easy enough to do - I believe zsnes, snes9x, and others can do it easy enough.
Any code samples/ideas by me should be considered Public Domain (no attribution needed) license unless otherwise stated.
Neito
Prole
Posts: 21
Joined: Sat Jul 09, 2022 9:00 pm

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by Neito »

Yes and they work now. But what I need now is to figure out how I'm going to use LoveGme in a game.
Neito
Prole
Posts: 21
Joined: Sat Jul 09, 2022 9:00 pm

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by Neito »

I plan to use spc for music and wav for sound effects.
Yozzaxia
Prole
Posts: 10
Joined: Fri Jul 16, 2021 3:36 pm

Re: Does SNESAPU.DLL and libgme.dll work in LOVE2D

Post by Yozzaxia »

Neito wrote: Sun Nov 06, 2022 5:39 pm Yes and they work now. But what I need now is to figure out how I'm going to use LoveGme in a game.
Just a heads up, I encountered a LoveGme problem where spcs only played once (it's a feature on libgme's side, apparently). The repository owner hasn't responded to my pull request that fixes the issue, but you can find my fork here.
Post Reply

Who is online

Users browsing this forum: dusoft, Google [Bot], totoetlititi and 5 guests