23 May '13 - 18:50 *
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 ... 10 11 [12] 13 14
  Reply  |  Print  
Author Topic: BASS for Linux  (Read 111442 times)
comingcom
Posts: 3


« Reply #220 on: 28 Jan '10 - 08:26 »
Reply with quoteQuote

Hello. My name is Kei. I am a Linux developer.

Can I ask you some questions??

I work for IT company.

I want to use your s3c6410 liscen.

How much is it? And How long will the goods I ordered be delivered?

Please, Answer my questions
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #221 on: 28 Jan '10 - 15:43 »
Reply with quoteQuote

Can you please clarify what you mean by "s3c6410" licence? That seems to be a Samsung/ARM CPU, so are you saying that you would like to use BASS on that?
Logged
comingcom
Posts: 3


« Reply #222 on: 29 Jan '10 - 05:54 »
Reply with quoteQuote

So, sorry

I can't explain very well.

I'd like to buy library that to cross compile bass library for s3c6410 arm11 chip.

Is it getting easier than last time?? ;;;;

How much is it? and How can I buy it??
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #223 on: 29 Jan '10 - 15:56 »
Reply with quoteQuote

OK. The Linux version hasn't been tested on ARM yet, but I could send you a build to try if you want. Note that ALSA is required if you want output (not just decoding).

Regarding licensing, it is the same as for the other platforms (see the BASS webpage), but you should probably confirm that it works for you before thinking of that Smiley
Logged
comingcom
Posts: 3


« Reply #224 on: 2 Feb '10 - 01:02 »
Reply with quoteQuote

Ok...thanks you.

I want to try it.

Could you send a build?

My e-mail address is khw1979@gmail.com.



Logged
Intosia
Posts: 1


« Reply #225 on: 3 Feb '10 - 19:25 »
Reply with quoteQuote

A ARM version would be cool indeed, im started to work on a hobby project for a Midi Audio Sampler on Embedded Linux (on the Mini2440 board, also Samsung arm chip).

So im very interested to!  Grin
Logged
inagy
Posts: 9


« Reply #226 on: 13 Feb '10 - 21:32 »
Reply with quoteQuote

Hello everybody!

First of all sorry for my bad English. I've started testing BASS on Linux using Mono and the BASS.NET assembly. Reading through the topic i could manage to play a simple mp3 file. Now trying to use bassenc to stream something to my IceCast server. I've tried the native cast example, everything was okay with it. From my project i try to feed the LAME encoder from a simple mp3 stream channel. Everything works fine, until i try to call the CastInit method. I get this error:
Unhandled Exception: System.DllNotFoundException: bassenc.so
  at (wrapper managed-to-native) Un4seen.Bass.AddOn.Enc.BassEnc:BASS_Encode_CastInit (int,string,string,string,string,string,string,string,string,int,bool)
  at testbass.MainClass.Main (System.String[] args) [0x00000]
As you can see, i've mapped the bassenc.dll to bassenc.so in the config file of Bass.Net.dll, the same way as i did with bass.so. I'm using the 64bit version of Ubuntu 9.10, i've placed the libraries into the lib64 folder, and after it didn't solve my problem, i've placed it near my mono exe file and launched mono with the LD_LIBRARY_PATH=".\" export. That also not worked.

I've seen that someone here managed to use bassenc on Linux. Could you help me what did i do wrong? Or is it a bug with the Bass.Net and x64 combination of bassenc? Undecided

Thanks!
Logged
inagy
Posts: 9


« Reply #227 on: 21 Feb '10 - 17:02 »
Reply with quoteQuote

As i said in Bass.NET's topic, i could manage to make Bass work with 64bit Ubuntu and Bass.NET. (The problem is that i don't know how. Embarrassed Just made an another project from scratch and it worked.)

I like to ask, is there any plans for supporting PulseAudio natively? I'm searching on the net for howtos, so i can make my Bass program's sound go through the PulseAudio server, but looks like my Ubuntu already has all the packages for ALSA->PulseAudio proxying. If i play a WAV file with aplay, i can see in PulseAudio's Volume Control that it uses the ALSA plugin correctly, and sound goes through PulseAudio. I don't have programming experience with ALSA, but can it be that Bass doesn't knows about this gateway? I can only use Bass currently when no application makes sound over the PulseAudio server so PulseAudio don't occupies the sound hardware. Of couse, when my Bass program locks the soundcard, PulseAudio doesn't output anything. And it's very annoying. Undecided
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #228 on: 26 Feb '10 - 17:49 »
Reply with quoteQuote

BASS currently only supports hardware devices (and dmix), but it may be possible to make it also support "sound server" proxies like you mention. I'll have to look into it.

In the meantime, the Linux BASSenc and BASSmix builds have been updated to the latest stuff.
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #229 on: 5 Mar '10 - 16:36 »
Reply with quoteQuote

An updated build to try is now in the Linux package. It adds a "Default" device which will use whatever output is set as the default in the ALSA config (that should be the PulseAudio plugin on a system with that setup). The 1st post has also been updated with some info on that.

It hasn't been tested very much yet, so if you do try the new "Default" device option, please report how you get on.
Logged
bega
Posts: 19


« Reply #230 on: 13 Apr '10 - 02:37 »
Reply with quoteQuote

Please... Simple example bassenc for Lazarus Linux? SOLVED... Thank-you.
« Last Edit: 16 Apr '10 - 02:20 by bega » Logged
ReymonARG
Posts: 41


« Reply #231 on: 12 May '10 - 20:20 »
Reply with quoteQuote

An updated build to try is now in the Linux package. It adds a "Default" device which will use whatever output is set as the default in the ALSA config (that should be the PulseAudio plugin on a system with that setup). The 1st post has also been updated with some info on that.

It hasn't been tested very much yet, so if you do try the new "Default" device option, please report how you get on.

Thanks. I will try now if now on Ubuntu don't lag. Cheesy
Logged
inagy
Posts: 9


« Reply #232 on: 7 Aug '10 - 16:59 »
Reply with quoteQuote

An updated build to try is now in the Linux package. It adds a "Default" device which will use whatever output is set as the default in the ALSA config (that should be the PulseAudio plugin on a system with that setup).
Thanks! I'm currently writing my own Java interface for BASS using JNA, tried the new default ALSA device, and it works very well through PulseAudio. Smiley

I have one question, maybe it's not related to this topic. I'm trying to write a little radio automation software using Bass and Java. My goal is to use it on a headless Linux machine. The basic architecture will be this from the viewpoint of Bass:
[Audio deck1 (BASS channel)]----+ +---[Audio encoder1 (BASS enc)]-> to IceCast
+---[Audio mixer (BASS mixer)]--+
[Audio deck2 (BASS channel)]----+ +---[Audio encoder2 (BASS enc)]-> to IceCast
There will be a scheduler which manage the source decks, and load the upcoming tracks to them (there will be an SQL database behind which contains all track related data), set up fade-in/out envelopes on the mixer channels, handle overlapping, etc.

Is it possible to me to create an architecture like this using no audio output device at all? I can create the mixer adding decoding channels to it without errors using no audio device, but when i launch an encoder on the mixer's channel it doesn't stream anything (it connects to Icecast though for a short time, and i don't get any errorcode). BASS_Channelplay on the mixer returns false.
If i initialize BASS with a real audio device everything is working, even with two encoders to IceCast.

By the way, it looks like the AAC+ encoder on this site works nicely with bassenc: http://teknoraver.net/software/mp4tools/ using the command line (for 48kbits):
aacplusenc - - 48
« Last Edit: 7 Aug '10 - 17:41 by inagy » Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #233 on: 10 Aug '10 - 13:55 »
Reply with quoteQuote

Yes, that should be fine. Instead of BASS_ChannelPlay, you would repeatedly call BASS_ChannelGetData. BASSenc will automatically regulate the data rate (assuming you don't use the BASS_ENCODE_CAST_NOLIMIT flag) to avoid overflowing the server's buffer, so you could simply do something like this...

while (BASS_Encode_IsActive(mixer)) { // encoder/connection is still alive
BYTE buf[20000]; // processing buffer
BASS_ChannelGetData(mixer, buf, sizeof(buf)); // process some data
}
Logged
inagy
Posts: 9


« Reply #234 on: 15 Aug '10 - 10:07 »
Reply with quoteQuote

Yes, that should be fine. Instead of BASS_ChannelPlay, you would repeatedly call BASS_ChannelGetData. BASSenc will automatically regulate the data rate (assuming you don't use the BASS_ENCODE_CAST_NOLIMIT flag) to avoid overflowing the server's buffer, so you could simply do something like this...

while (BASS_Encode_IsActive(mixer)) { // encoder/connection is still alive
BYTE buf[20000]; // processing buffer
BASS_ChannelGetData(mixer, buf, sizeof(buf)); // process some data
}
Thanks Ian! Got the idea now, i'll try this out later. Wink
Logged
xStSx
Posts: 9


« Reply #235 on: 22 Aug '10 - 01:03 »
Reply with quoteQuote

Hi everybody.

I have problem with PulseAudio + Bass (I believe so) , cause running app through pulse loading CPU to 100%.
...
BASS_Init (1, 48000, 0, NULL, NULL);
...

Same code ALSA+Bass running perfect.
...
BASS_Init (-1, 48000, BASS_DEVICE_DMIX, NULL, NULL);
...

Can someone pointing me where to look or how to resolve this issue , if possible.

Thanx.

PulseAudio - 0.9.21
Alsa - 1.0.23
Bass - latest , from first page.
Archlinux
« Last Edit: 22 Aug '10 - 01:06 by xStSx » Logged
inagy
Posts: 9


« Reply #236 on: 22 Aug '10 - 13:07 »
Reply with quoteQuote

Is there any plan for porting the Musepack decoder to Linux also? It would be really nice. Wink
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #237 on: 23 Aug '10 - 17:01 »
Reply with quoteQuote

I have problem with PulseAudio + Bass (I believe so) , cause running app through pulse loading CPU to 100%.

What does BASS_GetCPU say? Also, if you look at the individual process CPU usage, is it your process that is taking the CPU, or is it the pulseaudio server, or even something else? I may have to send you a debug version to get some info on what's happening.

Is there any plan for porting the Musepack decoder to Linux also? It would be really nice. Wink

Yep, a Linux version of BASS_MPC is now available in the 1st post.
Logged
Zenon
Guest
« Reply #238 on: 27 Aug '10 - 22:45 »
Reply with quoteQuote

Hi all, I'm interested in using bass library for getting wav info from header and mostly for converting it to a specific sample rate, so as from stereo to mono.
Is is possible?
My specific request is I would like to have a mono compatible dll, and I don't know if with all those p invoke calls it's possible.
Any suggest please?

Thanks a lot!
Logged
zenon
Posts: 86


« Reply #239 on: 27 Aug '10 - 22:53 »
Reply with quoteQuote

I forgot to mention above, I'm developing in C# and I would like to start from a byte[] stream instead of a file.
« Last Edit: 28 Aug '10 - 12:59 by zenon » Logged
Pages: 1 ... 10 11 [12] 13 14
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines