audio_map_8_to_8_new
audio_map_8_to_16_new
audio_map_16_to_8_new
audio_map_16_to_16_new
These functions create a new audio map of the specified type and returns a handle to it.
audio_map_free map
Free the memory allocated for AudioMap map.
audio_map_get_src_res map
audio_map_get_dest_res map
If map is an X-To-Y AudioMap, these functions return X or Y. For instance, if map is an 8to16 AudioMap, audio_map_get_dest_res(map) returns 16, and audio_map_get_src_res(map) returns 8.
audio_map_8_to_8_get_value map i
audio_map_8_to_16_get_value map i
audio_map_16_to_8_get_value map i
audio_map_16_to_16_get_value map i
Returns the value of entry i in map.
audio_map_8_to_8_copy src dest
audio_map_8_to_16_copy src dest
audio_map_16_to_8_copy src dest
audio_map_16_to_16_copy src dest
Copies the entries from src into dest.
audio_map_8_to_8_set_value map i value
audio_map_8_to_16_set_value map i value
audio_map_16_to_8_set_value map i value
audio_map_16_to_16_set_value map i value
Sets the value of entry i in map to value.
audio_map_8_to_8_init_custom values map
audio_map_8_to_16_init_custom values map
audio_map_16_to_8_init_custom values map
audio_map_16_to_16_init_custom values map
Initializes the entries of map using values.
For an 8to8 AudioMap, values is a list of 256 integers in the range 0..255. For an 8to16 AudioMap, values is a list of 256 integers in the range -32768..32767 For a 16to8 AudioMap, values is a list of 65536 integers in the range 0..255. For an 16to16 AudioMap, values is a list of 65536 integers in the range -32768..32767
audio_map_8_to_8_init_identity map
audio_map_16_to_16_init_identity map
Initializes map to the identity function (i.e., entry i has value i).
audio_map_8_to_8_init_complement map
audio_map_16_to_16_init_complement map
Initializes map to the complement function,(i.e., entry i is the one's complement of i).
audio_map_8_to_16_init_ulaw_to_linear map
Initialize an 8-to-16 AudioMap which maps μ-law to linear PCM.
audio_map_8_to_16_init_alaw_to_linear map
Initialize an 8-to-16 AudioMap which maps A-law to linear PCM.
audio_map_16_to_8_init_linear_to_ulaw map
Initialize a 16-to-8 AudioMap which maps linear PCM to μ-law.
audio_map_16_to_8_init_linear_to_alaw map
Initialize a 16-to-8 AudioMap which maps linear PCM to A-law.
audio_map_16_to_16_init_big_little_swap map
Initializes a 16-to-16 AudioMap which maps big-endian 16-bit audio data to little endian (and vice versa).
audio_map_16_to_16_init_volume map maxVal
Initializes a 16-to-16 AudioMap that maps values in the range (-maxVal..maxVal) to -32768..32767. Values less than -maxVal (or greater than maxVal) are clipped to -32768 (32767).
This function is useful in combination with audio_16_max_abs
audio_map_8_to_8_8_to_8_compose map1 map2 outMap
audio_map_8_to_8_8_to_16_compose map1 map2 outMap
audio_map_16_to_8_8_to_8_compose map1 map2 outMap
audio_map_16_to_8_8_to_16_compose map1 map2 outMap
audio_map_8_to_16_16_to_8_compose map1 map2 outMap
audio_map_8_to_16_16_to_16_compose map1 map2 outMap
audio_map_16_to_16_16_to_8_compose map1 map2 outMap
audio_map_16_to_16_16_to_16_compose map1 map2 outMap
audio_map_x_to_y_y_to_z_compose takes in an X-To-Y AudioMap map1 and a Y-To-Z AudioMap map2, and produces a X-To-Z AudioMap which is a composition of map1 and map2.
audio_map_8_to_8_apply map src dest
audio_map_8_to_16_apply map src dest
audio_map_16_to_8_apply map src dest
audio_map_16_to_16_apply map src dest
Applies map to src and stores the result in dest. The resolution of map must match the resolution of src and dest (e.g., if map is an 8-to-16 AudioMap, then src must be an 8-bit AudioBuffer and dest must be a 16-bit AudioBuffer), and the number of channels in src and dest should match (i.e., if src is a stereo buffer, dest should be a stereo buffer).
audio_map_8_to_8_apply_some map src srcOffset srcStride destOffset destStride dest
audio_map_8_to_16_apply_some map src srcOffset srcStride destOffset destStride dest
audio_map_16_to_8_apply_some map src srcOffset srcStride destOffset destStride dest
audio_map_16_to_16_apply_some map src srcOffset srcStride destOffset destStride dest
Applies map to src and stores the result in dest. Use this function if you only want to use one channel in src or modify one channel in dest. These channels are selected using various combinations of offset and stride:
See the description in the AudioBuffer documentation for more information on the use of offset and stride.
- To read/write the left channel in a stereo buffer use offset=0 and stride=2.
- To read/write the right channel in a stereo buffer use offset=1 and stride=2.
- To read/write a mono buffer use offset=0 and stride=1.
Last updated : Saturday, November 14, 1998, 07:50 PM