fbsound 1.0 Win/Lin 32/64-bit (wav mp3 ogg mod it xm s3m)

Headers, Bindings, Libraries for use with FreeBASIC, Please include example of use to help ensure they are tested and usable.
Post Reply
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

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

Post by St_W »

St_W wrote:
D.J.Peters wrote:Because of malware on alice-dsl.net domain I moved all content to my new shiny3d.de server.
Maybe you could enable directory listing for that folder on the new server like on the old one (or install some directory listing script)?
Unfortunately no progress on that yet :-(
A nice solution would be e.g. this script: https://larsjung.de/h5ai/
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

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

Post by D.J.Peters »

@St_W ALICE are buyed by O2 so the domain http://www.alice-dsl.net will be history in near future.

I have an 8GB ram quad coure server with unused 50GB so I moved all my stuff on my fresh server at shiny3d.de.

Joshy
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

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

Post by St_W »

D.J.Peters wrote:@St_W ALICE are buyed by O2 so the domain http://www.alice-dsl.net will be history in near future.
I have an 8GB ram quad coure server with unused 50GB so I moved all my stuff on my fresh server at shiny3d.de.
I did understand that, but it seems my question wasn't clear. I wanted to ask for a little change to the new server, not the old one. But anyway, I'll try to explain my concern in more detail:
When you visit the old site (http://www.alice-dsl.net/d.j.peters/libs/) all the libraries were listed and could be easily browsed and downloaded. In contrast, when you visit the new site (e.g. http://shiny3d.de/public/fbsound/) and try to browse the libraries all you get is error 403. Therefore I was asking whether you could configure your webserver or install a directory listing script on the new server (e.g. https://larsjung.de/h5ai/) that allows to easily browse and download the FreeBasic content, similar to how it had been possible on the old server.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

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

Post by D.J.Peters »

I don't like to share or list the complete content of a folder.
The user needs a download link to get the content only file by file.

For example in folder fbsound I can put for private tests MP3,OGG,WAV ... music which are not free to share (copyright).

But thank you for your suggestion public servers are new for me.

Joshy
mrToad
Posts: 430
Joined: Jun 07, 2005 23:03
Location: USA
Contact:

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

Post by mrToad »

I was also able to get fbSound .20 working on FBC 1.05 32-bit, doing the suggestions mentioned awhile back on this thread. I got some compile errors when rebuilding the library but I am surprised, somehow it ended up working.

Code: Select all

D:\Prog\FB\_lib\fbsound0.20>fbc -w pendantic -mt -i inc -lib src/fbscpu.bas -x l
ib/win32/libfbscpu.a

D:\Prog\FB\_lib\fbsound0.20>fbc -w pendantic -mt -i inc -lib src/fbsound.bas -x
lib/win32/libfbsound.a
src\fbsound.bas(226) error 70: Incomplete type, before ',' in 'lpIChannels[0], _
'
src\fbsound.bas(226) warning 1(1): Passing scalar as pointer, at parameter 2 of
sub(as any ptr, as any ptr, as any ptr, as integer)
src\fbsound.bas(227) warning 1(1): Passing scalar as pointer, at parameter 3 of
sub(as any ptr, as any ptr, as any ptr, as integer)
src\fbsound.bas(234) error 70: Incomplete type, before ',' in 'lpIChannels[i], _
'
src\fbsound.bas(234) warning 1(1): Passing scalar as pointer, at parameter 3 of
sub(as any ptr, as any ptr, as any ptr, as integer)
src\fbsound.bas(959) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(960) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(961) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(962) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(963) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(964) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(967) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(977) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(978) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(979) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(980) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(981) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(982) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(985) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(1105) error 57: Type mismatch, at parameter 3 (lpWave) of FBS_Cr
eate_Wave() in 'byval lpWave   as any ptr    ) as fbsboolean export'
src\fbsound.bas(1743) error 57: Type mismatch, at parameter 1 (lplpBuffer) of FB
S_Get_MP3StreamBuffer() in 'byval lpnSamples  as integer ptr  ) as fbsboolean ex
port'
src\fbsound.bas(2153) error 57: Type mismatch, at parameter 2 (lplpWaveStart) of
 fbs_Get_WavePointers() in 'byval lpnChannels   as integer ptr  =NULL ) as fbsbo
olean export'
src\fbsound.bas(2153) warning 36(0): Mismatching parameter initializer, at param
eter 2 (lplpWaveStart) of fbs_Get_WavePointers()
src\fbsound.bas(2153) warning 36(0): Mismatching parameter initializer, at param
eter 3 (lplpWaveEnd) of fbs_Get_WavePointers()
src\fbsound.bas(2164) error 57: Type mismatch, at parameter 2 (lplpStart) of fbs
_Get_SoundPointers() in 'byval lplpEnd   as short ptr    =NULL) as fbsboolean ex
port'
src\fbsound.bas(2164) warning 36(0): Mismatching parameter initializer, at param
eter 2 (lplpStart) of fbs_Get_SoundPointers()
src\fbsound.bas(2164) warning 36(0): Mismatching parameter initializer, at param
eter 3 (lplpPlay) of fbs_Get_SoundPointers()
src\fbsound.bas(2164) warning 36(0): Mismatching parameter initializer, at param
eter 4 (lplpEnd) of fbs_Get_SoundPointers()

D:\Prog\FB\_lib\fbsound0.20>fbc -w pendantic -mt -i inc -dll src/fbscpu.bas -x l
ib/win32/fbscpu.dll

D:\Prog\FB\_lib\fbsound0.20>fbc -w pendantic -mt -i inc -dll src/fbsound.bas -x
lib/win32/fbsound.dll
src\fbsound.bas(226) error 70: Incomplete type, before ',' in 'lpIChannels[0], _
'
src\fbsound.bas(226) warning 1(1): Passing scalar as pointer, at parameter 2 of
sub(as any ptr, as any ptr, as any ptr, as integer)
src\fbsound.bas(227) warning 1(1): Passing scalar as pointer, at parameter 3 of
sub(as any ptr, as any ptr, as any ptr, as integer)
src\fbsound.bas(234) error 70: Incomplete type, before ',' in 'lpIChannels[i], _
'
src\fbsound.bas(234) warning 1(1): Passing scalar as pointer, at parameter 3 of
sub(as any ptr, as any ptr, as any ptr, as integer)
src\fbsound.bas(959) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(960) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(961) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(962) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(963) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(964) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(967) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(977) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(978) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(979) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(980) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(981) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(982) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(985) warning 4(1): Suspicious pointer assignment
src\fbsound.bas(1105) error 57: Type mismatch, at parameter 3 (lpWave) of FBS_Cr
eate_Wave() in 'byval lpWave   as any ptr    ) as fbsboolean export'
src\fbsound.bas(1743) error 57: Type mismatch, at parameter 1 (lplpBuffer) of FB
S_Get_MP3StreamBuffer() in 'byval lpnSamples  as integer ptr  ) as fbsboolean ex
port'
src\fbsound.bas(2153) error 57: Type mismatch, at parameter 2 (lplpWaveStart) of
 fbs_Get_WavePointers() in 'byval lpnChannels   as integer ptr  =NULL ) as fbsbo
olean export'
src\fbsound.bas(2153) warning 36(0): Mismatching parameter initializer, at param
eter 2 (lplpWaveStart) of fbs_Get_WavePointers()
src\fbsound.bas(2153) warning 36(0): Mismatching parameter initializer, at param
eter 3 (lplpWaveEnd) of fbs_Get_WavePointers()
src\fbsound.bas(2164) error 57: Type mismatch, at parameter 2 (lplpStart) of fbs
_Get_SoundPointers() in 'byval lplpEnd   as short ptr    =NULL) as fbsboolean ex
port'
src\fbsound.bas(2164) warning 36(0): Mismatching parameter initializer, at param
eter 2 (lplpStart) of fbs_Get_SoundPointers()
src\fbsound.bas(2164) warning 36(0): Mismatching parameter initializer, at param
eter 3 (lplpPlay) of fbs_Get_SoundPointers()
src\fbsound.bas(2164) warning 36(0): Mismatching parameter initializer, at param
eter 4 (lplpEnd) of fbs_Get_SoundPointers()

D:\Prog\FB\_lib\fbsound0.20>rem dont work fbc -w pendantic -mt -i inc -dll src/p
lug-ds.bas -x lib/win32/plug-ds.dll

D:\Prog\FB\_lib\fbsound0.20>fbc -w pendantic -mt -i inc -dll src/plug-mm.bas -x
lib/win32/plug-mm.dll

D:\Prog\FB\_lib\fbsound0.20>rem dont work copy .\lib\win32\plug-ds.dll .\tests

D:\Prog\FB\_lib\fbsound0.20>copy .\lib\win32\plug-mm.dll .\tests
        1 file(s) copied.

D:\Prog\FB\_lib\fbsound0.20>copy .\lib\win32\fbscpu.dll .\tests
        1 file(s) copied.

D:\Prog\FB\_lib\fbsound0.20>copy .\lib\win32\fbsound.dll .\tests
        1 file(s) copied.
"ready!"
Press any key to continue . . .
I'm hoping this project will be maintained because I like it. Apparently FMOD is now free for indie developers (even commercial) if the budge is under $500k, and only 1 game per year. But this fbSound has many good features and I don't feel the need to switch so long as it's working. I know 64-bit is another story at this time, unfortunately. It's a worthy project, hoping it will continue. Just want to say thanks to Joshy for fbSound.
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

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

Post by St_W »

Is there a license for fbSound that allows to use it? Unfortunately I couldn't find any. From a legal perspecitive it is then illegal to use this code as long as D.J.Peters hasn't officially granted you a license to do so.
Due to these uncertainties which could easily get you into legal troubles I'd recommend to use a library with clear license terms instead (at least until D.J.Peters provides a proper license).
mrToad
Posts: 430
Joined: Jun 07, 2005 23:03
Location: USA
Contact:

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

Post by mrToad »

St_W wrote:Is there a license for fbSound that allows to use it? Unfortunately I couldn't find any. From a legal perspecitive it is then illegal to use this code as long as D.J.Peters hasn't officially granted you a license to do so.
Due to these uncertainties which could easily get you into legal troubles I'd recommend to use a library with clear license terms instead (at least until D.J.Peters provides a proper license).
I take it you mean for commercial use? I haven't any officially commercial project yet and don't know if I will. Of course if deciding to go commercial I would double-check the licenses first.

Good question though. D.J.Peters, do you ever intend to provide some kind of license for commercial use?
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

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

Post by St_W »

mrToad wrote:I take it you mean for commercial use? I haven't any officially commercial project yet and don't know if I will. Of course if deciding to go commercial I would double-check the licenses first.
No, actually not really. Of course licenses are especially important for commercial projects, but they are also very important for non-commercial ones as soon as you plan to share your work.
See also https://choosealicense.com/no-license/ and https://blog.codinghorror.com/pick-a-li ... y-license/
That explains why publishing code without specifying a license makes it practically useless.
mrToad
Posts: 430
Joined: Jun 07, 2005 23:03
Location: USA
Contact:

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

Post by mrToad »

St_W wrote:they are also very important for non-commercial ones as soon as you plan to share your work.
See also https://choosealicense.com/no-license/ and https://blog.codinghorror.com/pick-a-li ... y-license/
That explains why publishing code without specifying a license makes it practically useless.
That was enlightening, thank you. Of course I don't imagine that a lot of us here sharing little bits of code, or even libs, never intend to let anyone use it in projects that will be shared freely. I mean, why else post it? Still, from a technically legal standpoint, I understand the need for a license, and I guess we should all be providing one.

I don't see how little snips of code could ever be an issue.

But for a couple libs I've made use of around here, for which I don't see licenses included, I guess I'll be asking around for them.
mrToad
Posts: 430
Joined: Jun 07, 2005 23:03
Location: USA
Contact:

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

Post by mrToad »

I did find this, not quite a license, but I do feel more hopeful about using FBSound:
viewtopic.php?t=11

In a discussion about licenses:
D.J.Peters wrote:fbsound is sexy open source and total free :-)
I would very much hope to see it maintained and free for even commercial use. I can't get FMOD to work (might need an older .dll) and working with FBSound has been a pleasure. EDIT: I did find FMOD v3.75 and it works nicely.
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

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

Post by St_W »

From the three options (see https://choosealicense.com/no-license/) I'd clearly favor the first one, but it's D.J.Peters that has to decide.
  • Ask the maintainers nicely to add a license.
  • Don’t use the software. Find or create an alternative that is under an open source license.
  • Negotiate a private license. Bring your lawyer.
In case he doesn't add a license I can suggest BASS (http://www.un4seen.com/) beside FMOD as a good alternative, which is free for non-commercial use.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

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

Post by D.J.Peters »

Totally free means you can use it for commercial projects also :-)

Joshy
mrToad
Posts: 430
Joined: Jun 07, 2005 23:03
Location: USA
Contact:

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

Post by mrToad »

D.J.Peters wrote:Totally free means you can use it for commercial projects also :-)
Joshy
Thank you kindly D.J.Peters. :)
St_W wrote:FMOD as a good alternative, which is free for non-commercial use.
FMOD is now free for commercial use by indie developers: http://www.fmod.org/fmod-now-free-for-indies/
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

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

Post by St_W »

D.J.Peters wrote:Totally free means you can use it for commercial projects also
While it's great to hear that the description "totally free" is quite unspecific. That could mean that the code is in public domain, but could also mean that the library is Freeware while the code is only for reference, disallowing modifications, similar to some of Microsoft's restrictive Shared Source licenses. And those are just two extremes - there's a lot in between. The latter license for example would have disallowed the modified distribution of fbSound with some fixes for current fbc versions. Just like the previously referenced "Pick a License, Any License" article described, many programmers are fully unaware of the importance of proper licensing. That is why I tried to make you as author and potential users aware and I'd be glad if you could describe the license conditions in more in detail or choose one of the many existing licenses. That could simplify the use of your library/libraries a lot (depending on the type of license). There are a lot of articles about that topic on the web in case you are still dubious. And if you happen to be still dubious after that just have a look at FreeBasic: it would have never attracted developers or gained popularity without proper licensing.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

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

Post by D.J.Peters »

Licenses of used libs are included in the doc folder libDumb.txt, libMad.txt and libVorbis.txt

Joshy
Post Reply