{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.F0qKJMUJ/b1/allegro5_5.2.10.1+dfsg-1_arm64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.F0qKJMUJ/b2/allegro5_5.2.10.1+dfsg-1_arm64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,9 +1,9 @@\n \n- 1c5cee3dddfd33f3645c5c66c35d7a83 1400552 doc optional allegro5-doc_5.2.10.1+dfsg-1_all.deb\n+ a970ab64c20fd33a654dddeca142e8b7 1408580 doc optional allegro5-doc_5.2.10.1+dfsg-1_all.deb\n 5947942b88b03eacc4e47b9c57d7fe4e 19388 libdevel optional liballegro-acodec5-dev_5.2.10.1+dfsg-1_arm64.deb\n 380423a393880501841b3d8a66ff2c64 63468 debug optional liballegro-acodec5.2t64-dbgsym_5.2.10.1+dfsg-1_arm64.deb\n b485a865adc6f14122d036e911735439 38152 libs optional liballegro-acodec5.2t64_5.2.10.1+dfsg-1_arm64.deb\n dfcca133bf7b63e20da8440f63fa81c4 22164 libdevel optional liballegro-audio5-dev_5.2.10.1+dfsg-1_arm64.deb\n 5310df8fbbce1c0567d3d43db36107f4 106904 debug optional liballegro-audio5.2t64-dbgsym_5.2.10.1+dfsg-1_arm64.deb\n b8113b75b20bd8e4bd1f281f848afdb0 57076 libs optional liballegro-audio5.2t64_5.2.10.1+dfsg-1_arm64.deb\n cd95f179387fe33bca9e3fc2f3ceb526 20436 libdevel optional liballegro-dialog5-dev_5.2.10.1+dfsg-1_arm64.deb\n"}, {"source1": "allegro5-doc_5.2.10.1+dfsg-1_all.deb", "source2": "allegro5-doc_5.2.10.1+dfsg-1_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2025-01-09 13:52:42.000000 debian-binary\n--rw-r--r-- 0 0 0 31652 2025-01-09 13:52:42.000000 control.tar.xz\n--rw-r--r-- 0 0 0 1368708 2025-01-09 13:52:42.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 31684 2025-01-09 13:52:42.000000 control.tar.xz\n+-rw-r--r-- 0 0 0 1376704 2025-01-09 13:52:42.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./control", "source2": "./control", "unified_diff": "@@ -1,13 +1,13 @@\n Package: allegro5-doc\n Source: allegro5\n Version: 2:5.2.10.1+dfsg-1\n Architecture: all\n Maintainer: Debian Games Team These functions are declared in the following header file. Link with\n allegro_acodec. This function registers all the known audio file type handlers for al_load_sample, al_save_sample, al_load_audio_stream,\n@@ -220,15 +221,16 @@\n Returns true if the acodec addon is initialized, otherwise returns\n false. Since: 5.2.6 If you want to play large audio files (e.g.\u00a0background music) without\n loading the whole file at once you can use al_play_audio_stream (after\n calling al_reserve_samples).\n This will load and play an An ALLEGRO_SAMPLE_ID represents a sample being played via al_play_sample. It can be used to\n later stop the sample with al_stop_sample. The underlying\n@@ -570,15 +571,16 @@\n href=\"audio.html#al_lock_sample_id\">al_lock_sample_id. Examples: Install the audio subsystem. Returns true on success, false on failure. Note: most users will call ex_audio_devices.c\n Uninstalls the audio subsystem. See also: al_install_audio Examples: Returns true if al_install_audio was called\n previously and returned successfully. Reserves a number of sample instances, attaching them to the default\n mixer. If no default mixer is set when this function is called, then it\n will create one and attach it to the default voice. If no default voice\n has been set, it, too, will be created. Plays a sample on one of the sample instances created by al_reserve_samples. Returns\n true on success, false on failure. Playback may fail because all the\n reserved sample instances are currently used. Stop the sample started by al_play_sample. See also: al_stop_samples Stop all samples started by al_play_sample. See also: al_stop_sample Examples: Locks a ALLEGRO_SAMPLE_ID,\n returning the underlying ALLEGRO_SAMPLE_INSTANCE.\n This allows you to adjust the various properties of the instance (such\n@@ -760,15 +770,16 @@\n Examples: Unlocks a ALLEGRO_SAMPLE_ID, allowing\n future calls to al_play_sample\n to reuse it if possible. Note that after the id is unlocked, the \n Examples: Loads and plays an audio file, streaming from disk as it is needed.\n This API can only play one audio stream at a time. This requires a\n default mixer to be set, which is typically done via al_reserve_samples, but can\n@@ -818,15 +830,16 @@\n \n Examples: Loads and plays an audio file from ALLEGRO_FILE stream, streaming it is\n needed. This API can only play one audio stream at a time. This requires\n a default mixer to be set, which is typically done via Since: 5.2.8 Unstable\n API: New API. An ALLEGRO_SAMPLE object stores the data necessary for playing\n pre-defined digital audio. It holds a user-specified PCM data buffer and\n information about its format (data length, depth, frequency, channel\n configuration). You can have the same ALLEGRO_SAMPLE playing multiple\n@@ -874,15 +888,18 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L21\">ex_acodec_multi.c Create a sample data structure from the supplied buffer. If\n Loads a few different audio file formats based on their\n extension. Note that this stores the entire file in memory at once, which may be\n time consuming. To read the file as it is needed, use ex_acodec_multi.c\n Loads an audio file from an ALLEGRO_FILE stream into an ALLEGRO_SAMPLE. The file type is\n determined by the passed \u2018ident\u2019 parameter, which is a file name\n@@ -966,15 +985,16 @@\n file formats by default. You must use the allegro_acodec addon, or\n register your own format handler. See also: al_register_sample_loader_f,\n al_init_acodec_addon Writes a sample into a file. Currently, wav is the only supported\n format, and the extension must be \u201c.wav\u201d. Returns true on success, false on error.al_init_acodec_addon
\n-\n+\n \n al_is_acodec_addon_initialized
\n-\n+\n \n \n *\b**\b**\b**\b**\b**\b* a\bal\bl_\b_i\bin\bni\bit\bt_\b_a\bac\bco\bod\bde\bec\bc_\b_a\bad\bdd\bdo\bon\bn *\b**\b**\b**\b**\b**\b*\n bool al_init_acodec_addon(void)\n+bool al_init_acodec_addon(void)\n _\bS_\bo_\bu_\br_\bc_\be_\b _\bC_\bo_\bd_\be\n This function registers all the known audio file type handlers for\n _\ba_\bl_\b__\bl_\bo_\ba_\bd_\b__\bs_\ba_\bm_\bp_\bl_\be, _\ba_\bl_\b__\bs_\ba_\bv_\be_\b__\bs_\ba_\bm_\bp_\bl_\be, _\ba_\bl_\b__\bl_\bo_\ba_\bd_\b__\ba_\bu_\bd_\bi_\bo_\b__\bs_\bt_\br_\be_\ba_\bm, etc.\n Depending on what libraries are available, the full set of recognised\n extensions is: .wav, .flac, .ogg, .opus, .it, .mod, .s3m, .xm, .voc.\n L\bLi\bim\bmi\bit\bta\bat\bti\bio\bon\bns\bs:\b:\n * Saving is only supported for wav files.\n@@ -70,14 +71,15 @@\n Return true on success.\n Examples:\n * _\be_\bx_\b__\bs_\bt_\br_\be_\ba_\bm_\b__\bf_\bi_\bl_\be_\b._\bc\n * _\be_\bx_\b__\ba_\bc_\bo_\bd_\be_\bc_\b__\bm_\bu_\bl_\bt_\bi_\b._\bc\n * _\be_\bx_\b__\bk_\bc_\bm_\b__\bd_\bi_\br_\be_\bc_\bt_\b._\bc\n *\b**\b**\b**\b**\b**\b* a\bal\bl_\b_i\bis\bs_\b_a\bac\bco\bod\bde\bec\bc_\b_a\bad\bdd\bdo\bon\bn_\b_i\bin\bni\bit\bti\bia\bal\bli\biz\bze\bed\bd *\b**\b**\b**\b**\b**\b*\n bool al_is_acodec_addon_initialized(void)\n+bool al_is_acodec_addon_initialized(void)\n _\bS_\bo_\bu_\br_\bc_\be_\b _\bC_\bo_\bd_\be\n Returns true if the acodec addon is initialized, otherwise returns false.\n Since: 5.2.6\n *\b**\b**\b**\b**\b**\b* a\bal\bl_\b_g\bge\bet\bt_\b_a\bal\bll\ble\beg\bgr\bro\bo_\b_a\bac\bco\bod\bde\bec\bc_\b_v\bve\ber\brs\bsi\bio\bon\bn *\b**\b**\b**\b**\b**\b*\n uint32_t al_get_allegro_acodec_version(void)\n _\bS_\bo_\bu_\br_\bc_\be_\b _\bC_\bo_\bd_\be\n Returns the (compiled) version of the addon, in the same format as\n"}]}, {"source1": "./usr/share/doc/allegro5-doc/refman/audio.html", "source2": "./usr/share/doc/allegro5-doc/refman/audio.html", "unified_diff": "@@ -554,15 +554,16 @@\n
ALLEGRO_AUDIO_STREAM
. Note that\n the basic API only supports one such audio stream playing at once.ALLEGRO_SAMPLE_ID
\n-\n+typedef struct ALLEGRO_SAMPLE_ID ALLEGRO_SAMPLE_ID;\n+typedef struct ALLEGRO_SAMPLE_ID ALLEGRO_SAMPLE_ID;
\n
\n al_install_audio
\n-\n+\n \n \n
\n al_uninstall_audio
\n-\n+\n \n al_is_audio_installed
\n-\n+\n \n al_reserve_samples
\n-\n+\n \n al_play_sample
\n bool al_play_sample(ALLEGRO_SAMPLE *spl, float gain, float pan, float speed,\n- ALLEGRO_PLAYMODE loop, ALLEGRO_SAMPLE_ID *ret_id)
al_stop_sample
\n-\n+\n \n al_stop_samples
\n-\n+\n \n \n
\n al_lock_sample_id
\n-\n+ALLEGRO_SAMPLE_INSTANCE* al_lock_sample_id(ALLEGRO_SAMPLE_ID *spl_id)\n+ALLEGRO_SAMPLE_INSTANCE* al_lock_sample_id(ALLEGRO_SAMPLE_ID *spl_id)
\n
\n al_unlock_sample_id
\n-\n+void al_unlock_sample_id(ALLEGRO_SAMPLE_ID *spl_id)\n+void al_unlock_sample_id(ALLEGRO_SAMPLE_ID *spl_id)
\n
\n al_play_audio_stream
\n-\n+ALLEGRO_AUDIO_STREAM *al_play_audio_stream(const char *filename)\n+ALLEGRO_AUDIO_STREAM *al_play_audio_stream(const char *filename)
\n
\n al_play_audio_stream_f
\n-\n+ALLEGRO_AUDIO_STREAM *al_play_audio_stream_f(ALLEGRO_FILE *fp, const char *ident)\n+ALLEGRO_AUDIO_STREAM *al_play_audio_stream_f(ALLEGRO_FILE *fp, const char *ident)
\n
\n Samples
\n ALLEGRO_SAMPLE
\n-\n+\n \n al_create_sample
\n ALLEGRO_SAMPLE *al_create_sample(void *buf, unsigned int samples,\n unsigned int freq, ALLEGRO_AUDIO_DEPTH depth,\n- ALLEGRO_CHANNEL_CONF chan_conf, bool free_buf)
free_buf
is true then the buffer will be freed with al_free when the sample data structure is\n destroyed. For portability (especially Windows), the buffer should have\n@@ -912,15 +929,16 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L83\">ex_acodec_multi.c\n al_load_sample
\n-\n+ALLEGRO_SAMPLE *al_load_sample(const char *filename)\n+ALLEGRO_SAMPLE *al_load_sample(const char *filename)
al_load_sample_f
\n-\n+ALLEGRO_SAMPLE *al_load_sample_f(ALLEGRO_FILE* fp, const char *ident)\n+ALLEGRO_SAMPLE *al_load_sample_f(ALLEGRO_FILE* fp, const char *ident)
al_save_sample
\n-\n+bool al_save_sample(const char *filename, ALLEGRO_SAMPLE *spl)\n+bool al_save_sample(const char *filename, ALLEGRO_SAMPLE *spl)
\n@@ -983,15 +1003,16 @@\n register your own format handler.
See also: al_save_sample_f,\n al_register_sample_saver,\n al_init_acodec_addon
\nbool al_save_sample_f(ALLEGRO_FILE *fp, const char *ident, ALLEGRO_SAMPLE *spl)\n+bool al_save_sample_f(ALLEGRO_FILE *fp, const char *ident, ALLEGRO_SAMPLE *spl)
Writes a sample into a ALLEGRO_FILE filestream. Currently,\n wav is the only supported format, and the extension must be \u201c.wav\u201d.
\nReturns true on success, false on error. The file remains open\n@@ -1001,15 +1022,16 @@\n file formats by default. You must use the allegro_acodec addon, or\n register your own format handler.
\n \nSee also: al_save_sample, al_register_sample_saver_f,\n al_init_acodec_addon
\nFree the sample data structure. If it was created with the\n free_buf
parameter set to true, then the buffer will be\n freed with al_free.
This function will stop any sample instances which may be playing the\n@@ -1025,61 +1047,66 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L86\">ex_acodec_multi.c\n
ALLEGRO_CHANNEL_CONF al_get_sample_channels(const ALLEGRO_SAMPLE *spl)\n+ALLEGRO_CHANNEL_CONF al_get_sample_channels(const ALLEGRO_SAMPLE *spl)
Return the channel configuration of the sample.
\nSee also: ALLEGRO_CHANNEL_CONF, al_get_sample_depth, al_get_sample_frequency,\n al_get_sample_length, al_get_sample_data
\nALLEGRO_AUDIO_DEPTH al_get_sample_depth(const ALLEGRO_SAMPLE *spl)\n+ALLEGRO_AUDIO_DEPTH al_get_sample_depth(const ALLEGRO_SAMPLE *spl)
Return the audio depth of the sample.
\nSee also: ALLEGRO_AUDIO_DEPTH, al_get_sample_channels, al_get_sample_frequency,\n al_get_sample_length, al_get_sample_data
\nunsigned int al_get_sample_frequency(const ALLEGRO_SAMPLE *spl)\n+unsigned int al_get_sample_frequency(const ALLEGRO_SAMPLE *spl)
Return the frequency (in Hz) of the sample.
\nSee also: al_get_sample_channels, al_get_sample_depth, al_get_sample_length, al_get_sample_data
\nunsigned int al_get_sample_length(const ALLEGRO_SAMPLE *spl)\n+unsigned int al_get_sample_length(const ALLEGRO_SAMPLE *spl)
Return the length of the sample in sample values.
\nSee also: al_get_sample_channels, al_get_sample_depth, al_get_sample_frequency,\n al_get_sample_data
\nvoid *al_get_sample_data(const ALLEGRO_SAMPLE *spl)\n+void *al_get_sample_data(const ALLEGRO_SAMPLE *spl)
Return a pointer to the raw sample data.
\nSee also: al_get_sample_channels, al_get_sample_depth, al_set_default_mixer.
\ntypedef struct ALLEGRO_SAMPLE_INSTANCE ALLEGRO_SAMPLE_INSTANCE;\n+typedef struct ALLEGRO_SAMPLE_INSTANCE ALLEGRO_SAMPLE_INSTANCE;
An ALLEGRO_SAMPLE_INSTANCE object represents a playable instance of a\n predefined sound effect. It holds information about how the effect\n should be played: These playback parameters consist of the looping mode,\n loop start/end points, playing position, speed, gain, pan and the\n@@ -1206,15 +1234,16 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L22\">ex_acodec_multi.c\n
ALLEGRO_SAMPLE_INSTANCE *al_create_sample_instance(ALLEGRO_SAMPLE *sample_data)\n+ALLEGRO_SAMPLE_INSTANCE *al_create_sample_instance(ALLEGRO_SAMPLE *sample_data)
Creates a sample instance, using the supplied sample data. The\n instance must be attached to a mixer (or voice) in order to actually\n produce output.
\nThe argument may be NULL. You can then set the sample data later with\n@@ -1227,15 +1256,16 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L83\">ex_acodec_multi.c\n
void al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)\n+void al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
Detaches the sample instance from anything it may be attached to and\n frees it (the sample data, i.e.\u00a0its ALLEGRO_SAMPLE, is not\n freed!).
\nSee also: ex_acodec_multi.c\n
bool al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)\n+bool al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
Play the sample instance. Returns true on success, false on\n failure.
\nSee also: al_stop_sample_instance
\n@@ -1264,15 +1295,16 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L107\">ex_acodec_multi.c\nbool al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)\n+bool al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
Stop an sample instance playing.
\nSee also: al_play_sample_instance
\nExamples:
\n@@ -1283,15 +1315,17 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_kcm_direct.c#L88\">ex_kcm_direct.c\nReturn the channel configuration of the sample instance\u2019s sample\n data.
\nSee also: ALLEGRO_CHANNEL_CONF.
\n@@ -1299,42 +1333,45 @@\nALLEGRO_AUDIO_DEPTH al_get_sample_instance_depth(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+ALLEGRO_AUDIO_DEPTH al_get_sample_instance_depth(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return the audio depth of the sample instance\u2019s sample data.
\nSee also: ALLEGRO_AUDIO_DEPTH.
\nExamples:
\nunsigned int al_get_sample_instance_frequency(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+unsigned int al_get_sample_instance_frequency(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return the frequency (in Hz) of the sample instance\u2019s sample\n data.
\nExamples:
\nunsigned int al_get_sample_instance_length(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+unsigned int al_get_sample_instance_length(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return the length of the sample instance in sample values. This\n property may differ from the length of the instance\u2019s sample data.
\nSee also: al_set_sample_instance_length,\n@@ -1346,15 +1383,17 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_props.cpp#L196\">ex_audio_props.cpp\n
Set the length of the sample instance in sample values. This can be\n used to play only parts of the underlying sample. Be careful not to\n exceed the actual length of the sample data, though.
\nReturn true on success, false on failure. Will fail if the sample\n@@ -1364,30 +1403,33 @@\n
Examples:
\nunsigned int al_get_sample_instance_position(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+unsigned int al_get_sample_instance_position(const ALLEGRO_SAMPLE_INSTANCE *spl)
Get the playback position of a sample instance.
\nSee also: al_set_sample_instance_position
\nExamples:
\nSet the playback position of a sample instance.
\nReturns true on success, false on failure.
\nSee also: al_get_sample_instance_position
\n@@ -1395,23 +1437,25 @@\n \nfloat al_get_sample_instance_speed(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+float al_get_sample_instance_speed(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return the relative playback speed of the sample instance.
\nSee also: al_set_sample_instance_speed
\nbool al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE *spl, float val)\n+bool al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
Set the relative playback speed of the sample instance. 1.0 means\n normal speed.
\nReturn true on success, false on failure. Will fail if the sample\n instance is attached directly to a voice.
\n@@ -1421,28 +1465,30 @@\n \nfloat al_get_sample_instance_gain(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+float al_get_sample_instance_gain(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return the playback gain of the sample instance.
\nSee also: al_set_sample_instance_gain
\nExamples:
\nbool al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE *spl, float val)\n+bool al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
Set the playback gain of the sample instance.
\nReturns true on success, false on failure. Will fail if the sample\n instance is attached directly to a voice.
\nSee also: ex_mixer_chain.c\n
float al_get_sample_instance_pan(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+float al_get_sample_instance_pan(const ALLEGRO_SAMPLE_INSTANCE *spl)
Get the pan value of the sample instance.
\nSee also: al_set_sample_instance_pan.
\nbool al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE *spl, float val)\n+bool al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
Set the pan value on a sample instance. A value of -1.0 means to play\n the sample only through the left speaker; +1.0 means only through the\n right speaker; 0.0 means the sample is centre balanced. A special value\n ALLEGRO_AUDIO_PAN_NONE\n@@ -1489,15 +1537,16 @@\n
\nfloat al_get_sample_instance_time(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+float al_get_sample_instance_time(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return the length of the sample instance in seconds, assuming a\n playback speed of 1.0.
\nSee also: al_get_sample_instance_length
\n@@ -1508,26 +1557,29 @@\nALLEGRO_PLAYMODE al_get_sample_instance_playmode(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+ALLEGRO_PLAYMODE al_get_sample_instance_playmode(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return the playback mode of the sample instance.
\nSee also: ALLEGRO_PLAYMODE,\n al_set_sample_instance_playmode
\nSet the playback mode of the sample instance.
\nReturns true on success, false on failure.
\nSee also: ALLEGRO_PLAYMODE,\n ex_mixer_chain.c\n
bool al_get_sample_instance_playing(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+bool al_get_sample_instance_playing(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return true if the sample instance is in the playing state. This may\n be true even if the instance is not attached to anything.
\nSee also: al_set_sample_instance_playing
\nExamples:
\nbool al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE *spl, bool val)\n+bool al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE *spl, bool val)
Change whether the sample instance is playing.
\nThe instance does not need to be attached to anything (since:\n 5.1.8).
\nReturns true on success, false on failure.
\n@@ -1573,27 +1627,29 @@\nbool al_get_sample_instance_attached(const ALLEGRO_SAMPLE_INSTANCE *spl)\n+bool al_get_sample_instance_attached(const ALLEGRO_SAMPLE_INSTANCE *spl)
Return whether the sample instance is attached to something.
\nSee also: al_attach_sample_instance_to_mixer,\n al_attach_sample_instance_to_voice,\n al_detach_sample_instance
\nbool al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)\n+bool al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
Detach the sample instance from whatever it\u2019s attached to, if\n anything.
\nReturns true on success.
\nSee also: al_get_sample_instance_attached
\nExamples:
\nALLEGRO_SAMPLE *al_get_sample(ALLEGRO_SAMPLE_INSTANCE *spl)\n+ALLEGRO_SAMPLE *al_get_sample(ALLEGRO_SAMPLE_INSTANCE *spl)
Return the sample data that the sample instance plays.
\nNote this returns a pointer to an internal structure, not\n the ALLEGRO_SAMPLE that you may\n have passed to al_set_sample.\n@@ -1628,15 +1685,16 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L109\">ex_acodec_multi.c\n
bool al_set_sample(ALLEGRO_SAMPLE_INSTANCE *spl, ALLEGRO_SAMPLE *data)\n+bool al_set_sample(ALLEGRO_SAMPLE_INSTANCE *spl, ALLEGRO_SAMPLE *data)
Change the sample data that a sample instance plays. This can be\n quite an involved process.
\nFirst, the sample is stopped if it is not already.
\nNext, if data is NULL, the sample is detached from its parent (if\n@@ -1658,15 +1716,16 @@\n
bool al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE *spl, const float *matrix)\n+bool al_set_sample_instance_channel_matrix(ALLEGRO_SAMPLE_INSTANCE *spl, const float *matrix)
Set the matrix used to mix the channels coming from this instance\n into the mixer it is attached to. Normally Allegro derives the values of\n this matrix from the gain and pan settings, as well as the channel\n configurations of this instance and the mixer it is attached to, but\n@@ -1696,15 +1755,16 @@\n
Examples:
\ntypedef struct ALLEGRO_AUDIO_STREAM ALLEGRO_AUDIO_STREAM;\n+typedef struct ALLEGRO_AUDIO_STREAM ALLEGRO_AUDIO_STREAM;
An ALLEGRO_AUDIO_STREAM object is used to stream generated audio to\n the sound device, in real-time. This is done by reading from a buffer,\n which is split into a number of fragments. Whenever a fragment has\n finished playing, the user can refill it with new data.
\n@@ -1762,15 +1822,18 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L79\">ex_stream_file.c\nALLEGRO_AUDIO_STREAM *al_create_audio_stream(size_t fragment_count,\n unsigned int frag_samples, unsigned int freq, ALLEGRO_AUDIO_DEPTH depth,\n- ALLEGRO_CHANNEL_CONF chan_conf)
Creates an ALLEGRO_AUDIO_STREAM. The\n stream will be set to play by default. It will feed audio data from a\n buffer, which is split into a number of fragments.
\n@@ -1826,15 +1889,17 @@\nALLEGRO_AUDIO_STREAM *al_load_audio_stream(const char *filename,\n- size_t buffer_count, unsigned int samples)
Loads an audio file from disk as it is needed.
\nUnlike regular streams, the one returned by this function need not be\n fed by the user; the library will automatically read more of the file as\n it is needed. The stream will contain buffer_count buffers with\n@@ -1860,15 +1925,17 @@\n
ALLEGRO_AUDIO_STREAM *al_load_audio_stream_f(ALLEGRO_FILE* fp, const char *ident,\n- size_t buffer_count, unsigned int samples)
Loads an audio file from ALLEGRO_FILE stream as it is\n needed.
\nUnlike regular streams, the one returned by this function need not be\n@@ -1890,15 +1957,16 @@\n register your own format handler.
\n \nSee also: al_load_audio_stream, al_register_audio_stream_loader_f,\n al_init_acodec_addon
\nvoid al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM *stream)\n+void al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
Destroy an audio stream which was created with al_create_audio_stream or\n al_load_audio_stream.
\n\n@@ -1916,15 +1984,17 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_stream_file.c#L124\">ex_stream_file.c\n\nex_resample_test.c \n \nal_get_audio_stream_event_source
\n \n+ ALLEGRO_AUDIO_STREAM *stream)\n+ALLEGRO_EVENT_SOURCE *al_get_audio_stream_event_source(\n+ ALLEGRO_AUDIO_STREAM *stream)\n \nRetrieve the associated event source.
\nSee al_get_audio_stream_fragment\n for a description of the ex_saw.c\n
ex_stream_file.c \nex_resample_test.c \n \nal_drain_audio_stream
\n-\n+\n \nvoid al_drain_audio_stream(ALLEGRO_AUDIO_STREAM *stream)\n+void al_drain_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
You should call this to finalise an audio stream that you will no\n longer be feeding, to wait for all pending buffers to finish playing.\n The stream\u2019s playing state will change to false.
\nSee also: ex_saw.c\n
ex_resample_test.c \nex_record.c \n \nal_rewind_audio_stream
\n-\n+\n \nbool al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM *stream)\n+bool al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
Set the streaming file playing position to the beginning. Returns\n true on success. Currently this can only be called on streams created\n with al_load_audio_stream,\n al_play_audio_stream, Examples:
\n\n
\n- ex_stream_seek.c
\nal_get_audio_stream_frequency
\n-\n+\n \nunsigned int al_get_audio_stream_frequency(const ALLEGRO_AUDIO_STREAM *stream)\n+unsigned int al_get_audio_stream_frequency(const ALLEGRO_AUDIO_STREAM *stream)
Return the stream frequency (in Hz).
\nal_get_audio_stream_channels
\n \n+ const ALLEGRO_AUDIO_STREAM *stream)\n+ALLEGRO_CHANNEL_CONF al_get_audio_stream_channels(\n+ const ALLEGRO_AUDIO_STREAM *stream)\n \nReturn the stream channel configuration.
\nSee also: ALLEGRO_CHANNEL_CONF.
\nal_get_audio_stream_depth
\n \n+ const ALLEGRO_AUDIO_STREAM *stream)\n+ALLEGRO_AUDIO_DEPTH al_get_audio_stream_depth(\n+ const ALLEGRO_AUDIO_STREAM *stream)\n \nReturn the stream audio depth.
\nSee also: ALLEGRO_AUDIO_DEPTH.
\nal_get_audio_stream_length
\n-\n+\n \nunsigned int al_get_audio_stream_length(const ALLEGRO_AUDIO_STREAM *stream)\n+unsigned int al_get_audio_stream_length(const ALLEGRO_AUDIO_STREAM *stream)
Return the stream length in samples.
\nExamples:
\n\n
\n- ex_stream_seek.c
\nal_get_audio_stream_speed
\n-\n+\n \nfloat al_get_audio_stream_speed(const ALLEGRO_AUDIO_STREAM *stream)\n+float al_get_audio_stream_speed(const ALLEGRO_AUDIO_STREAM *stream)
Return the relative playback speed of the stream.
\nSee also: al_set_audio_stream_speed.
\nal_set_audio_stream_speed
\n-\n+\n \nbool al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM *stream, float val)\n+bool al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM *stream, float val)
Set the relative playback speed of the stream. 1.0 means normal\n speed.
\nReturn true on success, false on failure. Will fail if the audio\n stream is attached directly to a voice.
\nSee also: al_get_audio_stream_speed.
\nal_get_audio_stream_gain
\n-\n+\n \nfloat al_get_audio_stream_gain(const ALLEGRO_AUDIO_STREAM *stream)\n+float al_get_audio_stream_gain(const ALLEGRO_AUDIO_STREAM *stream)
Return the playback gain of the stream.
\nSee also: al_set_audio_stream_gain.
\nExamples:
\n\n
\n- ex_audio_chain.cpp
\nal_set_audio_stream_gain
\n-\n+\n \nbool al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM *stream, float val)\n+bool al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM *stream, float val)
Set the playback gain of the stream.
\nReturns true on success, false on failure. Will fail if the audio\n stream is attached directly to a voice.
\nSee also: \n
\nex_synth.cpp \nex_audio_chain.cpp \n \nal_get_audio_stream_pan
\n-\n+\n \nfloat al_get_audio_stream_pan(const ALLEGRO_AUDIO_STREAM *stream)\n+float al_get_audio_stream_pan(const ALLEGRO_AUDIO_STREAM *stream)
Get the pan value of the stream.
\nSee also: al_set_audio_stream_pan.
\nal_set_audio_stream_pan
\n-\n+\n \nbool al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM *stream, float val)\n+bool al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM *stream, float val)
Set the pan value on an audio stream. A value of -1.0 means to play\n the stream only through the left speaker; +1.0 means only through the\n right speaker; 0.0 means the sample is centre balanced. A special value\n ALLEGRO_AUDIO_PAN_NONE\n@@ -2087,15 +2171,16 @@\n href=\"audio.html#allegro_audio_pan_none\">ALLEGRO_AUDIO_PAN_NONE
Examples:
\n\n
\n- ex_synth.cpp
\nal_get_audio_stream_playing
\n-\n+\n \nbool al_get_audio_stream_playing(const ALLEGRO_AUDIO_STREAM *stream)\n+bool al_get_audio_stream_playing(const ALLEGRO_AUDIO_STREAM *stream)
Return true if the stream is playing.
\nSee also: al_set_audio_stream_playing.
\nExamples:
\n@@ -2104,15 +2189,16 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_record.c#L274\">ex_record.c\nex_stream_seek.c \nex_audio_chain.cpp \n \nal_set_audio_stream_playing
\n-\n+\n \nbool al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM *stream, bool val)\n+bool al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM *stream, bool val)
Change whether the stream is playing.
\nReturns true on success, false on failure.
\nSee also: al_get_audio_stream_playing
\n@@ -2123,25 +2209,29 @@\nex_record.c \nex_stream_seek.c \n \nal_get_audio_stream_playmode
\n \n+ const ALLEGRO_AUDIO_STREAM *stream)\n+ALLEGRO_PLAYMODE al_get_audio_stream_playmode(\n+ const ALLEGRO_AUDIO_STREAM *stream)\n \nReturn the playback mode of the stream.
\nSee also: ALLEGRO_PLAYMODE,\n al_set_audio_stream_playmode.
\nal_set_audio_stream_playmode
\n \n+ ALLEGRO_PLAYMODE val)\n+bool al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM *stream,\n+ ALLEGRO_PLAYMODE val)\n \nSet the playback mode of the stream.
\nReturns true on success, false on failure.
\nSee also: ALLEGRO_PLAYMODE,\n ex_stream_file.c\n
ex_mixer_pp.c \nex_stream_seek.c \n \nal_get_audio_stream_attached
\n-\n+\n \nbool al_get_audio_stream_attached(const ALLEGRO_AUDIO_STREAM *stream)\n+bool al_get_audio_stream_attached(const ALLEGRO_AUDIO_STREAM *stream)
Return whether the stream is attached to something.
\nSee also: al_attach_audio_stream_to_mixer,\n al_attach_audio_stream_to_voice,\n al_detach_audio_stream.
\nal_detach_audio_stream
\n-\n+\n \nbool al_detach_audio_stream(ALLEGRO_AUDIO_STREAM *stream)\n+bool al_detach_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
Detach the stream from whatever it\u2019s attached to, if anything.
\nSee also: al_attach_audio_stream_to_mixer,\n Examples:
\n\n
\n- ex_audio_chain.cpp
\nal_get_audio_stream_played_samples
\n-\n+\n \nuint64_t al_get_audio_stream_played_samples(const ALLEGRO_AUDIO_STREAM *stream)\n+uint64_t al_get_audio_stream_played_samples(const ALLEGRO_AUDIO_STREAM *stream)
Get the number of samples consumed by the parent since the audio\n stream was started.
\nSince: 5.1.8
\nal_get_audio_stream_fragment
\n-\n+\n \nvoid *al_get_audio_stream_fragment(const ALLEGRO_AUDIO_STREAM *stream)\n+void *al_get_audio_stream_fragment(const ALLEGRO_AUDIO_STREAM *stream)
When using Allegro\u2019s audio streaming, you will use this function to\n continuously provide new sample data to a stream.
\nIf the stream is ready for new data, the function will return the\n address of an internal buffer to be filled with audio data. The length\n@@ -2236,15 +2330,16 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_saw.c#L39\">ex_saw.c\n
ex_resample_test.c \nex_synth.cpp \n \nal_set_audio_stream_fragment
\n-\n+\n \nbool al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM *stream, void *val)\n+bool al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM *stream, void *val)
This function needs to be called for every successful call of al_get_audio_stream_fragment\n to indicate that the buffer (pointed to by
\n@@ -2257,39 +2352,43 @@\nval
) is filled\n with new data.ex_resample_test.c \nex_synth.cpp \n \nal_get_audio_stream_fragments
\n-\n+\n \nunsigned int al_get_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream)\n+unsigned int al_get_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream)
Returns the number of fragments this stream uses. This is the same\n value as passed to al_create_audio_stream when\n a new stream is created.
\nSee also: al_get_available_audio_stream_fragments
\nal_get_available_audio_stream_fragments
\n \n+ const ALLEGRO_AUDIO_STREAM *stream)\n+unsigned int al_get_available_audio_stream_fragments(\n+ const ALLEGRO_AUDIO_STREAM *stream)\n \nReturns the number of available fragments in the stream, that is,\n fragments which are not currently filled with data for playback.
\nSee also: al_get_audio_stream_fragment,\n al_get_audio_stream_fragments
\nal_seek_audio_stream_secs
\n-\n+\n \nbool al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM *stream, double time)\n+bool al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM *stream, double time)
Set the streaming file playing position to time. Returns true on\n success. Currently this can only be called on streams created with al_load_audio_stream, al_play_audio_stream, Examples:
\n\n
\n- ex_stream_seek.c
\nal_get_audio_stream_position_secs
\n-\n+\n \ndouble al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM *stream)\n+double al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM *stream)
Return the position of the stream in seconds. Currently this can only\n be called on streams created with al_load_audio_stream, al_play_audio_stream, Examples:
\n\n
\n- ex_stream_seek.c
\nal_get_audio_stream_length_secs
\n-\n+\n \ndouble al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM *stream)\n+double al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM *stream)
Return the length of the stream in seconds, if known. Otherwise\n returns zero.
\nCurrently this can only be called on streams created with al_load_audio_stream, \n
ex_stream_seek.c \n \nal_set_audio_stream_loop_secs
\n \n+ double start, double end)\n+bool al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM *stream,\n+ double start, double end)\n \nSets the loop points for the stream in seconds. Currently this can\n only be called on streams created with al_load_audio_stream, al_play_audio_stream, \n
Unstable\n API: New API.
\n
Register a handler for al_load_sample. The given function\n will be used to handle the loading of sample files with the given\n extension.
\n@@ -2395,15 +2500,17 @@\n unregistering an entry that doesn\u2019t exist.\nSee also: al_register_sample_loader_f,\n al_register_sample_saver
\nRegister a handler for al_load_sample_f. The given\n function will be used to handle the loading of sample files with the\n given extension.
\n@@ -2413,15 +2520,17 @@\n entry.\nReturns true on success, false on error. Returns false if\n unregistering an entry that doesn\u2019t exist.
\nSee also: al_register_sample_loader
\nbool al_register_sample_saver(const char *ext,\n- bool (*saver)(const char *filename, ALLEGRO_SAMPLE *spl))
Register a handler for al_save_sample. The given function\n will be used to handle the saving of sample files with the given\n extension.
\n@@ -2434,15 +2543,17 @@\nSee also: al_register_sample_saver_f,\n al_register_sample_loader
\nbool al_register_sample_saver_f(const char *ext,\n- bool (*saver)(ALLEGRO_FILE* fp, ALLEGRO_SAMPLE *spl))
Register a handler for al_save_sample_f. The given\n function will be used to handle the saving of sample files with the\n given extension.
\n@@ -2455,15 +2566,17 @@\nSee also: al_register_sample_saver
\nbool al_register_audio_stream_loader(const char *ext,\n ALLEGRO_AUDIO_STREAM *(*stream_loader)(const char *filename,\n- size_t buffer_count, unsigned int samples))
Register a handler for al_load_audio_stream and al_play_audio_stream. The\n given function will be used to open streams from files with the given\n@@ -2477,15 +2590,18 @@\n
See also: al_register_audio_stream_loader_f
\nbool al_register_audio_stream_loader_f(const char *ext,\n ALLEGRO_AUDIO_STREAM *(*stream_loader)(ALLEGRO_FILE* fp,\n- size_t buffer_count, unsigned int samples))
Register a handler for al_load_audio_stream_f and\n al_play_audio_stream_f.\n The given function will be used to open streams from files with the\n@@ -2498,15 +2614,17 @@\n unregistering an entry that doesn\u2019t exist.
\nSee also: al_register_audio_stream_loader
\nRegister an identify handler for al_identify_sample. The given\n function will be used to detect files for the given extension. It will\n be called with a single argument of type Returns true on success, false on error. Returns false if\n unregistering an entry that doesn\u2019t exist.
\nSince: 5.2.8
\nSee also: al_identify_bitmap
\nchar const *al_identify_sample(char const *filename)\n+char const *al_identify_sample(char const *filename)
\n \n This works exactly as al_identify_sample_f but you\n specify the filename of the file for which to detect the type and not a\n file handle. The extension, if any, of the passed filename is not taken\n@@ -2539,15 +2658,16 @@\n
Since: 5.2.8
\nSee also: al_init_acodec_addon, al_identify_sample_f, al_register_sample_identifier
\nchar const *al_identify_sample_f(ALLEGRO_FILE *fp)\n+char const *al_identify_sample_f(ALLEGRO_FILE *fp)
\n \n Tries to guess the audio file type of the open ALLEGRO_FILE by\n reading the first few bytes. By default Allegro cannot recognize any\n file types, but calling al_init_acodec_addon will\n@@ -2569,15 +2689,16 @@\n add a small amount of latency. However, for most applications that small\n overhead will not adversely affect performance.
\nRecording is supported by the ALSA, AudioQueue, DirectSound8, and\n PulseAudio drivers. Enumerating or choosing other recording devices is\n not yet supported.
\ntypedef struct ALLEGRO_AUDIO_RECORDER ALLEGRO_AUDIO_RECORDER;\n+typedef struct ALLEGRO_AUDIO_RECORDER ALLEGRO_AUDIO_RECORDER;
\n \n An opaque datatype that represents a recording device.
\nSince: 5.1.1
\n\nUnstable\n@@ -2588,15 +2709,16 @@\n
ex_record_name.c \nex_record.c \n \nALLEGRO_AUDIO_RECORDER_EVENT
\n \n+class=\"sourceCode c\">typedef struct ALLEGRO_AUDIO_RECORDER_EVENT ALLEGRO_AUDIO_RECORDER_EVENT;\n+typedef struct ALLEGRO_AUDIO_RECORDER_EVENT ALLEGRO_AUDIO_RECORDER_EVENT;
\n \nStructure that holds the audio recorder event data. Every event type\n will contain:
\n\n
\n- .source: pointer to the audio recorder
\n@@ -2620,15 +2742,18 @@\n- ex_record.c
\nal_create_audio_recorder
\n\n+ ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)\n+ALLEGRO_AUDIO_RECORDER *al_create_audio_recorder(size_t fragment_count,\n+ unsigned int samples, unsigned int frequency,\n+ ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)\n \nALLEGRO_AUDIO_RECORDER *al_create_audio_recorder(size_t fragment_count,\n unsigned int samples, unsigned int frequency,\n- ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)
Creates an audio recorder using the system\u2019s default recording\n device. (So if the returned device does not work, try updating the\n system\u2019s default recording device.)
\nAllegro will internally buffer several seconds of captured audio with\n@@ -2665,15 +2790,16 @@\n
ex_record_name.c \nex_record.c \n \nal_start_audio_recorder
\n \n+class=\"sourceCode c\">bool al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER *r)\n+bool al_start_audio_recorder(ALLEGRO_AUDIO_RECORDER *r)
\n \nBegin recording into the fragment buffer. Once a complete fragment\n has been captured (as specified in al_create_audio_recorder),\n an ex_record_name.c\n
ex_record.c \n \nal_stop_audio_recorder
\n \n+class=\"sourceCode c\">void al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER *r)\n+void al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER *r)
\n \nStop capturing audio data. Note that the audio recorder is still\n active and consuming resources, so if you are finished recording you\n should destroy it with al_destroy_audio_recorder.
\n@@ -2710,28 +2837,30 @@\n\n\nUnstable\n API: The API may need a slight redesign.
\nal_is_audio_recorder_recording
\n \n+class=\"sourceCode c\">bool al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER *r)\n+bool al_is_audio_recorder_recording(ALLEGRO_AUDIO_RECORDER *r)
\n \nReturns true if the audio recorder is currently capturing data and\n generating events.
\nSince: 5.1.1
\n\n\nUnstable\n API: The API may need a slight redesign.
\nal_get_audio_recorder_event
\n \n+class=\"sourceCode c\">ALLEGRO_AUDIO_RECORDER_EVENT *al_get_audio_recorder_event(ALLEGRO_EVENT *event)\n+ALLEGRO_AUDIO_RECORDER_EVENT *al_get_audio_recorder_event(ALLEGRO_EVENT *event)
\n \nReturns the event as an ALLEGRO_AUDIO_RECORDER_EVENT.
\nSince: 5.1.1
\n\n@@ -2744,15 +2873,16 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L131\">ex_record_name.c\nex_record.c \n \nal_get_audio_recorder_event_source
\n \n+class=\"sourceCode c\">ALLEGRO_EVENT_SOURCE *al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER *r)\n+ALLEGRO_EVENT_SOURCE *al_get_audio_recorder_event_source(ALLEGRO_AUDIO_RECORDER *r)
\n \nReturns the event source for the recorder that generates the various\n recording events.
\nSince: 5.1.1
\n\n@@ -2764,15 +2894,16 @@\nex_record_name.c \nex_record.c \n \nal_destroy_audio_recorder
\n \n+class=\"sourceCode c\">void al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER *r)\n+void al_destroy_audio_recorder(ALLEGRO_AUDIO_RECORDER *r)
\n \nDestroys the audio recorder and frees all resources associated with\n it. It is safe to destroy a recorder that is recording.
\nYou may receive events after the recorder has been destroyed. They\n must be ignored, as the fragment buffer will no longer be valid.
\n@@ -2787,69 +2918,74 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_record_name.c#L215\">ex_record_name.c\nex_record.c \n \nAudio devices
\nALLEGRO_AUDIO_DEVICE
\n \n+class=\"sourceCode c\">typedef struct ALLEGRO_AUDIO_DEVICE ALLEGRO_AUDIO_DEVICE;\n+typedef struct ALLEGRO_AUDIO_DEVICE ALLEGRO_AUDIO_DEVICE;
\n \nAn opaque datatype that represents an audio device.
\nExamples:
\n\n
\n- ex_audio_devices.c
\nal_get_num_audio_output_devices
\n \n+class=\"sourceCode c\">int al_get_num_audio_output_devices()\n+int al_get_num_audio_output_devices()
\n \nGet the number of available audio output devices on the system.
\nSince: 5.2.8
\nreturn -1 for unsupported drivers.
\nExamples:
\n\n
\n- ex_audio_devices.c
\nal_get_audio_output_device
\n \n+class=\"sourceCode c\">const ALLEGRO_AUDIO_DEVICE* al_get_audio_output_device(int index)\n+const ALLEGRO_AUDIO_DEVICE* al_get_audio_output_device(int index)
\n \nGet the output audio device of the specified index.
\nSince: 5.2.8
\nExamples:
\n\n
\n- ex_audio_devices.c
\nal_get_audio_device_name
\n \n+class=\"sourceCode c\">const char* al_get_audio_device_name(const ALLEGRO_AUDIO_DEVICE * device)\n+const char* al_get_audio_device_name(const ALLEGRO_AUDIO_DEVICE * device)
\n \nGet the user friendly display name of the device.
\nSince: 5.2.8
\nExamples:
\n\n
\n- ex_audio_devices.c
\nVoices
\nALLEGRO_VOICE
\n \n+class=\"sourceCode c\">typedef struct ALLEGRO_VOICE ALLEGRO_VOICE;\n+typedef struct ALLEGRO_VOICE ALLEGRO_VOICE;
\n \nA voice represents an audio device on the system, which may be a real\n device, or an abstract device provided by the operating system. To play\n back audio, you would attach a mixer, sample instance or audio stream to\n a voice.
\n@@ -2864,15 +3000,17 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_acodec_multi.c#L24\">ex_acodec_multi.c\nex_kcm_direct.c \n \nal_create_voice
\n\n+ ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)\n+ALLEGRO_VOICE *al_create_voice(unsigned int freq,\n+ ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)\n \nALLEGRO_VOICE *al_create_voice(unsigned int freq,\n- ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)
Creates a voice structure and allocates a voice from the digital\n sound driver. The passed frequency (in Hz), sample format and channel\n configuration are used as a hint to what kind of data will be sent to\n the voice. However, the underlying sound driver is free to use\n@@ -2895,15 +3033,16 @@\n
ex_acodec_multi.c \nex_kcm_direct.c \n \nal_destroy_voice
\n \n+class=\"sourceCode c\">void al_destroy_voice(ALLEGRO_VOICE *voice)\n+void al_destroy_voice(ALLEGRO_VOICE *voice)
\n \nDestroys the voice and deallocates it from the digital driver. Does\n nothing if the voice is NULL.
\nSee also: al_create_voice
\n@@ -2914,15 +3053,16 @@\nex_acodec_multi.c \nex_kcm_direct.c \n \nal_detach_voice
\n \n+class=\"sourceCode c\">void al_detach_voice(ALLEGRO_VOICE *voice)\n+void al_detach_voice(ALLEGRO_VOICE *voice)
\n \nDetaches the mixer, sample instance or audio stream from the\n voice.
\nSee also: al_attach_mixer_to_voice,\n@@ -2930,15 +3070,17 @@\n href=\"audio.html#al_attach_sample_instance_to_voice\">al_attach_sample_instance_to_voice,\n al_attach_audio_stream_to_voice
\nal_attach_audio_stream_to_voice
\n \n+ ALLEGRO_VOICE *voice)\n+bool al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM *stream,\n+ ALLEGRO_VOICE *voice)\n \nAttaches an audio stream to a voice. The same rules as al_attach_sample_instance_to_voice\n apply. This may fail if the driver can\u2019t create a voice with the buffer\n count and buffer size the stream uses.
\n@@ -2956,15 +3098,16 @@\nex_stream_file.c \nex_audio_chain.cpp \n \nal_attach_mixer_to_voice
\n \n+class=\"sourceCode c\">bool al_attach_mixer_to_voice(ALLEGRO_MIXER *mixer, ALLEGRO_VOICE *voice)\n+bool al_attach_mixer_to_voice(ALLEGRO_MIXER *mixer, ALLEGRO_VOICE *voice)
\n \nAttaches a mixer to a voice. It must have the same frequency and\n channel configuration, but the depth may be different.
\nReturns true on success, false on failure.
\nSee also: al_detach_voice,\n@@ -2979,15 +3122,17 @@\n
ex_mixer_chain.c \n \nal_attach_sample_instance_to_voice
\n \n+ ALLEGRO_VOICE *voice)\n+bool al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE *spl,\n+ ALLEGRO_VOICE *voice)\n \nAttaches a sample instance to a voice, and allows it to play. The\n instance\u2019s gain and loop mode will be ignored, and it must have the same\n frequency, channel configuration and depth (including signed-ness) as\n the voice. This function may fail if the selected driver doesn\u2019t support\n@@ -3003,54 +3148,59 @@\n
ex_kcm_direct.c \nex_audio_chain.cpp \n \nal_get_voice_frequency
\n \n+class=\"sourceCode c\">unsigned int al_get_voice_frequency(const ALLEGRO_VOICE *voice)\n+unsigned int al_get_voic)
\n \nReturn the frequency of the voice (in Hz), e.g.\u00a044100.
\nal_get_voice_channels
\n \n+class=\"sourceCode c\">ALLEGRO_CHANNEL_CONF al_get_voice_channels(const ALLEGRO_VOICE *voice)\n+ALLEGRO_CHANNEL_CONF al_get_voice_channels(const ALLEGRO_VOICE *voice)
\n \nReturn the channel configuration of the voice.
\nSee also: ALLEGRO_CHANNEL_CONF.
\nal_get_voice_depth
\n \n+class=\"sourceCode c\">ALLEGRO_AUDIO_DEPTH al_get_voice_depth(const ALLEGRO_VOICE *voice)\n+ALLEGRO_AUDIO_DEPTH al_get_voice_depth(const ALLEGRO_VOICE *voice)
\n \nReturn the audio depth of the voice.
\nSee also: ALLEGRO_AUDIO_DEPTH.
\nal_get_voice_playing
\n \n+class=\"sourceCode c\">bool al_get_voice_playing(const ALLEGRO_VOICE *voice)\n+bool al_get_voice_playing(const ALLEGRO_VOICE *voice)
\n \nReturn true if the voice is currently playing.
\nSee also: al_set_voice_playing
\nExamples:
\n\n
\n- ex_audio_chain.cpp
\nal_set_voice_playing
\n \n+class=\"sourceCode c\">bool al_set_voice_playing(ALLEGRO_VOICE *voice, bool val)\n+bool al_set_voice_playing(ALLEGRO_VOICE *voice, bool val)
\n \nChange whether a voice is playing or not. This can only work if the\n voice has a non-streaming object attached to it, e.g.\u00a0a sample instance.\n On success the voice\u2019s current sample position is reset.
\nReturns true on success, false on failure.
\n@@ -3059,52 +3209,56 @@\nExamples:
\n\n
\n- ex_audio_chain.cpp
\nal_get_voice_position
\n \n+class=\"sourceCode c\">unsigned int al_get_voice_position(const ALLEGRO_VOICE *voice)\n+unsigned int al_get_voice_position(const ALLEGRO_VOICE *voice)
\n \nWhen the voice has a non-streaming object attached to it, e.g.\u00a0a\n sample, returns the voice\u2019s current sample position. Otherwise, returns\n zero.
\nSee also: al_set_voice_position.
\nal_set_voice_position
\n \n+class=\"sourceCode c\">bool al_set_voice_position(ALLEGRO_VOICE *voice, unsigned int val)\n+bool al_set_voice_position(ALLEGRO_VOICE *voice, unsigned int val)
\n \nSet the voice position. This can only work if the voice has a\n non-streaming object attached to it, e.g.\u00a0a sample instance.
\nReturns true on success, false on failure.
\nSee also: al_get_voice_position.
\nal_voice_has_attachments
\n \n+class=\"sourceCode c\">bool al_voice_has_attachments(const ALLEGRO_VOICE* voice)\n+bool al_voice_has_attachments(const ALLEGRO_VOICE* voice)
\n \nReturns true if the voice has something attached to it.
\nSee also: al_attach_mixer_to_voice,\n al_attach_sample_instance_to_voice,\n al_attach_audio_stream_to_voice
\nSince: 5.2.9
\nMixers
\nALLEGRO_MIXER
\n \n+class=\"sourceCode c\">typedef struct ALLEGRO_MIXER ALLEGRO_MIXER;\n+typedef struct ALLEGRO_MIXER ALLEGRO_MIXER;
\n \nA mixer mixes together attached streams into a single buffer. In the\n process, it converts channel configurations, sample frequencies and\n audio depths of the attached sample instances and audio streams\n accordingly. You can control the quality of this conversion using\n@@ -3121,28 +3275,31 @@\n
ex_acodec_multi.c \nex_mixer_chain.c \n \nALLEGRO_MIXER_QUALITY
\n \n+class=\"sourceCode c\">enum ALLEGRO_MIXER_QUALITY\n+enum ALLEGRO_MIXER_QUALITY
\n \n\n
\n- ALLEGRO_MIXER_QUALITY_POINT - point sampling
\n- ALLEGRO_MIXER_QUALITY_LINEAR - linear interpolation
\n- ALLEGRO_MIXER_QUALITY_CUBIC - cubic interpolation (since: 5.0.8,\n 5.1.4)
\nal_create_mixer
\n\n+ ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)\n+ALLEGRO_MIXER *al_create_mixer(unsigned int freq,\n+ ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)\n \nALLEGRO_MIXER *al_create_mixer(unsigned int freq,\n- ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)
Creates a mixer to attach sample instances, audio streams, or other\n mixers to. It will mix into a buffer at the requested frequency (in Hz)\n and channel count.
\nThe only supported audio depths are ALLEGRO_AUDIO_DEPTH_FLOAT32 and\n@@ -3164,15 +3321,16 @@\n
ex_acodec_multi.c \nex_mixer_chain.c \n \nal_destroy_mixer
\n \n+class=\"sourceCode c\">void al_destroy_mixer(ALLEGRO_MIXER *mixer)\n+void al_destroy_mixer(ALLEGRO_MIXER *mixer)
\n \nDestroys the mixer.
\nSee also: al_create_mixer
\nExamples:
\n@@ -3182,15 +3340,16 @@\nex_acodec_multi.c \nex_mixer_chain.c \n \nal_get_default_mixer
\n \n+class=\"sourceCode c\">ALLEGRO_MIXER *al_get_default_mixer(void)\n+ALLEGRO_MIXER *al_get_default_mixer(void)
\n \nReturn the default mixer, or NULL if one has not been set. Although\n different configurations of mixers and voices can be used, in most cases\n a single mixer attached to a voice is what you want. The default mixer\n is used by al_play_sample.
\n@@ -3206,15 +3365,16 @@\nex_audio_props.cpp \nex_resample_test.c \n \nal_set_default_mixer
\n \n+class=\"sourceCode c\">bool al_set_default_mixer(ALLEGRO_MIXER *mixer)\n+bool al_set_default_mixer(ALLEGRO_MIXER *mixer)
\n \nSets the default mixer. All samples started with al_play_sample will be stopped and\n all sample instances returned by al_lock_sample_id will be\n@@ -3225,15 +3385,16 @@\n
See also: al_reserve_samples, al_play_sample, al_get_default_mixer, al_restore_default_mixer
\nal_restore_default_mixer
\n \n+class=\"sourceCode c\">bool al_restore_default_mixer(void)\n+bool al_restore_default_mixer(void)
\n \nRestores Allegro\u2019s default mixer and attaches it to the default\n voice. If the default mixer hasn\u2019t been created before, it will be\n created. If the default voice hasn\u2019t been set via al_set_default_voice or\n@@ -3245,37 +3406,40 @@\n
Returns true on success, false on error.
\nSee also: al_get_default_mixer, al_set_default_mixer, al_reserve_samples.
\nal_get_default_voice
\n \n+class=\"sourceCode c\">ALLEGRO_VOICE *al_get_default_voice(void)\n+ALLEGRO_VOICE *al_get_default_voice(void)
\n \nReturns the default voice or NULL if there is none.
\nSince: 5.1.13
\nSee also: al_get_default_mixer
\nal_set_default_voice
\n \n+class=\"sourceCode c\">void al_set_default_voice(ALLEGRO_VOICE *voice)\n+void al_set_default_voice(ALLEGRO_VOICE *voice)
\n \nYou can call this before calling al_restore_default_mixer to provide\n the voice which should be used. Any previous voice will be destroyed.\n You can also pass NULL to destroy the current default voice.
\nSince: 5.1.13
\nSee also: al_get_default_mixer
\nal_attach_mixer_to_mixer
\n \n+class=\"sourceCode c\">bool al_attach_mixer_to_mixer(ALLEGRO_MIXER *stream, ALLEGRO_MIXER *mixer)\n+bool al_attach_mixer_to_mixer(ALLEGRO_MIXER *stream, ALLEGRO_MIXER *mixer)
\n \nAttaches the mixer passed as the first argument onto the mixer passed\n as the second argument. The first mixer (that is going to be attached)\n must not already be attached to anything. Both mixers must use the same\n frequency, audio depth and channel configuration.
\n@@ -3290,15 +3454,17 @@\nex_audio_chain.cpp \n \nal_attach_sample_instance_to_mixer
\n \n+ ALLEGRO_MIXER *mixer)\n+bool al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE *spl,\n+ ALLEGRO_MIXER *mixer)\n \nAttach a sample instance to a mixer. The instance must not already be\n attached to anything.
\nReturns true on success, false on failure.
\nSee also: ex_mixer_chain.c\n
ex_acodec.c \n \nal_attach_audio_stream_to_mixer
\n \n+class=\"sourceCode c\">bool al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM *stream, ALLEGRO_MIXER *mixer)\n+bool al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM *stream, ALLEGRO_MIXER *mixer)
\n \nAttach an audio stream to a mixer. The stream must not already be\n attached to anything.
\nReturns true on success, false on failure.
\nSee also: ex_stream_file.c\n
ex_resample_test.c \n \nal_get_mixer_frequency
\n \n+class=\"sourceCode c\">unsigned int al_get_mixer_frequency(const ALLEGRO_MIXER *mixer)\n+unsigned int al_get_mixer_frequency(const ALLEGRO_MIXER *mixer)
\n \nReturn the mixer frequency (in Hz).
\nSee also: al_set_mixer_frequency
\nal_set_mixer_frequency
\n \n+class=\"sourceCode c\">bool al_set_mixer_frequency(ALLEGRO_MIXER *mixer, unsigned int val)\n+bool al_set_mixer_frequency(ALLEGRO_MIXER *mixer, unsigned int val)
\n \nSet the mixer frequency (in Hz). This will only work if the mixer is\n not attached to anything.
\nReturns true on success, false on failure.
\nSee also: al_get_mixer_frequency
\nal_get_mixer_channels
\n \n+class=\"sourceCode c\">ALLEGRO_CHANNEL_CONF al_get_mixer_channels(const ALLEGRO_MIXER *mixer)\n+ALLEGRO_CHANNEL_CONF al_get_mixer_channels(const ALLEGRO_MIXER *mixer)
\n \nReturn the mixer channel configuration.
\nSee also: ALLEGRO_CHANNEL_CONF.
\nExamples:
\n\n
\n- ex_synth.cpp
\nal_get_mixer_depth
\n \n+class=\"sourceCode c\">ALLEGRO_AUDIO_DEPTH al_get_mixer_depth(const ALLEGRO_MIXER *mixer)\n+ALLEGRO_AUDIO_DEPTH al_get_mixer_depth(const ALLEGRO_MIXER *mixer)
\n \nReturn the mixer audio depth.
\nSee also: ALLEGRO_AUDIO_DEPTH.
\nExamples:
\n\n
\n- ex_synth.cpp
\nal_get_mixer_gain
\n \n+class=\"sourceCode c\">float al_get_mixer_gain(const ALLEGRO_MIXER *mixer)\n+float al_get_mixer_gain(const ALLEGRO_MIXER *mixer)
\n \nReturn the mixer gain (amplification factor). The default is 1.0.
\nSince: 5.0.6, 5.1.0
\nSee also: al_set_mixer_gain.
\nExamples:
\n\n
\n- ex_audio_chain.cpp
\nal_set_mixer_gain
\n \n+class=\"sourceCode c\">bool al_set_mixer_gain(ALLEGRO_MIXER *mixer, float new_gain)\n+bool al_set_mixer_gain(ALLEGRO_MIXER *mixer, float new_gain)
\n \nSet the mixer gain (amplification factor).
\nReturns true on success, false on failure.
\nSince: 5.0.6, 5.1.0
\nSee also: ex_audio_props.cpp\n
ex_audio_chain.cpp \n \nal_get_mixer_quality
\n \n+class=\"sourceCode c\">ALLEGRO_MIXER_QUALITY al_get_mixer_quality(const ALLEGRO_MIXER *mixer)\n+ALLEGRO_MIXER_QUALITY al_get_mixer_quality(const ALLEGRO_MIXER *mixer)
\n \nReturn the mixer quality.
\nSee also: ALLEGRO_MIXER_QUALITY, al_set_mixer_quality
\nal_set_mixer_quality
\n \n+class=\"sourceCode c\">bool al_set_mixer_quality(ALLEGRO_MIXER *mixer, ALLEGRO_MIXER_QUALITY new_quality)\n+bool al_set_mixer_quality(ALLEGRO_MIXER *mixer, ALLEGRO_MIXER_QUALITY new_quality)
\n \nSet the mixer quality. This can only succeed if the mixer does not\n have anything attached to it.
\nReturns true on success, false on failure.
\nSee also: ALLEGRO_MIXER_QUALITY, al_get_mixer_quality
\nal_get_mixer_playing
\n \n+class=\"sourceCode c\">bool al_get_mixer_playing(const ALLEGRO_MIXER *mixer)\n+bool al_get_mixer_playing(const ALLEGRO_MIXER *mixer)
\n \nReturn true if the mixer is playing.
\nSee also: al_set_mixer_playing.
\nExamples:
\n\n
\n- ex_audio_chain.cpp
\nal_set_mixer_playing
\n \n+class=\"sourceCode c\">bool al_set_mixer_playing(ALLEGRO_MIXER *mixer, bool val)\n+bool al_set_mixer_playing(ALLEGRO_MIXER *mixer, bool val)
\n \nChange whether the mixer is playing.
\nReturns true on success, false on failure.
\nSee also: al_get_mixer_playing.
\nExamples:
\n\n
\n- ex_audio_chain.cpp
\nal_get_mixer_attached
\n \n+class=\"sourceCode c\">bool al_get_mixer_attached(const ALLEGRO_MIXER *mixer)\n+bool al_get_mixer_attached(const ALLEGRO_MIXER *mixer)
\n \nReturn true if the mixer is attached to something.
\nSee also: al_mixer_has_attachments,\n al_attach_audio_stream_to_mixer,\n al_attach_mixer_to_mixer,\n al_detach_mixer
\nal_mixer_has_attachments
\n \n+class=\"sourceCode c\">bool al_mixer_has_attachments(const ALLEGRO_MIXER* mixer)\n+bool al_mixer_has_attachments(const ALLEGRO_MIXER* mixer)
\n \nReturns true if the mixer has something attached to it.
\nSee also: al_get_mixer_attached, al_attach_sample_instance_to_mixer,\n@@ -3495,15 +3674,16 @@\n href=\"audio.html#al_attach_audio_stream_to_mixer\">al_attach_audio_stream_to_mixer,\n al_attach_mixer_to_mixer,\n al_detach_mixer
\nSince: 5.2.9
\nal_detach_mixer
\n \n+class=\"sourceCode c\">bool al_detach_mixer(ALLEGRO_MIXER *mixer)\n+bool al_detach_mixer(ALLEGRO_MIXER *mixer)
\n \nDetach the mixer from whatever it is attached to, if anything.
\nSee also: al_attach_mixer_to_mixer.
\nExamples:
\n@@ -3512,15 +3692,18 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_audio_chain.cpp#L460\">ex_audio_chain.cpp\n \nal_set_mixer_postprocess_callback
\n\n+ void *pp_callback_userdata)\n+bool al_set_mixer_postprocess_callback(ALLEGRO_MIXER *mixer,\n+ void (*pp_callback)(void *buf, unsigned int samples, void *data),\n+ void *pp_callback_userdata)\n \nbool al_set_mixer_postprocess_callback(ALLEGRO_MIXER *mixer,\n void (*pp_callback)(void *buf, unsigned int samples, void *data),\n- void *pp_callback_userdata)
Sets a post-processing filter function that\u2019s called after the\n attached streams have been mixed. The buffer\u2019s format will be whatever\n the mixer was created with. The sample count and user-data pointer is\n also passed.
\n@@ -3536,15 +3719,16 @@\n href=\"https://github.com/liballeg/allegro5/blob/master/examples/ex_synth.cpp#L490\">ex_synth.cpp\nex_mixer_pp.c \n \nMiscelaneous
\nALLEGRO_AUDIO_DEPTH
\n \n+class=\"sourceCode c\">enum ALLEGRO_AUDIO_DEPTH\n+enum ALLEGRO_AUDIO_DEPTH
\n \nSample depth and type as well as signedness. Mixers only use 32-bit\n signed float (-1..+1), or 16-bit signed integers. Signedness is\n determined by an \u201cunsigned\u201d bit-flag applied to the depth value.
\n\n@@ -3567,15 +3751,16 @@\n
\n- ex_stream_file.c
\n- ex_acodec_multi.c
\nALLEGRO_AUDIO_PAN_NONE
\n \n+class=\"sourceCode c\">#define ALLEGRO_AUDIO_PAN_NONE (-1000.0f)\n+#define ALLEGRO_AUDIO_PAN_NONE (-1000.0f)
\n \nA special value for the pan property of sample instances and audio\n streams. Use this value to disable panning on sample instances and audio\n streams, and play them without attentuation implied by panning\n support.
\n@@ -3589,15 +3774,16 @@\nExamples:
\n\n
\n- ex_audio_props.cpp
\nALLEGRO_CHANNEL_CONF
\n \n+class=\"sourceCode c\">enum ALLEGRO_CHANNEL_CONF\n+enum ALLEGRO_CHANNEL_CONF
\n \nSpeaker configuration (mono, stereo, 2.1, etc).
\n\n
\n- ALLEGRO_CHANNEL_CONF_1
\n- ALLEGRO_CHANNEL_CONF_2
\n@@ -3614,15 +3800,16 @@\n- ex_stream_file.c
\n- ex_acodec_multi.c
\nALLEGRO_PLAYMODE
\n \n+class=\"sourceCode c\">enum ALLEGRO_PLAYMODE\n+enum ALLEGRO_PLAYMODE
\n \nSample and stream playback mode.
\n\n
\n- ALLEGRO_PLAYMODE_ONCE - the sample/stream is played from start to\n finish an then it stops.
\n@@ -3644,15 +3831,16 @@\n- ex_kcm_direct.c
\n- ex_mixer_chain.c
\nALLEGRO_AUDIO_EVENT_TYPE
\n \n+class=\"sourceCode c\">enum ALLEGRO_AUDIO_EVENT_TYPE\n+enum ALLEGRO_AUDIO_EVENT_TYPE
\n \nEvents sent by al_get_audio_stream_event_source\n or al_get_audio_recorder_event_source.
\n@@ -3675,63 +3863,71 @@\nSince: 5.1.1
\n\n\nUnstable\n API: The API may need a slight redesign.
\nal_get_allegro_audio_version
\n \n+class=\"sourceCode c\">uint32_t al_get_allegro_audio_version(void)\n+uint32_t al_get_allegro_audio_version(void)
\n \nReturns the (compiled) version of the addon, in the same format as al_get_allegro_version.
\nal_get_audio_depth_size
\n \n+class=\"sourceCode c\">size_t al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH depth)\n+size_t al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH depth)
\n \nReturn the size of a sample, in bytes, for the given format. The\n format is one of the values listed under ALLEGRO_AUDIO_DEPTH.
\nExamples:
\n\n
\n- ex_synth.cpp
\nal_get_channel_count
\n \n+class=\"sourceCode c\">size_t al_get_channel_count(ALLEGRO_CHANNEL_CONF conf)\n+size_t al_get_channel_count(ALLEGRO_CHANNEL_CONF conf)
\n \nReturn the number of channels for the given channel configuration,\n which is one of the values listed under ALLEGRO_CHANNEL_CONF.
\nExamples:
\n\n
\n- ex_acodec.c
\nal_fill_silence
\n\n+ ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)\n+void al_fill_silence(void *buf, unsigned int samples,\n+ ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)\n \nvoid al_fill_silence(void *buf, unsigned int samples,\n- ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)
Fill a buffer with silence, for the given format and channel\n configuration. The buffer must have enough space for the given number of\n samples, and be properly aligned.
\nSince: 5.1.8
\nExamples:
\n\n
\n-\n+ \n \n- ex_saw.c
\n- ex_synth.cpp
\n