Miles Sound System SDK 7.2a

AIL_sample_granularity

The function AIL_sample_granularity returns the granularity of a sample in bytes.

U32 AIL_sample_granularity(
  HSAMPLE S
);

In Parameters

S
indicates the sample whose granularity is to be returned.

Returns

1 for 8-bit mono, 2 for 8-bit stereo, 2 for 16-bit mono, 4 for 16-bit stereo, or the ADPCM block size.

Discussion

This is the size of a single sample, unless the sample is IMA ADPCM-compressed, in which case it would be the length of the ADPCM block in bytes.


Group: Digital Audio Services
Related Functions: AIL_sample_position, AIL_set_sample_position
Related Basic Types: HSAMPLE, U32

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.