al_set_sample_instance_channel_matrix - Online Linux Manual PageSection : 3
Updated :
Source : Allegro reference manual
Note :
NAMEal_set_sample_instance_channel_matrix − Allegro 5 API
SYNOPSIS
#include <allegro5/allegro_audio.h>
bool al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE *spl, const float *matrix)
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:
float matrix[] = {
0.5, 0.0, /* Half left to front left */
0.0, 0.5, /* Half right to front right */
0.5, 0.0, /* Half left to rear left */
0.0, 0.5, /* Half right to rear right */
0.1, 0.1, /* Mix left and right for center */
0.1, 0.1, /* Mix left and right for center */
};
al_set_sample_instance_channel_matrix(instance, matrix);
Returns true on success, false on failure (e.g. if this is not attached to a mixer).
SINCE5.2.3 [Unstable API]: New API. 0
Johanes Gumabo
Data Size : 4,865 byte
man-al_set_sample_instance_channel_matrix.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 201,479
Visitor ID : :
Visitor IP : 3.137.162.107 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.