Best init code and music problem

Hey Sam :), thanks for answering dumb questions.

SDL automatically does this for you. Just set your desired video mode, and
SDL will do its best to return what you asked for, luckily, exactly what
you
described. :slight_smile:

Cool. So so long as I ask for what I want SDL will do it’s best to give it
to me, and if it can’t, it will go down ‘quality’ levels until it can.

Ie, if Double buffered won’t work due to video card memory limits or
something for a particular machine, it will just use full screen mode, etc?

Also, I’m using SDL_Mixer, and am finding that Mix_VolumeMusic(x) will
turn
my music volume off if x is set to 0, and on if it is a non zero value.
It
doesn’t actually increase/decrease the volume between 0-100% though. Is
this a bug or is it a me bug?

What kind of music format are you playing?

IT (Impulse Tracker Mod) home brewed._________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Cool. So so long as I ask for what I want SDL will do it’s best to give it
to me, and if it can’t, it will go down ‘quality’ levels until it can.

Ie, if Double buffered won’t work due to video card memory limits or
something for a particular machine, it will just use full screen mode, etc?

Yep, that’s exactly what happens.

What kind of music format are you playing?

IT (Impulse Tracker Mod) home brewed.

It sounds like you need to look at the mod code in SDL_mixer and see if
the volume is being changed correctly.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software