BASS for ARM Linux

Started by Ian @ un4seen,

Ian @ un4seen

#460
The ARM Linux versions of the BASSenc_MP3 2.4.1.4, BASSCD 2.4.7.1, and BASSmix 2.4.11.2 updates are up in the 1st post.

Ian @ un4seen

The ARM Linux version of the new BASSAPE add-on (replacing BASS_APE) is up in the 1st post.

Ian @ un4seen

The ARM Linux version of the BASSMIDI 2.4.14 release is up in the 1st post.

Hanuman

I'll just note an inconsistency: x64 has file libbass_ape.so whereas arm64 has file libbassape.so

Ian @ un4seen

That looks like you probably downloaded the arm64 add-on more recently than the x64 add-on. The old BASS_APE (libbass_ape.so) add-on was replaced by a new BASSAPE (libbassape.so) add-on earlier this year. You can get the latest x64 add-on from the BASS webpage.

Starting from the next BASS release, the ARM builds will be included in the standard Linux BASS/add-on packages, so it'll be simpler to keep them in sync then.

SteveS

I have an existing player app that deals with playlists of MP3s, and uses the fact that pay has reached a certain point (the end of the track) to trigger the next one in sequence.
This is all working fine.

However, I would now like to do the same, but instead of playing through a normal audio device, I would like to send everything to an ICECAST server. Ideally, I would also like to be able to send metadata, which I have for all the MP3s, some of it embedded, and some as external data.

I am having trouble understanding how this would work in practice. Can anyone give me an outline for how this would work?
Thanks

Steve

Ian @ un4seen

You can use BASS's "No Sound" device for the "instead of playing through a normal audio device" part. And you can use the BASSenc add-on for the encoding and casting part, possibly also the BASSenc_MP3 add-on if you want MP3. To encode everything that's played by your app, you can set the encoder on BASS's output mix. Putting that all together, it could look something like this:

BASS_Init(0, 44100, 0, 0, ); // initialize No Sound device
outmix = BASS_StreamCreate(0, 0, 0, STREAMPROC_DEVICE, 0); // get output mix
encoder = BASS_Encode_MP3_Start(outmix, options, BASS_ENCODE_QUEUE | BASS_ENCODE_PAUSE, 0, 0); // set an MP3 encoder on it
BASS_Encode_CastInit(encoder, ...); // setup connection with Icecast server
BASS_Encode_SetPaused(encoder, false); // start encoding

Please see the documentation for details on the mentioned functions.

Ian @ un4seen

The ARM Linux version of the BASSmix 2.4.12 release is up in the 1st post.