Thread: OpenJazz
View Single Post
Alister Alister's Avatar

JCF Member

Joined: Mar 2001

Posts: 908

Alister is doing well so far

Dec 29, 2005, 10:51 AM
Alister is offline
Reply With Quote
Quote:
Originally Posted by Ice M A N
If you've got libmodplug working I won't put too much effort into my way (I probably will do it on the weekend regardless).. Does that library play the music by itself or do you go through sdl_mixer in the end anyway like you hinted at on ICQ? Otherwise, how will that work when we get to the sound effects playing simultaneously? or can it play multiple things at once as well (I haven't looked into libmodplug except for the PSM loading code)
The library produces a data stream, which I use with SDL's own basic audio functions. The SDL documentation advises against using the basic audio functions to mix more than two streams, so it may be necessary to switch to SDL_mixer later.

I had to modify libmodplug to get PSMs to loop. In sndmix.cpp, lines 376 and 409 shouldn't be commented out (though only line 376 matters for OpenJazz).
__________________
OpenJazz: Site - Talk
Palette Suite: Site - Talk
Yours truly: Site