21 May '13 - 06:34 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 ... 12 13 [14]
  Reply  |  Print  
Author Topic: BASS for Linux  (Read 111317 times)
peikis
Posts: 2


« Reply #260 on: 7 Mar '11 - 17:04 »
Reply with quoteQuote

Got it! Thanks a lot
Logged
xStSx
Posts: 9


« Reply #261 on: 12 Mar '11 - 02:39 »
Reply with quoteQuote

Hi.
I have a problem with BassMix on linux . I'm trying to upmix from stereo to 5.1 with BASS_Mixer_ChannelSetMatrix(...); but it always says Error 5 (BASS_ERROR_HANDLE - The channel is not plugged into a mixer.)
...
BASS_Init(-1, 44100, BASS_DEVICE_DMIX, 0, NULL);
...
source_chan = BASS_StreamCreateFile (FALSE, filepath, 0, 0, BASS_STREAM_DECODE);
...
mixer_chan = BASS_Mixer_StreamCreate (44100, 6, 0); //
...
BASS_Mixer_StreamAddChannel(mixer_chan, source_chan , BASS_MIXER_MATRIX | BASS_STREAM_AUTOFREE);
...
BASS_Mixer_ChannelSetMatrix (mixer_chan, matrix); -> Error 5
BASS_Mixer_ChannelSetMatrix (source_chan, matrix); -> Error 37  (Example from speakers/speakers.c example of bassmix24)
...

mixer_chan is working, playing. but matrix mixing isn't working . Did I missed something ? Please point me.
Thank you.

Logged
Ian @ un4seen
Administrator
Posts: 15253


« Reply #262 on: 14 Mar '11 - 15:19 »
Reply with quoteQuote

The matrix should be set on the mixer source, not the mixer itself, so that explains why the BASS_Mixer_ChannelSetMatrix call with "mixer_chan" is failing with error code 5 (BASS_ERROR_HANDLE), ie. "mixer_chan" is not plugged into a mixer.

Error code 37 (BASS_ERROR_NOTAVAIL) in the BASS_Mixer_ChannelSetMatrix call with "source_chan" indicates that matrix mixing has not been enabled for the source. It is enabled (via the BASS_MIXER_MATRIX flag) in the BASS_Mixer_StreamAddChannel call above though, so that is a bit puzzling. Are you sure it has been enabled in the code you're running? What is the return value if you make the following call?

DWROD flags=BASS_Mixer_ChannelFlags(source_chan, 0, 0);
Logged
djtraumwelt
Posts: 20


« Reply #263 on: 9 Apr '11 - 15:23 »
Reply with quoteQuote

i get error while loading shared libraries: /usr/lib/libbassenc.so: ELF file OS ABI invalid when starting a programm that uses libbassenc.so with the version of 18 mar 2011. maybe theres something wrong with this new version of libbassenc.so. can you upload an older version? i didnt save it.
Logged
Ian @ un4seen
Administrator
Posts: 15253


« Reply #264 on: 11 Apr '11 - 13:41 »
Reply with quoteQuote

A rebuild of the BASSenc add-on is up in the Linux package (see 1st post). Let me know if you still have any trouble with it.
Logged
djtraumwelt
Posts: 20


« Reply #265 on: 11 Apr '11 - 17:24 »
Reply with quoteQuote

this one works perfektly =)
a lot of thx!!
Logged
Ian @ un4seen
Administrator
Posts: 15253


« Reply #266 on: 12 Apr '11 - 18:27 »
Reply with quoteQuote

Jolly good Smiley

Some more new stuff has been added to the Linux package today. The BASSFLAC and BASSMIDI add-ons have been updated to the latest versions, and a port of the BASSCD add-on has been added.
Logged
Vijay Chandrasekhar
Guest
« Reply #267 on: 21 Apr '11 - 11:16 »
Reply with quoteQuote

Where are the bass.h etc files available ?  I get this error when i try to compile


3dtest.c:12:18: error: bass.h: No such file or directory
Logged
Vijay Chandrasekhar
Guest
« Reply #268 on: 21 Apr '11 - 11:58 »
Reply with quoteQuote

Hi Ian,

I need a simple library which given an http radio stream - returns me the raw audio samples in the stream.

Is bass audio the right library for this ? I would like to have a good clean solution and am willing to pay for it.

I took a brief look at the netradio example - but does it give access to the underlying samples ?

I'd be grateful if you could let me know your thoughts.

Cheers,

Vijay

Logged
Ian @ un4seen
Administrator
Posts: 15253


« Reply #269 on: 21 Apr '11 - 13:28 »
Reply with quoteQuote

Where are the bass.h etc files available ?

The BASS/add-on headers (and documentation) apply to all platforms, so they can be taken from the Win32 or OSX packages (available from the BASS webpage).

I need a simple library which given an http radio stream - returns me the raw audio samples in the stream.

Do you want to receive the decoded PCM sample data without playing it? If so, that can be done by using a "decoding channel". It could look something like this...

decoder=BASS_StreamCreateURL(url, 0, BASS_STREAM_DECODE, 0, 0); // create a decoding channel from a URL
// processing loop
while (1) {
BYTE buf[20000];
int r=BASS_ChannelGetData(decoder, buf, sizeof(buf));
if (r==-1) break; // error, eg. EOS
if (!r) Sleep(100); // no data, wait a bit
else {
// process the "r" bytes of data in "buf"
}
}
Logged
Ian @ un4seen
Administrator
Posts: 15253


« Reply #270 on: 23 May '11 - 17:41 »
Reply with quoteQuote

The Linux versions of BASS and the add-ons have now been moved to the BASS page.
Logged
djtraumwelt
Posts: 20


« Reply #271 on: 18 Aug '11 - 05:19 »
Reply with quoteQuote

I have a problem with bassmix: sound is bad when source channel has the same sample frequency than the mixer channel. when i have different sample frequencys the sound is good. but only 44100 and 48000 works to play back with the win32 vlc, what the encoder on a linux machine is outputting. now i have files with 44100 and files with 48000 and i want all the files to get worked.
Logged
Ian @ un4seen
Administrator
Posts: 15253


« Reply #272 on: 18 Aug '11 - 17:24 »
Reply with quoteQuote

I'm afraid I'm not entirely sure what you mean; perhaps you could post some code to show what you are doing? Please also describe how the sound is bad; if you have a recording of it, you can upload that here...

   ftp.un4seen.com/incoming/
Logged
djtraumwelt
Posts: 20


« Reply #273 on: 18 Aug '11 - 21:50 »
Reply with quoteQuote

chan1 = BASS_AAC_StreamCreateFile(FALSE,datei,0,0,BASS_STREAM_DECODE);
chan3 = BASS_AAC_StreamCreateFile(FALSE,datei,0,0,BASS_STREAM_DECODE);

mixing = BASS_Mixer_StreamCreate (44101,2, BASS_STREAM_DECODE);
BASS_Mixer_StreamAddChannel (mixing, chan1, 0);

mix2 = BASS_Mixer_StreamCreate (44100,2, BASS_STREAM_DECODE);
BASS_Mixer_StreamAddChannel (mix2, chan3, 0);

enc = BASS_Encode_StartLimit(mixing,"aacplusenc - - 48",BASS_ENCODE_LIMIT,0,0,100000000);
BASS_Encode_ServerInit (enc, radioport, 560000, 480000, 0, servfunc, NULL);

enc2 = BASS_Encode_StartLimit(mix2,"aacplusenc - - 48",BASS_ENCODE_LIMIT,0,0,100000000);
BASS_Encode_ServerInit (enc2, "0.0.0.0:8050", 560000, 480000, 0, servfunc2, NULL);


enc with BASS_Mixer_StreamCreate (44101... you can listen to with http://djtraumwelt.de:8000
enc2 with BASS_Mixer_StreamCreate (44100... you can listen to with http://djtraumwelt.de:8050
should be online 24/7
port 8000 with a different sample frequenzy 44101 instead of 44100 he is resampling and sound is good
port 8050 with same sample frequenzy he isnt resampling and sound is overdriven, much too loud and bad.

i solved it with using 44101 as sample frequency
but it would still be nice to solve it in the libbassmix.so
Logged
Ian @ un4seen
Administrator
Posts: 15253


« Reply #274 on: 19 Aug '11 - 14:32 »
Reply with quoteQuote

Oops! You're right, there was indeed a bug in the BASSmix Linux release. An update to fix that is now up on the BASS page.
Logged
djtraumwelt
Posts: 20


« Reply #275 on: 19 Aug '11 - 21:22 »
Reply with quoteQuote

thanks a lot for fixing this! and a lot of thanks for making so great libraries, very useful! in the next step you can make it possible in bassenc server to send icy info.
Logged
fredvs
Posts: 327


« Reply #276 on: 16 Sep '11 - 14:49 »
Reply with quoteQuote

Hello Ian, hello everybody.
I do not find the libbass.so package for x64 bits.
Or maybe libbass.so is the same for x32 and x64 bits ?
Thanks
Logged
fredvs
Posts: 327


« Reply #277 on: 16 Sep '11 - 14:54 »
Reply with quoteQuote

Ooops, i was looking with my nose.
It is in the x64 folder.
Thanks and sorry for disturb...
Logged
Pages: 1 ... 12 13 [14]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines