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

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Imortis
Posts: 1287
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

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

Postby Imortis » Aug 10, 2016 22:58

That is not an error. That is a warning. You can remove the warning by compiling your program with the -mt compiler switch.
St_W
Posts: 738
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 » Aug 10, 2016 23:20

dafhi wrote:I get this error when attempting to run anything
fbc wrote:E:\prod\programming\fb\z store\DJ Peters\fbsound0.20\tests\FBTEMP.bas() warning 20(2): Object files or libraries with mixed multithreading (-mt) options, ../lib/win32\libfbsound.a

The warning message basically tells you what the problem is: you mix FB code compiled with "-mt" and without "-mt". By default code is compiled without "-mt" as long as you don't use any threading commands like "ThreadCreate" etc. - if you do so "-mt" is added automatically.

I haven't looked into fbsound, but maybe you've to compile it with "-mt"; or you have to compile your application with "-mt" when fbsound is already compiled with "-mt".
dafhi
Posts: 811
Joined: Jun 04, 2005 9:51

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

Postby dafhi » Aug 11, 2016 0:47

okay I confused with error because many demo files also show:
error: fbs_Init() !

test06.bas

Code: Select all

dim as string data_path = exepath & "/../data/"
'const data_path = "../data/"

new

Code: Select all

if fbs_init(22050) then

new

Code: Select all

  if fbs_Load_MP3File(data_path & "legends.mp3",@hWave) then
Boromir
Posts: 128
Joined: Apr 30, 2015 19:28
Location: U.S. Texas

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

Postby Boromir » Jan 12, 2017 3:40

I'm on windows 10 64 bit and I'm looking for a commercially usable sound library for my game. I compiled this but all the samples crash with "test.exe" stopped working error. I'm compiling on 32 bit fbc.
D.J.Peters
Posts: 6845
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 » Jan 12, 2017 3:51

again: Sorry I stopped the development of FBSound, it's dead.
Boromir
Posts: 128
Joined: Apr 30, 2015 19:28
Location: U.S. Texas

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

Postby Boromir » Jan 12, 2017 3:57

Are there any free for commercial use alternatives for playing ogg in fb. I've always used fmod but it's not available free for commercial use.
bcohio2001
Posts: 410
Joined: Mar 10, 2007 15:44
Location: Ohio, USA
Contact:

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

Postby bcohio2001 » Jan 12, 2017 6:42

D.J.Peters wrote:again: Sorry I stopped the development of FBSound, it's dead.

If this is "dead". Ask for them to unpin this topic and let it fall from the top.
It will still be searchable, but will no longer at the top of the forum.
chung
Posts: 442
Joined: Jan 16, 2010 20:52
Location: France
Contact:

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

Postby chung » Jan 17, 2017 10:30

you can use mcisendstring if you dont need to access the binary data of sounds , just play sounds and music with volume , speed, repeat control. thats what i use in my games.
it is part of windows , so i dont know if it is allowed for commercial use.(it should)
D.J.Peters
Posts: 6845
Joined: May 28, 2005 3:28
Location: Germany

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

Postby D.J.Peters » Jan 17, 2017 17:30

@bcohio2001 FBSound is one of the best free and open source soundlib I ever saw
and it's works perfect on 32-bit Windows and Linux.

For example show me any other free open source lib with a realtime pitchshifter ?

The problem are the quality and speed comes from pure x86 inline assembler code.

No once from the FB community is willing to add 64-bit assembler or port it to FB code.

The onsequence are "it will die" :-(

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

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

Postby St_W » Jan 18, 2017 10:57

D.J.Peters wrote:No once from the FB community is willing to add 64-bit assembler or port it to FB code.

I'd rather say that the problem is not willingness, but rather the complexity of the existing code. One needs a good knowledge of x86 Assembly including MMX, SSE, ... extensions and probably also a good understanding of audio signal processing to understand what the existing code does and being able to translate it accordingly to FreeBasic code. To make it fast on x64 using x64 Assembly one additionally needs very good knowledge of x64 Assembly programming. I just think that currently nobody in the FB-Forum community fulfils those requirements.
Imortis
Posts: 1287
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

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

Postby Imortis » Jan 18, 2017 14:17

St_W wrote:
D.J.Peters wrote:No once from the FB community is willing to add 64-bit assembler or port it to FB code.

I'd rather say that the problem is not willingness, but rather the complexity of the existing code. One needs a good knowledge of x86 Assembly including MMX, SSE, ... extensions and probably also a good understanding of audio signal processing to understand what the existing code does and being able to translate it accordingly to FreeBasic code. To make it fast on x64 using x64 Assembly one additionally needs very good knowledge of x64 Assembly programming. I just think that currently nobody in the FB-Forum community fulfils those requirements.


I would love to update it but it is exactly as St_W says. I am lacking knowledge in the areas mentioned above.
Boromir
Posts: 128
Joined: Apr 30, 2015 19:28
Location: U.S. Texas

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

Postby Boromir » Jan 18, 2017 15:42

chung wrote:you can use mcisendstring if you dont need to access the binary data of sounds , just play sounds and music with volume , speed, repeat control. thats what i use in my games.
it is part of windows , so i dont know if it is allowed for commercial use.(it should)


Thanks. I might use that. The downside would be that it would break Linux compatibility.
CPT-GrayWolf
Posts: 2
Joined: Oct 22, 2014 13:28
Location: A Colorado Nothingtown

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

Postby CPT-GrayWolf » Feb 09, 2017 20:31

Seems I got no response on my last post.

Anyway, I will be starting my own library.

I intend it to be a feature-rich game oriented audio library written in FreeBASIC for both 32 and 64 bit Window and Linux. I will license it as opensource and free for use and distribution, even in retail applications. I hope to fill in for the lack of such a library currently being available, not just for me, or for FreeBASIC, but for the indie game dev community as a whole.

I plan to use fbsound, not as a base, but as a reference for how such a library would be ideally implemented.

It may be some time before I have a functional library of note, but when I do I'll be posting here first.

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 1 guest