Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

TheMightyDude

Playing Tracker music files in OpenGL Project.

This topic is 5226 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello All I am just asking if anyone knows where I can get any example code for loading and playing Tracker type Music modules like (Pro Tracker,Scream Trakcer) etc. This is for a VC++6 Project. Thanks in advance Paul Kirby

Share this post


Link to post
Share on other sites
Advertisement
Yeah but that uses a 3rd party dll also like the base.dll does

I wanted the the example source to play the tracker music modules.

Though Base.dll seems to look impresive so far
So I might end up using that.

Thanks in advance
Paul kirby

Share this post


Link to post
Share on other sites
Allthough it dosn''t have any capability to play tracker files i am currently developing my own sound engine based on OpenAL.

Allthough earlier i have been using FMOD, its pretty easy to use.

---------------------------------
For an overdose of l33tness, flashbang.nu

Share this post


Link to post
Share on other sites
quote:
Original post by lc_overlord
Allthough it dosn''t have any capability to play tracker files i am currently developing my own sound engine based on OpenAL.

Allthough earlier i have been using FMOD, its pretty easy to use.

---------------------------------
For an overdose of l33tness, flashbang.nu


Well Bass.dll does what I want aapart from do the triggering on samples being played in the tracks.

I can almost do it with BASS_ChannelGetData(); which returns the equivalant of the Spectrum. ( I think )

Though I may just lookup the datasheet for Pro-Tracker file format, and try and write my own
Could be fun

Share this post


Link to post
Share on other sites
"Well Bass.dll does what I want aapart from do the triggering on samples being played in the tracks."

Umm, it does do that

/digOutSourceCodeOfOldProject...

// First up, setup a callback function that modifies a variable which you can keep track of...

void CALLBACK BassDrumSyncProc(HSYNC handle, DWORD channel, DWORD data, DWORD user)
{
g_bDrumPlayed = true;
g_iDrumPlayed++;
}


// Then on init, register the callback function....

BASS_ChannelSetSync(m_hModMain, BASS_SYNC_MUSICINST, (QWORD)MAKELONG(40, -1), &BassDrumSyncProc, 0); // Bassdrum1

m_hModMain being the HMUSIC handle and...
the first param in the macro MAKELONG, being the intrument number.

It''s all in the really cool help file that comes with Bass

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!