|
NAMEal_set_sample_instance_channel_matrix - Allegro 5 APISYNOPSIS
DESCRIPTIONSet the matrix used to mix the channels coming from this instance into the mixer it is attached to. Normally Allegro derives the values of this matrix from the gain and pan settings, as well as the channel configurations of this instance and the mixer it is attached to, but this allows you override that default value. Note that if you do set gain or pan of this instance or the mixer it is attached to, you’ll need to call this function again.The matrix has mixer channel rows and sample channel columns, and is row major. For example, if you have a stereo sample instance and want to mix it to a 5.1 mixer you could use this code:
Returns true on success, false on failure (e.g. if this is not attached to a mixer). SINCE5.2.3[Unstable API]: New API.
Visit the GSP FreeBSD Man Page Interface. |