Jump to content
Tuts 4 You

BASS static lib v.2.4


::: - phpbb3 - :::

Recommended Posts

great! It seems like a mod music version, without BASS_SampleLoad.

How can I use it in C or C++?

BTW, the simple player source may have some bugs.

It should not free resources during WM_DESTROY message,

It should process these actions during WM_CLOSE message.

Thank you.

Edited by alaphate
Link to comment

While I appreciate your attempts to share a working bass lib..

do you actually test your attachments at all?

I mean does it still play the supported formats?

Also what are you trying to achieve compared to the

(at least 100% working) bass lib posted by ghandi?

I'm just curious, since all your libs look quite damaged over here..

Link to comment

The updated static lib may have some bugs when using BASS_SampleLoad.

Here is the main code and full project attached.

The project has been tested with original lib with no errors.

int main()
{
if(!BASS_Init( -1, 44100, 128, 0, 0)) {
printf("BASS_Init failed! \n");
return 1;
}
HSAMPLE hMusic =0;
hMusic = BASS_SampleLoad(false, ".\\bird.mp3\0", 0, 0, 1, 0);
if(!hMusic) {
printf("hMusice = 0 \n");
return 1;
}
HCHANNEL hMainFX = 0;
hMainFX = BASS_SampleGetChannel(hMusic, FALSE);
if(!hMainFX) {
printf("hMainFX = 0 \n");
return 1;
}
BASS_ChannelPlay(hMainFX, FALSE);
printf("press any key to stop the music!");
getch();
return 0;
}

baseTest.zip

Edited by alaphate
Link to comment
  • 3 weeks later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...