BASS for ARM Linux

Started by Ian @ un4seen,

drugoimir

#40
Hello Ian,

regarding the first tests on bassenc-arm-hf,
i recompiled your "server" test application
and tried with an usb headset.
So i get, at the client end, a glitchy audio,
something like if some samples were missing,
something like if i have a N length buffer but
i miss 1 or 2 samples when i read from it (or write to).
I cannot explain in a better way, but i used this
example because it is the same effect i got when
i was experimenting with the dsp callback and
i was processing the wrong number of samples.
Likewise, the vlc player i'm using, often disconnects
for a while then immediately rebuffers and restart, like
it's consuming data faster than those the encoder can produce.

I tried the mp3 encoder alone from console window,
converting a wav file into an mp3 and it seems ok.
I tried to write the encoded data directly to disc, instead
of streaming them out, tried both mp3 and wav,
and i get the "glitchy" audio on both.
The usb headset was brand new, i didn't know if it could
be defective, so i plugged it into a windows machine and it is ok.
Finally, i copied the same source i'm testing on the arm machine
and recompiled it on a linux-386: using your linux-386
bass and bassenc, all is ok, no glitches, no client disconnecting.

 ???
Bye
Tom

[edited]
after further investigation, it seems a driver/hardware problem
related to usb stream not being synchronized.
Hoping that someone will fix that.

trentggg

Ian @ un4seen

It's on the way. Shouldn't be very much longer I think :)

trentggg

I see bass_fx in the Original Post now. Thanks much! :)

AndroidMediaPlayer

Hey Ian,

plugins works fine, thanx. Whats about BASS_TAG for Linux / Android / ARM (PI)? Would it be possible? :)

Ian @ un4seen

It was a while ago, but I did look into an Android version of the TAGS add-on and I recall there were some problems (C++ library issues I think). There have been NDK updates since then, so perhaps things have changed. I'll have to check again :)

trentggg

Hello,

Please excuse me for any ignorance I display here as I have a lot of it on this subject. :P

Someone has just implemented hardware acceleration for Vorbis on Raspberry Pi (http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=19334&start=275#p269992) among other codecs (all video besides Vorbis.) What would it take to use this in BASS?

I didn't have a bare bones BASS program to test with, but ogg123 eats about 9-10% of the Pi CPU just playing an OGG from flash. Seems to me if I could get an extra WHATEVER (~5%? I'm not sure) reduction that would help huge on such a low spec system (I make games.)

Anyway, just throwing this out there and letting you know it exists if you haven't seen it.

Thanks,
Trent

trentggg

Well that last post went un-replied to, but it was really just hopeful thinking anyway.. this is more important.

Foremost: will we see an mp3-free version for ARM? And secondly, hypothetically because I'm not going to be releasing my game in the immediate future, how do we get a license for the ARM version?

Thanks!

Ian @ un4seen

An "mp3-free" BASS build (which will use libmpg123 when present) has now been added to the ARM Linux package in the 1st post. The standard BASS version has also been updated to the latest stuff at the same time.

Regarding licensing, the ARM Linux version is covered by the Linux BASS licence, so you can get that when you're ready to go :)

trentggg

Thanks Ian. I have most of the available licenses already (except Windows CE) :D.

Ian @ un4seen

The latest BASS version (2.4.10) is now up in the first post.

Ian @ un4seen

The latest version (2.4.1) of the BASSOPUS add-on is now up in the first post.

trentggg

Wanted to report on how things are working for me on Raspberry Pi.

Overall it works really well. Things are fast and normally sounds great.

I've had a few issues. The first is that sometimes (not very often) when I change songs (in my game, changing areas or toggling sound on and off) the audio output will go down the tubes. I don't know how to describe it but it becomes very laggy and sort of
on and off" ie not playing for a while then playing a brief bit of lagged music and repeat.

The second issue I have I think I'd had on other platforms too be seems to be greater here. When I turn the music off in my game, sound effects start playing either not at all or just brief little "blips" (for short sound effects.) When the music is playing they play correctly. No idea what causes this.

Anyhow, overall it's good, thanks for the port!

Ian @ un4seen

That sounds strange. For comparison, have you also implemented a version of your game that uses the standard Linux version of BASS, and if so, do you ever have the same problems with that? One thing you could try is seeing if increasing the BASS_CONFIG_DEV_BUFFER setting (prior to calling BASS_Init) has any effect.

trentggg

I have. I've not experienced the issue on anything but the Raspberry Pi. As for that setting, I'm currently setting it to 4096 because if I don't, the sound is _always_ choppy. What would you recommend setting it to?

Thanks,
Trent

Ian @ un4seen

The BASS_CONFIG_DEV_BUFFER option setting is in milliseconds, so 4096 seems a bit high, ie. it's asking for a buffer of over 4 seconds. The default setting is 40ms. Please try raising that in 10ms increments to find when the sound stops being choppy, and then see if the other problems still happen.

scrww

hi, I'me trying to run a mono app with bass in RPi, and I've a noise when change between songs, and sometimes de noise continue during the song.
We've tried ti change the Buffer but don't have good results.

The first song is always right.

Thanks for your help!!! :-[

Ian @ un4seen

What sort of noise is it? If you have a recording, you can upload it here...

   ftp.un4seen.com/incoming/

To confirm whether the problem is something specific to the ARM Linux version or something more general, please see if you can reproduce it on the standard/x86 Linux platform too.

scrww

In a Linux standard (ubuntu) the mono app run perfect.
I don't have a record, but the noise is like a "click" or when a speaker is broken (my speakers are right;)
The noise is always when change a song to the next, and sometimes the noise appear in bucle during de song (every 2-3 seconds)

When I init BASS first time in the first song, all is right...

scrww

Sorry, I detect that the noise is at the end of the song. If I play one song, the noise appear when it finish