Here's what I know:
SoundVolume sets the volume for the ENTIRE program, not just one channel. For example, setting the SoundVolume to .5 will mean that each channel's volume, when set at 1, will be .5. (When set at .5, it will be .25). ChannelVolume must be set for EACH NEW CHANNEL. This confuses a lot of people. When you do this:
channel=Playsound(mysound)
If Not ChannelPlaying(channel)
channel=Playsound(mysound)
EndIf
When the channel isn't playing, it's completed its job and doesn't exist anymore. However, the really strange memory access number still exists, and ChannelPlaying checks to see if the channel with that number is still hanging around. When you use Playsound again, you're creating a NEW channel. Remember, "channel" isn't a channel; it's just a variable (just as image=Loadimage("whatever.bmp") doesn't mean that "image" is an image). So, the new channel created in the third line has to get its volume set too.
Yes, you are correct that the default of everything is 1. I think.
The RunTimeError stops the program, and the only possible way that you could do what you wanted to do in #5 is learn DirectX and create a new function in the UserLibs. (How, I don't know; my first language is Blitz.)
Putting EndGraphics before End isn't needed, as far as I can tell. It's the equivalant of putting ClearWorld before End in a 3D program. However, I am 99% sure that End (or just the Close button) will clear out the graphics as well. I haven't had any problems with neglecting the EndGraphics, and the AvailVidMem() doesn't change no matter how many times I run the program.
As for question #7, icons have been talked about on the forums for a while now; try searching. There are apparently programs on the Internet that'll create icons for you. (Never done it myself, so I couldn't tell you exactly how.)
Hope this helps!
SoundVolume sets the volume for the ENTIRE program, not just one channel. For example, setting the SoundVolume to .5 will mean that each channel's volume, when set at 1, will be .5. (When set at .5, it will be .25). ChannelVolume must be set for EACH NEW CHANNEL. This confuses a lot of people. When you do this:
channel=Playsound(mysound)
If Not ChannelPlaying(channel)
channel=Playsound(mysound)
EndIf
When the channel isn't playing, it's completed its job and doesn't exist anymore. However, the really strange memory access number still exists, and ChannelPlaying checks to see if the channel with that number is still hanging around. When you use Playsound again, you're creating a NEW channel. Remember, "channel" isn't a channel; it's just a variable (just as image=Loadimage("whatever.bmp") doesn't mean that "image" is an image). So, the new channel created in the third line has to get its volume set too.
Yes, you are correct that the default of everything is 1. I think.
The RunTimeError stops the program, and the only possible way that you could do what you wanted to do in #5 is learn DirectX and create a new function in the UserLibs. (How, I don't know; my first language is Blitz.)
Putting EndGraphics before End isn't needed, as far as I can tell. It's the equivalant of putting ClearWorld before End in a 3D program. However, I am 99% sure that End (or just the Close button) will clear out the graphics as well. I haven't had any problems with neglecting the EndGraphics, and the AvailVidMem() doesn't change no matter how many times I run the program.
As for question #7, icons have been talked about on the forums for a while now; try searching. There are apparently programs on the Internet that'll create icons for you. (Never done it myself, so I couldn't tell you exactly how.)
Hope this helps!