Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Soulstorm

macrumors 68000
Original poster
Feb 1, 2005
1,887
1
I am writting an application on the iPhone which makes heavy use of OpenAL. I have loaded some sounds looping, and everything is fine, until I use alGetSourcef to obtain the current time offset of a sound:

Code:
- (float)timeOffset
{
	ALfloat tOffset;
	alGetSourcef(source, AL_SEC_OFFSET, &tOffset);
	//NSLog(@"%f", tOffset);
	return tOffset;
}

The problem is that the value returned is rounded to the nearest value! I only get results like 1.000000, 2.000000, 3.000000!

Can anyone help me on this?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.