sound function return???
-
- DCEmu Junior
- Posts: 42
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Thu Feb 06, 2003 3:51 pm
- Has thanked: 0
- Been thanked: 0
sound function return???
I was wondering if when this function is called:
snd_sfx_play(sound2[snd_bgm], 1000, 1);
It could return a varibable indicating wheter its on or off (ie: return 0 (off)
return (1) on). This way, If 0 was returned I could call the function a gain for a seamless sound loop...
snd_sfx_play(sound2[snd_bgm], 1000, 1);
It could return a varibable indicating wheter its on or off (ie: return 0 (off)
return (1) on). This way, If 0 was returned I could call the function a gain for a seamless sound loop...
thanks very much for all your replys guys
I will definately look into reading the soundbuffer (its an uncharted territory like most of the other programming so far:P )...
I was wondering also if you guys know about a time function that would return milliseconds so far I have only been able to find one for full seconds the reason I'm looking for this function is for animating textures...
thanks very much
I will definately look into reading the soundbuffer (its an uncharted territory like most of the other programming so far:P )...
I was wondering also if you guys know about a time function that would return milliseconds so far I have only been able to find one for full seconds the reason I'm looking for this function is for animating textures...
thanks very much
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
Code: Select all
void timer_ms_gettime(uint32 *secs, uint32 *msecs);
Code: Select all
int secs, msecs;
timer_ms_gettime(&secs, &msecs);
msecs += secs * 1000;
Code: Select all
int secs, msecs;
float time;
timer_ms_gettime(&secs, &msecs);
time = secs + (msecs / 1000.0f);