fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
D.J.Peters
Posts: 6975
Joined: May 28, 2005 3:28
Location: Germany

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby D.J.Peters » Mar 24, 2017 17:49

Hello chung
yes you can create an fbSound Open Source project on https://sourceforge.net/

note: I'm busy so I can't help or support you if you run in to trouble by converting fbSound to 64-bit, sorry.

Joshy
adele
Posts: 17
Joined: Jun 13, 2015 19:33

Re: [it's dead]fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby adele » Mar 24, 2017 23:38

Hi Chung,
chung wrote:i can do it .would you please publish it as open source at sourceforge.net so it will be saved , or do you allow me to do so ?

Now that Joshy has agreed, I had a very short look at the code. Most of the ASM stuff is concerning memory copies, not a lot mathematic knowledge needed. I think that at least this part of the port ( I´m a poet, hm ? :) ) shouldn´t be too hard to be done.
Maybe I could do some the work.

Regards

Adi
chung
Posts: 477
Joined: Jan 16, 2010 20:52
Location: France
Contact:

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby chung » Mar 26, 2017 5:35

hello ,

yes, do so ,

but for me , the priority is to make the 32 bits version work with the latest freebasic 1.05-win32 version , which is not he case .
i managed to make it work with the dll version and fbsound.dll , fbsoundcpu.dll , plug_mm.dll without changes but still the direct sound feature didnt work .
(i have added it to mp3tomid_chung in which i can use now multithread fourier calculation loops, still in beta test)
in fact, i dont yet use freebasic 1.05-win64 , for any purpose.
chung
Posts: 477
Joined: Jan 16, 2010 20:52
Location: France
Contact:

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby chung » Mar 26, 2017 11:33

firts tests on fbsound 0.20 with freebasic 1.05-win32

had to replace some "ptr ptr" in functions declarations by "ptr" to compile (in fbsound.bas)

had to add these line directly in fbstypes.bi as inkey didnt work from a dllexport (in window mode), there is still a bug here

Code: Select all

'declare function FBS_Get_Keycode() as FBS_KEYCODES
function fbs_Get_KeyCode() As FBS_KEYCODES
  var key=inkey
  'dim as integer keycode=len(key)
  'If keycode Then
  '  keycode-=1
  '  keycode=key[keycode]+(keycode shl 8)
  'End If
  'Return keycode
  if key="" then return 0
  if len(key)=1 then return asc(key)
  return asc(right(key,1))+256 
end function


plug_ds.bas (direct sound) dont compile , is ignored

changed the bat build file for windows

Code: Select all

fbc -w pendantic -mt -i inc -lib src/fbscpu.bas -x lib/win32/libfbscpu.a
fbc -w pendantic -mt -i inc -lib src/fbsound.bas -x lib/win32/libfbsound.a
fbc -w pendantic -mt -i inc -dll src/fbscpu.bas -x lib/win32/fbscpu.dll
fbc -w pendantic -mt -i inc -dll src/fbsound.bas -x lib/win32/fbsound.dll
rem dont work fbc -w pendantic -mt -i inc -dll src/plug-ds.bas -x lib/win32/plug-ds.dll
fbc -w pendantic -mt -i inc -dll src/plug-mm.bas -x lib/win32/plug-mm.dll
rem dont work copy .\lib\win32\plug-ds.dll .\tests
copy .\lib\win32\plug-mm.dll .\tests
copy .\lib\win32\fbscpu.dll .\tests
copy .\lib\win32\fbsound.dll .\tests
@echo "ready!"
@pause


load ogg files dont works

otherwise , firsts tests seam to work
Imortis
Posts: 1318
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby Imortis » Mar 28, 2017 18:28

chung wrote:load ogg files dont works

otherwise , firsts tests seam to work


I managed the same thing a few pages back. I am not sure why the ogg loading does not work.
chung
Posts: 477
Joined: Jan 16, 2010 20:52
Location: France
Contact:

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby chung » Apr 05, 2017 6:38

D.J.Peters wrote:Hello chung
yes you can create an fbSound Open Source project on https://sourceforge.net/

note: I'm busy so I can't help or support you if you run in to trouble by converting fbSound to 64-bit, sorry.

Joshy


Would you mind if i only post a release for windows-32 as i cant test for linux , and also remove the ogg feature as it doenst work ?
D.J.Peters
Posts: 6975
Joined: May 28, 2005 3:28
Location: Germany

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby D.J.Peters » Apr 05, 2017 15:00

@chung before you start to port FB sound bring it to work for the curent FB version.

it's simple:

download the lasted fbSound.XX.zip file

open a console or text window on your Windows OS

navigate to the extracted fbSound.XX folder

and type rebuildlib.bat

now you get a bunch of errors

fix it line by line

you have only to change integer to long or viseversa

that's all

after you fixed all long/integer stuff type

buildall.bat

all tests should compile and running.

If you can't fix this simple integer/long problem use your "private hack" for your own projects

but don't publish your "private hack" on sourceforge.net please

thank you

Joshy
chung
Posts: 477
Joined: Jan 16, 2010 20:52
Location: France
Contact:

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby chung » Jul 14, 2017 7:29

post it and manage the tickets yourself
datwill310
Posts: 335
Joined: May 29, 2015 20:37
Location: England
Contact:

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby datwill310 » Jul 19, 2017 14:52

Hi D.J.Peters,

I am using you sound library for my game, and I have got it working no trouble thanks to the examples/doc! Works perfectly for what I want!

However, I am posting to clarify a few things about distributing it with my game (i.e. licensing stuff).

In my collection of licenses (which have to be distributed due to my using various libraries), I have included ALL of the licenses which come with your library (including the license for the OGG which isn't technically yours but come with the project because you use features which require those licenses).

Here's the thing; I don't know which licenses to include in the game's distribution!
I am only using the WAVE (.wav) format. I do not require the OGG part of the library. However, I am thinking that the OGG part, even though not used by me AFAIK, is still part of your library (plug-mm.dll?) so do I still have to include that license even though I'm not using it?

Also the other license, for MAD and DUMB. Do I also include them or does it depend on what I'm using out of your library?

I am only using the "plug-mm.dll" library that is part of the FBSound library.

Also, I don't know if this is normal, but Google Chrome told me that the website you link to for the .zip download "contains malware". IDK if this is serious or not, but I think it's right for you to know if it is an issue.
St_W
Posts: 852
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby St_W » Jul 19, 2017 15:52

btw you could compile fbsound with

Code: Select all

#define NOMOD
#define NOMP3
#define NOOGG

That way you should be able to remove these libraries that you do not need and thus don't have to care about their licenses either.

If you ship it you've to include the license too - no matter whether it is actually used or not. (AFAIK - I'm no lawyer)

On the other hand: what's the problem with including a few more text files in your package in case of doubt? - they are not that big...
Last edited by St_W on Jul 19, 2017 15:56, edited 3 times in total.
datwill310
Posts: 335
Joined: May 29, 2015 20:37
Location: England
Contact:

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby datwill310 » Jul 19, 2017 15:53

St_W wrote:btw you could compile fbsound with

Code: Select all

#define NOMOD
#define NOMP3
#define NOOGG


That way you should be able to remove these libraries that you do not need and thus don't have to care about their licenses either.

If you ship it you've to include the license too - no matter whether it is actually used or not. (AFAIK - I'm no lawyer)

On the other hand: what's the problem with including a few more text files in your package in case of doubt? - they are not that big...


Thanks for the info! I wanted to make sure i wasn't legally binding users to something which they shouldn't or vice versa, that's all.
D.J.Peters
Posts: 6975
Joined: May 28, 2005 3:28
Location: Germany

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby D.J.Peters » Jul 19, 2017 23:42

@datwill310 I don*t know why some *.zip files on my page are maked as malware.
fbSound is only FreeBASIC code and some precompiled libs.
I'm sure all my dowmloads are safe.

For example all fltk-c stuff are compiled by me (the FLTK runtime the fltk-c wrapper) and 100% free of any malware.

Joshy
datwill310
Posts: 335
Joined: May 29, 2015 20:37
Location: England
Contact:

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Postby datwill310 » Jul 19, 2017 23:52

D.J.Peters wrote:I'm sure all my dowmloads are safe.


I'm certain of this too; I after all have the library ;)! I was just letting you know in case it was an issue.

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 2 guests