Game Music Emu - how do I use it?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
NÖÖB
Prole
Posts: 41
Joined: Thu Jul 31, 2008 10:57 pm
Location: Norway

Game Music Emu - how do I use it?

Post by NÖÖB »

Hey,
can anyone tell me how to play, say, an .nsf?
I can't find anything about GME on the wiki, other than that it's supported by 0.9.0 :)
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Game Music Emu - how do I use it?

Post by Ranguna259 »

See the audio module.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
NÖÖB
Prole
Posts: 41
Joined: Thu Jul 31, 2008 10:57 pm
Location: Norway

Re: Game Music Emu - how do I use it?

Post by NÖÖB »

Well, yes, I've tried playing it like this

Code: Select all

function love.load()
   song1 = love.audio.newSource("kim280513.nsf")
   love.audio.play( song1 )
end

etc..
etc..
but then love.exe tells me

Code: Select all

Error
Extension "nsf" not supported
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: Game Music Emu - how do I use it?

Post by veethree »

NÖÖB wrote:Well, yes, I've tried playing it like this

Code: Select all

function love.load()
   song1 = love.audio.newSource("kim280513.nsf")
   love.audio.play( song1 )
end

etc..
etc..
but then love.exe tells me

Code: Select all

Error
Extension "nsf" not supported
The error speaks for itself doesn't it? I'm not familiar with .nsf files, But the love audio module only supports conventional audio files like ogg, wav etc.
Last edited by veethree on Fri Dec 20, 2013 7:55 pm, edited 1 time in total.
User avatar
MadByte
Party member
Posts: 533
Joined: Fri May 03, 2013 6:42 pm
Location: Braunschweig, Germany

Re: Game Music Emu - how do I use it?

Post by MadByte »

a quick search on the wiki showed up this :
Audio Tutorial

there is a link with all ( apparently ) supported formats, but I can't give a warranty for that info.
User avatar
NÖÖB
Prole
Posts: 41
Joined: Thu Jul 31, 2008 10:57 pm
Location: Norway

Re: Game Music Emu - how do I use it?

Post by NÖÖB »

-_-

"0.9.0 Additions:
(...)
OPTIONAL: Added support for Game Music Emu".

That's all I can find about it on the wiki. I also know GME supports nsf. Don't know what they mean by optional, though. Perhaps I have to build love with some flag set..?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Game Music Emu - how do I use it?

Post by bartbes »

I don't think any of the binaries we ship actually have it enabled.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Game Music Emu - how do I use it?

Post by Roland_Yonaba »

Dunno if love.audio support nsf files. As far as I know, NSF is an audio format for NES files.
Good news, using foobar and his plugin foo-gep, and LAME encoder, you can convert NSF files to MP3. And from that, to any format you want (Ogg, wav, etc...).
User avatar
NÖÖB
Prole
Posts: 41
Joined: Thu Jul 31, 2008 10:57 pm
Location: Norway

Re: Game Music Emu - how do I use it?

Post by NÖÖB »

bartbes: will any of the binaries you ship have gme enabled in the future? :)
rixard
Prole
Posts: 1
Joined: Thu Jan 09, 2014 1:03 pm

Re: Game Music Emu - how do I use it?

Post by rixard »

I'm also curious on how to get it to work. I love the fact that Löve supports various tracker
formats already. It would be nice to support nsf(NES music too). There are still people making
nsf-music; and the size is really small compared to an MP3 or Ogg. Seems like
the game music emu lib is ~166KB zipped, and a zipped NSF-file is perhaps 50KB. Now,
the smaller file size for music isn't that big of a deal in this day and age but
for a game with lots of music; and one that uses tracker modules vs. ogg/mp3 it would
make a huge difference.

Keep löving!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests