libvgm icon indicating copy to clipboard operation
libvgm copied to clipboard

Licensing

Open jprjr opened this issue 4 years ago • 9 comments

Hi there, I was writing up a readme for one of my projects that can optionally use libvgm, and wanted to make a note of the licensing (ie, here's a list of plugins that use libraries with different licensing), and I realized - I don't know how libvgm is licensed.

Would you consider adding a LICENSE file to the repo? Thank you!

jprjr avatar Mar 02 '20 14:03 jprjr

Considering that the chip emulators are under the GPLv2, you should be able to use the entire library under the terms of GPLv2 as well.

superctr avatar Mar 03 '20 04:03 superctr

Hi, thought I'd bring this back up. Most chip emulators have licensing info, but some don't, like the WonderSwan core.

I know Linux distros usually won't package a library without licensing info available. I'm not sure this library is distributable without clear licensing info.

jprjr avatar Mar 12 '21 13:03 jprjr

The case of WonderSwan is ... difficult. The emulator is from the in_vgm Winamp plugin. There is a mirror of its source here: https://github.com/xbmc/audiodecoder.wsr/tree/Matrix/lib/in_wsr

I think in_wsr in turn got the emulation code from the Oswan emulator. Neither has a license attached to it.

For everything not-emulation-core I can probably assign GPL-2. I'm thinking of going with something more liberal for the audio output stuff though. (maybe something BSD-like)

ValleyBell avatar Mar 12 '21 22:03 ValleyBell

As an alternative, you could lift the WonderSwan emulation from Mednafen, which actually has a license.

kode54 avatar Mar 13 '21 01:03 kode54

Looks like mame has an implementation as well https://github.com/mamedev/mame/blob/master/src/mame/audio/wswan.cpp

Also, higan https://github.com/higan-emu/higan/tree/master/higan/ws/apu

jprjr avatar Mar 13 '21 03:03 jprjr

I could maybe look into porting the Mednafen core. I don't feel like bothering with higan's one-file-per-function code and MAME's WonderSwan emulation is so bad in general that even the logged VGMs sound like stuff from Tiger's Game.com console. (or at least is was like this a few years ago)

ValleyBell avatar Mar 13 '21 06:03 ValleyBell

Regarding licensing: Does anyone want to volunteer in porting the current MAME "POKEY" sound core?

pokey.c is the only sound core from MAME that dates back to the pre-relicensing times and has the "MAME license". Some time after MAME's relicensing I ported all cores but this one, because it got rewritten and I didn't want to figure out how to uncouple it from the CPU.

ValleyBell avatar Mar 17 '21 19:03 ValleyBell

I'll volunteer, I think I can get that done

jprjr avatar Mar 18 '21 12:03 jprjr

Speaking of licensing, under which license is libvgm itself released? I ask because I'm writing a VGM player for Unity, and being able to reference (or even outright port) the parser would be very helpful. Ditto for the core player logic.

JesseTG avatar Nov 12 '21 00:11 JesseTG