[Openal] buffer size

Peter Mulholland darkmatter at freeuk.com
Thu Nov 9 10:10:14 PST 2006


Hello Jason,

Thursday, November 9, 2006, 5:02:29 PM, you wrote:

> Something that might also be useful to you also are the following functions:

>     timeBeginPeriod( uint msec );
>     timeEndPeriod( uint msec );

> Which can be used to set the Windows timer resolution, but capabilities
> vary.  You can check Windows timer capabilities with:

>     timeGetDevCaps( TIMECAPS& tc, sizeof(TIMECAPS) )

>    After this call, tc.wPeriodMin and tc.wPeriodMax will give your min
> and max timer resolutions.

These won't really reduce the resolution below 10ms

> On Linux it tends to be quite a bit easier since the usleep()
> [microsleep] function is available.

I doubt it's actually microsecond accurate. See my earlier comment
about kernels - not even RTOS kernels are that accurate.

-- 
Best regards,
 Peter                            mailto:darkmatter at freeuk.com



More information about the Openal mailing list