Re: Bass Library?
- Posted by Icy_Viking Aug 16, 2023
- 718 views
hi everyone i've been looking into how can I use and play sound and music with my programs... i like to make simple text games with sample royalty-free music or sounds and in freeBASIC there are some nice libraries to use (external ones) for both 32bit and 64bit both windows and linux - now I've looked into the github of euphoria and yes there are libraries for sound and music playing such as SDL2_mixer however there are recommended to 32 bit not for 64 bit and I'm on 64 bit Linux OS... anyway I've been thinking about translating with the help of someone the header of Bass Library from C to Euphoria to use with the actual library...
for those who are not familiar Bass is a good sound/music library that is very easy to use with other languages - it is written entirely in C and can play mp3 wav m4a ogg files and many other formats it has versions for win32 Linux 64 bit macOS freeDOS and many other OS's it's also very portable... I've personally used bass library both in C and in freeBasic programs/games I think it would be a good addition to the euphoria github project...
what do you think?
here is the link to the library: Bass Libray Site
If you want to make an updated wrapper for the Bass library go for it. I thought about making a wrapper myself, but I already made a wrapper for SoLoud.
https://github.com/gAndy50/EuSoLoud
You can use it with 64-bit Euphoria, you just need to use the 64-bit DLL along with 64-bit euphoria. I need to update it for use with Greg's FFI library, but it still works well. I guess I should say .so or shared library file in your case since you're under Linux. My OS is Windows, but I do have WSL installed. So I can test for both Windows and Linux. I'm a 64-bit OS myself, but I use the 32-bit version of DLLs or shared libraries for compatibility reasons.