Miles Sound System SDK 7.2a

AIL_sample_volume_pan

The function AIL_sample_volume_pan returns the current sample volume and pan, from 0 to 1.0.

void AIL_sample_volume_pan(
  HSAMPLE S,
  F32 *volume,
  F32 *pan
);

In Parameters

S
indicates the sample whose volume is to be retrieved.

Out Parameters

volume
returns a volume level from 0 (minimum) to 1.0 (maximum) in loudness (0.5 is 10 dB down).
pan
returns a power pan level from 0 (hard-left) to 1.0 (hard-right).

Discussion

See AIL_set_sample_volume_pan for more information.


Group: Digital Audio Services
Related Functions: AIL_digital_master_volume_level, AIL_sample_51_volume_pan, AIL_sample_low_pass_cut_off, AIL_sample_reverb_levels, AIL_set_digital_master_volume_level, AIL_set_sample_51_volume_pan, AIL_set_sample_volume_levels, AIL_set_sample_volume_pan
Related Basic Types: F32, HSAMPLE, void
Related FAQs: I used an older version of Miles and now my volume and pan calls are weird - what's going on? And what's with the two types of volume functions?

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