Adam Haile
Adam Haile

Reputation: 31339

Using the Windows MP3 decoder with Un4Seen Bass.NET

I'm writing a media player that uses the Bass.Net wrapper for Un4Seen's Bass native audio API. The library is all free for non-commercial use and I have the free license, but in the documentation it says that unless you tell Bass to use the MP3 decoder built into Windows, it requires that you to also get a separate license from the MP3 licensing organization.

However, I cannot find anywhere how to get Bass.Net to tell it to use the Windows decoder instead of the one built into Bass (that requires the license).

This is going to be an open source application and I don't want to have to get a license for something that's free.

Any ideas how to do this?

Upvotes: 2

Views: 1714

Answers (1)

Christopher Currens
Christopher Currens

Reputation: 30695

According to some forums:

With version 2.3.0.1 there are now two versions of the bass.dll available:

a) the standard on in the main directory based on the BASS internal MP3 decoder

b) the on the 'mp3-free' directory which is using the Windows based MP3 decoder

Source

So, you should be able to simply replace the bass.dll with the version in the mp3-free directory, and it will use the windows mp3 decoder automatically.


The information below the line is outdated. Apparently, they got rid of the BASS_CONFIG_MP3_CODEC config in an earlier version of Bass.NET

If you have the .NET API help chm (/help), you can look at the BASS_SetConfig method in the Bass class for more information on setting up configurations.

Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_MP3_CODEC, 1);

Interestingly enough, the BASS_CONFIG_MP3_CODEC value (supposedly of the BASSConfig enumeration), is listed in the Get/SetConfig methods, but not in the actual documentation of the enum.

Upvotes: 3

Related Questions