#include <stddef.h>
#include <stdint.h>
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <windows.h>
#include <objbase.h>
#include <mmreg.h>
#include <mmsystem.h>
#include <stdio.h>
#include <strings.h>
Go to the source code of this file.
Classes | |
struct | ma_format_converter_config |
struct | ma_format_converter |
struct | ma_channel_router_config |
struct | ma_channel_router |
struct | ma_src_config_sinc |
struct | ma_src_config |
struct | ma_pcm_converter_config |
struct | ma_rb |
struct | ma_pcm_rb |
struct | ma_IMMNotificationClient |
struct | ma_thread |
struct | ma_mutex |
struct | ma_event |
union | ma_device_id |
struct | ma_device_info |
union | ma_timer |
struct | ma_device_config |
struct | ma_context_config |
struct | ma_context |
struct | ma_decoder_config |
struct | ma_decoder |
struct | ma_sine_wave |
#define MA_ACCESS_DENIED -5 |
Definition at line 680 of file miniaudio.h.
#define MA_ALIGN | ( | alignment | ) | __attribute__((aligned(alignment))) |
Definition at line 585 of file miniaudio.h.
#define MA_ALIGNED_STRUCT | ( | alignment | ) | struct MA_ALIGN(alignment) |
Definition at line 594 of file miniaudio.h.
#define MA_API_NOT_FOUND -105 |
Definition at line 690 of file miniaudio.h.
#define MA_CHANNEL_AUX_0 20 |
Definition at line 635 of file miniaudio.h.
#define MA_CHANNEL_AUX_1 21 |
Definition at line 636 of file miniaudio.h.
#define MA_CHANNEL_AUX_10 30 |
Definition at line 645 of file miniaudio.h.
#define MA_CHANNEL_AUX_11 31 |
Definition at line 646 of file miniaudio.h.
#define MA_CHANNEL_AUX_12 32 |
Definition at line 647 of file miniaudio.h.
#define MA_CHANNEL_AUX_13 33 |
Definition at line 648 of file miniaudio.h.
#define MA_CHANNEL_AUX_14 34 |
Definition at line 649 of file miniaudio.h.
#define MA_CHANNEL_AUX_15 35 |
Definition at line 650 of file miniaudio.h.
#define MA_CHANNEL_AUX_16 36 |
Definition at line 651 of file miniaudio.h.
#define MA_CHANNEL_AUX_17 37 |
Definition at line 652 of file miniaudio.h.
#define MA_CHANNEL_AUX_18 38 |
Definition at line 653 of file miniaudio.h.
#define MA_CHANNEL_AUX_19 39 |
Definition at line 654 of file miniaudio.h.
#define MA_CHANNEL_AUX_2 22 |
Definition at line 637 of file miniaudio.h.
#define MA_CHANNEL_AUX_20 40 |
Definition at line 655 of file miniaudio.h.
#define MA_CHANNEL_AUX_21 41 |
Definition at line 656 of file miniaudio.h.
#define MA_CHANNEL_AUX_22 42 |
Definition at line 657 of file miniaudio.h.
#define MA_CHANNEL_AUX_23 43 |
Definition at line 658 of file miniaudio.h.
#define MA_CHANNEL_AUX_24 44 |
Definition at line 659 of file miniaudio.h.
#define MA_CHANNEL_AUX_25 45 |
Definition at line 660 of file miniaudio.h.
#define MA_CHANNEL_AUX_26 46 |
Definition at line 661 of file miniaudio.h.
#define MA_CHANNEL_AUX_27 47 |
Definition at line 662 of file miniaudio.h.
#define MA_CHANNEL_AUX_28 48 |
Definition at line 663 of file miniaudio.h.
#define MA_CHANNEL_AUX_29 49 |
Definition at line 664 of file miniaudio.h.
#define MA_CHANNEL_AUX_3 23 |
Definition at line 638 of file miniaudio.h.
#define MA_CHANNEL_AUX_30 50 |
Definition at line 665 of file miniaudio.h.
#define MA_CHANNEL_AUX_31 51 |
Definition at line 666 of file miniaudio.h.
#define MA_CHANNEL_AUX_4 24 |
Definition at line 639 of file miniaudio.h.
#define MA_CHANNEL_AUX_5 25 |
Definition at line 640 of file miniaudio.h.
#define MA_CHANNEL_AUX_6 26 |
Definition at line 641 of file miniaudio.h.
#define MA_CHANNEL_AUX_7 27 |
Definition at line 642 of file miniaudio.h.
#define MA_CHANNEL_AUX_8 28 |
Definition at line 643 of file miniaudio.h.
#define MA_CHANNEL_AUX_9 29 |
Definition at line 644 of file miniaudio.h.
#define MA_CHANNEL_BACK_CENTER 10 |
Definition at line 625 of file miniaudio.h.
#define MA_CHANNEL_BACK_LEFT 6 |
Definition at line 621 of file miniaudio.h.
#define MA_CHANNEL_BACK_RIGHT 7 |
Definition at line 622 of file miniaudio.h.
#define MA_CHANNEL_FRONT_CENTER 4 |
Definition at line 619 of file miniaudio.h.
#define MA_CHANNEL_FRONT_LEFT 2 |
Definition at line 617 of file miniaudio.h.
#define MA_CHANNEL_FRONT_LEFT_CENTER 8 |
Definition at line 623 of file miniaudio.h.
#define MA_CHANNEL_FRONT_RIGHT 3 |
Definition at line 618 of file miniaudio.h.
#define MA_CHANNEL_FRONT_RIGHT_CENTER 9 |
Definition at line 624 of file miniaudio.h.
#define MA_CHANNEL_LEFT MA_CHANNEL_FRONT_LEFT |
Definition at line 667 of file miniaudio.h.
#define MA_CHANNEL_LFE 5 |
Definition at line 620 of file miniaudio.h.
#define MA_CHANNEL_MONO 1 |
Definition at line 616 of file miniaudio.h.
#define MA_CHANNEL_NONE 0 |
Definition at line 615 of file miniaudio.h.
#define MA_CHANNEL_POSITION_COUNT MA_CHANNEL_AUX_31 + 1 |
Definition at line 669 of file miniaudio.h.
#define MA_CHANNEL_RIGHT MA_CHANNEL_FRONT_RIGHT |
Definition at line 668 of file miniaudio.h.
#define MA_CHANNEL_SIDE_LEFT 11 |
Definition at line 626 of file miniaudio.h.
#define MA_CHANNEL_SIDE_RIGHT 12 |
Definition at line 627 of file miniaudio.h.
#define MA_CHANNEL_TOP_BACK_CENTER 18 |
Definition at line 633 of file miniaudio.h.
#define MA_CHANNEL_TOP_BACK_LEFT 17 |
Definition at line 632 of file miniaudio.h.
#define MA_CHANNEL_TOP_BACK_RIGHT 19 |
Definition at line 634 of file miniaudio.h.
#define MA_CHANNEL_TOP_CENTER 13 |
Definition at line 628 of file miniaudio.h.
#define MA_CHANNEL_TOP_FRONT_CENTER 15 |
Definition at line 630 of file miniaudio.h.
#define MA_CHANNEL_TOP_FRONT_LEFT 14 |
Definition at line 629 of file miniaudio.h.
#define MA_CHANNEL_TOP_FRONT_RIGHT 16 |
Definition at line 631 of file miniaudio.h.
#define MA_DEVICE_BUSY -200 |
Definition at line 694 of file miniaudio.h.
#define MA_DEVICE_NOT_INITIALIZED -201 |
Definition at line 695 of file miniaudio.h.
#define MA_DEVICE_NOT_STARTED -202 |
Definition at line 696 of file miniaudio.h.
#define MA_DEVICE_TYPE_NOT_SUPPORTED -101 |
Definition at line 686 of file miniaudio.h.
#define MA_DEVICE_UNAVAILABLE -203 |
Definition at line 697 of file miniaudio.h.
#define MA_ENABLE_DSOUND |
Definition at line 1613 of file miniaudio.h.
#define MA_ENABLE_JACK |
Definition at line 1625 of file miniaudio.h.
#define MA_ENABLE_NULL |
Definition at line 1649 of file miniaudio.h.
#define MA_ENABLE_WASAPI |
Definition at line 1610 of file miniaudio.h.
#define MA_ENABLE_WINMM |
Definition at line 1616 of file miniaudio.h.
#define MA_ERROR -1 /* A generic error. */ |
Definition at line 676 of file miniaudio.h.
#define MA_FAILED_TO_CONFIGURE_BACKEND_DEVICE -310 |
Definition at line 710 of file miniaudio.h.
#define MA_FAILED_TO_CREATE_EVENT -312 |
Definition at line 712 of file miniaudio.h.
#define MA_FAILED_TO_CREATE_MUTEX -311 |
Definition at line 711 of file miniaudio.h.
#define MA_FAILED_TO_CREATE_THREAD -313 |
Definition at line 713 of file miniaudio.h.
#define MA_FAILED_TO_INIT_BACKEND -302 |
Definition at line 702 of file miniaudio.h.
#define MA_FAILED_TO_MAP_DEVICE_BUFFER -300 |
Definition at line 700 of file miniaudio.h.
#define MA_FAILED_TO_OPEN_BACKEND_DEVICE -307 |
Definition at line 707 of file miniaudio.h.
#define MA_FAILED_TO_READ_DATA_FROM_CLIENT -303 |
Definition at line 703 of file miniaudio.h.
#define MA_FAILED_TO_READ_DATA_FROM_DEVICE -304 |
Definition at line 704 of file miniaudio.h.
#define MA_FAILED_TO_SEND_DATA_TO_CLIENT -305 |
Definition at line 705 of file miniaudio.h.
#define MA_FAILED_TO_SEND_DATA_TO_DEVICE -306 |
Definition at line 706 of file miniaudio.h.
#define MA_FAILED_TO_START_BACKEND_DEVICE -308 |
Definition at line 708 of file miniaudio.h.
#define MA_FAILED_TO_STOP_BACKEND_DEVICE -309 |
Definition at line 709 of file miniaudio.h.
#define MA_FAILED_TO_UNMAP_DEVICE_BUFFER -301 |
Definition at line 701 of file miniaudio.h.
#define MA_FALSE 0 |
Definition at line 548 of file miniaudio.h.
#define MA_FORMAT_NOT_SUPPORTED -100 |
Definition at line 685 of file miniaudio.h.
#define MA_HAS_STDINT |
Definition at line 513 of file miniaudio.h.
#define MA_INLINE |
Definition at line 576 of file miniaudio.h.
#define MA_INVALID_ARGS -2 |
Definition at line 677 of file miniaudio.h.
#define MA_INVALID_DEVICE_CONFIG -106 |
Definition at line 691 of file miniaudio.h.
#define MA_INVALID_OPERATION -3 |
Definition at line 678 of file miniaudio.h.
#define MA_LOG_LEVEL MA_LOG_LEVEL_ERROR |
Definition at line 608 of file miniaudio.h.
#define MA_LOG_LEVEL_ERROR 1 |
Definition at line 605 of file miniaudio.h.
#define MA_LOG_LEVEL_INFO 3 |
Definition at line 603 of file miniaudio.h.
#define MA_LOG_LEVEL_VERBOSE 4 |
Definition at line 602 of file miniaudio.h.
#define MA_LOG_LEVEL_WARNING 2 |
Definition at line 604 of file miniaudio.h.
#define MA_MAX_CHANNELS 32 |
Definition at line 735 of file miniaudio.h.
#define MA_MAX_PCM_SAMPLE_SIZE_IN_BYTES 8 |
Definition at line 733 of file miniaudio.h.
#define MA_MAX_SAMPLE_RATE MA_SAMPLE_RATE_384000 |
Definition at line 737 of file miniaudio.h.
#define MA_MIN_CHANNELS 1 |
Definition at line 734 of file miniaudio.h.
#define MA_MIN_PCM_SAMPLE_SIZE_IN_BYTES 1 /* For simplicity, miniaudio does not support PCM samples that are not byte aligned. */ |
Definition at line 732 of file miniaudio.h.
#define MA_MIN_SAMPLE_RATE MA_SAMPLE_RATE_8000 |
Definition at line 736 of file miniaudio.h.
#define MA_NO_BACKEND -103 |
Definition at line 688 of file miniaudio.h.
#define MA_NO_DEVICE -104 |
Definition at line 689 of file miniaudio.h.
#define MA_OUT_OF_MEMORY -4 |
Definition at line 679 of file miniaudio.h.
#define MA_SAMPLE_RATE_11025 11025 |
Definition at line 718 of file miniaudio.h.
#define MA_SAMPLE_RATE_16000 16000 |
Definition at line 719 of file miniaudio.h.
#define MA_SAMPLE_RATE_176400 176400 |
Definition at line 727 of file miniaudio.h.
#define MA_SAMPLE_RATE_192000 192000 |
Definition at line 728 of file miniaudio.h.
#define MA_SAMPLE_RATE_22050 22050 |
Definition at line 720 of file miniaudio.h.
#define MA_SAMPLE_RATE_24000 24000 |
Definition at line 721 of file miniaudio.h.
#define MA_SAMPLE_RATE_32000 32000 |
Definition at line 722 of file miniaudio.h.
#define MA_SAMPLE_RATE_352800 352800 |
Definition at line 729 of file miniaudio.h.
#define MA_SAMPLE_RATE_384000 384000 |
Definition at line 730 of file miniaudio.h.
#define MA_SAMPLE_RATE_44100 44100 |
Definition at line 723 of file miniaudio.h.
#define MA_SAMPLE_RATE_48000 48000 |
Definition at line 724 of file miniaudio.h.
#define MA_SAMPLE_RATE_8000 8000 |
Definition at line 717 of file miniaudio.h.
#define MA_SAMPLE_RATE_88200 88200 |
Definition at line 725 of file miniaudio.h.
#define MA_SAMPLE_RATE_96000 96000 |
Definition at line 726 of file miniaudio.h.
#define MA_SHARE_MODE_NOT_SUPPORTED -102 |
Definition at line 687 of file miniaudio.h.
#define MA_SIMD_ALIGNMENT 64 |
Definition at line 598 of file miniaudio.h.
#define MA_SIZE_MAX 0xFFFFFFFF /* When SIZE_MAX is not defined by the standard library just default to the maximum 32-bit unsigned integer. */ |
Definition at line 566 of file miniaudio.h.
#define MA_SRC_INPUT_BUFFER_SIZE_IN_SAMPLES 256 |
Definition at line 742 of file miniaudio.h.
#define MA_SRC_SINC_DEFAULT_WINDOW_WIDTH 32 |
Definition at line 740 of file miniaudio.h.
#define MA_SRC_SINC_LOOKUP_TABLE_RESOLUTION 8 |
Definition at line 741 of file miniaudio.h.
#define MA_SRC_SINC_MAX_WINDOW_WIDTH 32 |
Definition at line 739 of file miniaudio.h.
#define MA_SRC_SINC_MIN_WINDOW_WIDTH 2 |
Definition at line 738 of file miniaudio.h.
#define MA_SUCCESS 0 |
Definition at line 673 of file miniaudio.h.
#define MA_SUPPORT_DSOUND |
Definition at line 1567 of file miniaudio.h.
#define MA_SUPPORT_JACK /* JACK is technically supported on Windows, but I don't know how many people use it in practice... */ |
Definition at line 1569 of file miniaudio.h.
#define MA_SUPPORT_NULL |
Definition at line 1605 of file miniaudio.h.
#define MA_SUPPORT_WASAPI |
Definition at line 1565 of file miniaudio.h.
#define MA_SUPPORT_WINMM |
Definition at line 1568 of file miniaudio.h.
#define MA_TIMEOUT -7 |
Definition at line 682 of file miniaudio.h.
#define MA_TOO_LARGE -6 |
Definition at line 681 of file miniaudio.h.
#define MA_TRUE 1 |
Definition at line 547 of file miniaudio.h.
#define MA_WIN32 |
Definition at line 462 of file miniaudio.h.
#define MA_WIN32_DESKTOP |
Definition at line 466 of file miniaudio.h.
#define NULL 0 |
Definition at line 560 of file miniaudio.h.
Definition at line 546 of file miniaudio.h.
Definition at line 545 of file miniaudio.h.
typedef ma_uint8 ma_channel |
Definition at line 614 of file miniaudio.h.
typedef struct ma_channel_router ma_channel_router |
Definition at line 841 of file miniaudio.h.
typedef ma_uint32(* ma_channel_router_read_deinterleaved_proc) (ma_channel_router *pRouter, ma_uint32 frameCount, void **ppSamplesOut, void *pUserData) |
Definition at line 842 of file miniaudio.h.
typedef struct ma_context ma_context |
Definition at line 611 of file miniaudio.h.
typedef struct ma_decoder ma_decoder |
Definition at line 2992 of file miniaudio.h.
typedef ma_uint64(* ma_decoder_get_length_in_pcm_frames_proc) (ma_decoder *pDecoder) |
Definition at line 3004 of file miniaudio.h.
typedef size_t(* ma_decoder_read_proc) (ma_decoder *pDecoder, void *pBufferOut, size_t bytesToRead) |
Definition at line 3000 of file miniaudio.h.
typedef ma_bool32(* ma_decoder_seek_proc) (ma_decoder *pDecoder, int byteOffset, ma_seek_origin origin) |
Definition at line 3001 of file miniaudio.h.
typedef ma_result(* ma_decoder_seek_to_pcm_frame_proc) (ma_decoder *pDecoder, ma_uint64 frameIndex) |
Definition at line 3002 of file miniaudio.h.
typedef ma_result(* ma_decoder_uninit_proc) (ma_decoder *pDecoder) |
Definition at line 3003 of file miniaudio.h.
Definition at line 612 of file miniaudio.h.
typedef void(* ma_device_callback_proc) (ma_device *pDevice, void *pOutput, const void *pInput, ma_uint32 frameCount) |
Definition at line 1778 of file miniaudio.h.
typedef ma_bool32(* ma_enum_devices_callback_proc) (ma_context *pContext, ma_device_type deviceType, const ma_device_info *pInfo, void *pUserData) |
Definition at line 1953 of file miniaudio.h.
typedef struct ma_format_converter ma_format_converter |
Definition at line 806 of file miniaudio.h.
typedef ma_uint32(* ma_format_converter_read_deinterleaved_proc) (ma_format_converter *pConverter, ma_uint32 frameCount, void **ppSamplesOut, void *pUserData) |
Definition at line 808 of file miniaudio.h.
typedef ma_uint32(* ma_format_converter_read_proc) (ma_format_converter *pConverter, ma_uint32 frameCount, void *pFramesOut, void *pUserData) |
Definition at line 807 of file miniaudio.h.
Definition at line 550 of file miniaudio.h.
typedef int16_t ma_int16 |
Definition at line 517 of file miniaudio.h.
typedef int32_t ma_int32 |
Definition at line 519 of file miniaudio.h.
typedef int64_t ma_int64 |
Definition at line 521 of file miniaudio.h.
typedef int8_t ma_int8 |
Definition at line 515 of file miniaudio.h.
typedef void(* ma_log_proc) (ma_context *pContext, ma_device *pDevice, ma_uint32 logLevel, const char *message) |
Definition at line 1802 of file miniaudio.h.
typedef struct ma_pcm_converter ma_pcm_converter |
Definition at line 946 of file miniaudio.h.
typedef ma_uint32(* ma_pcm_converter_read_proc) (ma_pcm_converter *pDSP, void *pSamplesOut, ma_uint32 frameCount, void *pUserData) |
Definition at line 947 of file miniaudio.h.
Definition at line 552 of file miniaudio.h.
Definition at line 551 of file miniaudio.h.
Definition at line 672 of file miniaudio.h.
Definition at line 874 of file miniaudio.h.
typedef ma_uint32(* ma_src_read_deinterleaved_proc) (ma_src *pSRC, ma_uint32 frameCount, void **ppSamplesOut, void *pUserData) |
Definition at line 875 of file miniaudio.h.
Definition at line 1788 of file miniaudio.h.
typedef uint16_t ma_uint16 |
Definition at line 518 of file miniaudio.h.
typedef uint32_t ma_uint32 |
Definition at line 520 of file miniaudio.h.
typedef uint64_t ma_uint64 |
Definition at line 522 of file miniaudio.h.
typedef uint8_t ma_uint8 |
Definition at line 516 of file miniaudio.h.
typedef uintptr_t ma_uintptr |
Definition at line 526 of file miniaudio.h.
enum ma_backend |
Definition at line 1663 of file miniaudio.h.
enum ma_channel_mix_mode |
Enumerator | |
---|---|
ma_channel_mix_mode_rectangular | |
ma_channel_mix_mode_simple | |
ma_channel_mix_mode_custom_weights | |
ma_channel_mix_mode_planar_blend | |
ma_channel_mix_mode_default |
Definition at line 777 of file miniaudio.h.
enum ma_device_type |
Enumerator | |
---|---|
ma_device_type_playback | |
ma_device_type_capture | |
ma_device_type_duplex |
Definition at line 1804 of file miniaudio.h.
enum ma_dither_mode |
Enumerator | |
---|---|
ma_dither_mode_none | |
ma_dither_mode_rectangle | |
ma_dither_mode_triangle |
Definition at line 755 of file miniaudio.h.
enum ma_format |
Enumerator | |
---|---|
ma_format_unknown | |
ma_format_u8 | |
ma_format_s16 | |
ma_format_s24 | |
ma_format_s32 | |
ma_format_f32 | |
ma_format_count |
Definition at line 762 of file miniaudio.h.
Enumerator | |
---|---|
ma_performance_profile_low_latency | |
ma_performance_profile_conservative |
Definition at line 799 of file miniaudio.h.
enum ma_seek_origin |
Enumerator | |
---|---|
ma_seek_origin_start | |
ma_seek_origin_current |
Definition at line 2994 of file miniaudio.h.
enum ma_share_mode |
Enumerator | |
---|---|
ma_share_mode_shared | |
ma_share_mode_exclusive |
Definition at line 1811 of file miniaudio.h.
enum ma_src_algorithm |
Enumerator | |
---|---|
ma_src_algorithm_linear | |
ma_src_algorithm_sinc | |
ma_src_algorithm_none | |
ma_src_algorithm_default |
Definition at line 877 of file miniaudio.h.
Enumerator | |
---|---|
ma_src_sinc_window_function_hann | |
ma_src_sinc_window_function_rectangular | |
ma_src_sinc_window_function_default |
Definition at line 885 of file miniaudio.h.
Definition at line 786 of file miniaudio.h.
enum ma_stream_format |
Enumerator | |
---|---|
ma_stream_format_pcm |
Definition at line 744 of file miniaudio.h.
enum ma_stream_layout |
Enumerator | |
---|---|
ma_stream_layout_interleaved | |
ma_stream_layout_deinterleaved |
Definition at line 749 of file miniaudio.h.
enum ma_thread_priority |
Definition at line 1682 of file miniaudio.h.
void* ma_aligned_malloc | ( | size_t | sz, |
size_t | alignment | ||
) |
MA_ALIGNED_STRUCT | ( | MA_SIMD_ALIGNMENT | ) |
Definition at line 917 of file miniaudio.h.
ma_uint32 ma_calculate_buffer_size_in_frames_from_milliseconds | ( | ma_uint32 | bufferSizeInMilliseconds, |
ma_uint32 | sampleRate | ||
) |
ma_uint32 ma_calculate_buffer_size_in_milliseconds_from_frames | ( | ma_uint32 | bufferSizeInFrames, |
ma_uint32 | sampleRate | ||
) |
ma_bool32 ma_channel_map_blank | ( | ma_uint32 | channels, |
const ma_channel | channelMap[MA_MAX_CHANNELS] | ||
) |
ma_bool32 ma_channel_map_contains_channel_position | ( | ma_uint32 | channels, |
const ma_channel | channelMap[MA_MAX_CHANNELS], | ||
ma_channel | channelPosition | ||
) |
void ma_channel_map_copy | ( | ma_channel * | pOut, |
const ma_channel * | pIn, | ||
ma_uint32 | channels | ||
) |
ma_bool32 ma_channel_map_equal | ( | ma_uint32 | channels, |
const ma_channel | channelMapA[MA_MAX_CHANNELS], | ||
const ma_channel | channelMapB[MA_MAX_CHANNELS] | ||
) |
ma_bool32 ma_channel_map_valid | ( | ma_uint32 | channels, |
const ma_channel | channelMap[MA_MAX_CHANNELS] | ||
) |
ma_channel_router_config ma_channel_router_config_init | ( | ma_uint32 | channelsIn, |
const ma_channel | channelMapIn[MA_MAX_CHANNELS], | ||
ma_uint32 | channelsOut, | ||
const ma_channel | channelMapOut[MA_MAX_CHANNELS], | ||
ma_channel_mix_mode | mixingMode, | ||
ma_channel_router_read_deinterleaved_proc | onRead, | ||
void * | pUserData | ||
) |
ma_result ma_channel_router_init | ( | const ma_channel_router_config * | pConfig, |
ma_channel_router * | pRouter | ||
) |
ma_uint64 ma_channel_router_read_deinterleaved | ( | ma_channel_router * | pRouter, |
ma_uint64 | frameCount, | ||
void ** | ppSamplesOut, | ||
void * | pUserData | ||
) |
ma_context_config ma_context_config_init | ( | void | ) |
ma_result ma_context_enumerate_devices | ( | ma_context * | pContext, |
ma_enum_devices_callback_proc | callback, | ||
void * | pUserData | ||
) |
ma_result ma_context_get_device_info | ( | ma_context * | pContext, |
ma_device_type | deviceType, | ||
const ma_device_id * | pDeviceID, | ||
ma_share_mode | shareMode, | ||
ma_device_info * | pDeviceInfo | ||
) |
ma_result ma_context_get_devices | ( | ma_context * | pContext, |
ma_device_info ** | ppPlaybackDeviceInfos, | ||
ma_uint32 * | pPlaybackDeviceCount, | ||
ma_device_info ** | ppCaptureDeviceInfos, | ||
ma_uint32 * | pCaptureDeviceCount | ||
) |
ma_result ma_context_init | ( | const ma_backend | backends[], |
ma_uint32 | backendCount, | ||
const ma_context_config * | pConfig, | ||
ma_context * | pContext | ||
) |
ma_result ma_context_uninit | ( | ma_context * | pContext | ) |
ma_uint64 ma_convert_frames | ( | void * | pOut, |
ma_format | formatOut, | ||
ma_uint32 | channelsOut, | ||
ma_uint32 | sampleRateOut, | ||
const void * | pIn, | ||
ma_format | formatIn, | ||
ma_uint32 | channelsIn, | ||
ma_uint32 | sampleRateIn, | ||
ma_uint64 | frameCount | ||
) |
ma_uint64 ma_convert_frames_ex | ( | void * | pOut, |
ma_format | formatOut, | ||
ma_uint32 | channelsOut, | ||
ma_uint32 | sampleRateOut, | ||
ma_channel | channelMapOut[MA_MAX_CHANNELS], | ||
const void * | pIn, | ||
ma_format | formatIn, | ||
ma_uint32 | channelsIn, | ||
ma_uint32 | sampleRateIn, | ||
ma_channel | channelMapIn[MA_MAX_CHANNELS], | ||
ma_uint64 | frameCount | ||
) |
ma_result ma_decode_file | ( | const char * | pFilePath, |
ma_decoder_config * | pConfig, | ||
ma_uint64 * | pFrameCountOut, | ||
void ** | ppDataOut | ||
) |
ma_result ma_decode_memory | ( | const void * | pData, |
size_t | dataSize, | ||
ma_decoder_config * | pConfig, | ||
ma_uint64 * | pFrameCountOut, | ||
void ** | ppDataOut | ||
) |
ma_decoder_config ma_decoder_config_init | ( | ma_format | outputFormat, |
ma_uint32 | outputChannels, | ||
ma_uint32 | outputSampleRate | ||
) |
ma_uint64 ma_decoder_get_length_in_pcm_frames | ( | ma_decoder * | pDecoder | ) |
ma_result ma_decoder_init | ( | ma_decoder_read_proc | onRead, |
ma_decoder_seek_proc | onSeek, | ||
void * | pUserData, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_file | ( | const char * | pFilePath, |
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
Referenced by LoadTrack().
ma_result ma_decoder_init_file_wav | ( | const char * | pFilePath, |
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_flac | ( | ma_decoder_read_proc | onRead, |
ma_decoder_seek_proc | onSeek, | ||
void * | pUserData, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_memory | ( | const void * | pData, |
size_t | dataSize, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_memory_flac | ( | const void * | pData, |
size_t | dataSize, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_memory_mp3 | ( | const void * | pData, |
size_t | dataSize, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_memory_raw | ( | const void * | pData, |
size_t | dataSize, | ||
const ma_decoder_config * | pConfigIn, | ||
const ma_decoder_config * | pConfigOut, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_memory_vorbis | ( | const void * | pData, |
size_t | dataSize, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_memory_wav | ( | const void * | pData, |
size_t | dataSize, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_mp3 | ( | ma_decoder_read_proc | onRead, |
ma_decoder_seek_proc | onSeek, | ||
void * | pUserData, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_raw | ( | ma_decoder_read_proc | onRead, |
ma_decoder_seek_proc | onSeek, | ||
void * | pUserData, | ||
const ma_decoder_config * | pConfigIn, | ||
const ma_decoder_config * | pConfigOut, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_vorbis | ( | ma_decoder_read_proc | onRead, |
ma_decoder_seek_proc | onSeek, | ||
void * | pUserData, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_result ma_decoder_init_wav | ( | ma_decoder_read_proc | onRead, |
ma_decoder_seek_proc | onSeek, | ||
void * | pUserData, | ||
const ma_decoder_config * | pConfig, | ||
ma_decoder * | pDecoder | ||
) |
ma_uint64 ma_decoder_read_pcm_frames | ( | ma_decoder * | pDecoder, |
void * | pFramesOut, | ||
ma_uint64 | frameCount | ||
) |
Referenced by data_callback().
ma_result ma_decoder_seek_to_pcm_frame | ( | ma_decoder * | pDecoder, |
ma_uint64 | frameIndex | ||
) |
Referenced by Miniaudio_Update().
ma_result ma_decoder_uninit | ( | ma_decoder * | pDecoder | ) |
Referenced by Miniaudio_Play(), and Miniaudio_Stop().
void ma_deinterleave_pcm_frames | ( | ma_format | format, |
ma_uint32 | channels, | ||
ma_uint64 | frameCount, | ||
const void * | pInterleavedPCMFrames, | ||
void ** | ppDeinterleavedPCMFrames | ||
) |
ma_device_config ma_device_config_init | ( | ma_device_type | deviceType | ) |
Referenced by Miniaudio_Play().
ma_result ma_device_init | ( | ma_context * | pContext, |
const ma_device_config * | pConfig, | ||
ma_device * | pDevice | ||
) |
Referenced by Miniaudio_Play().
ma_result ma_device_init_ex | ( | const ma_backend | backends[], |
ma_uint32 | backendCount, | ||
const ma_context_config * | pContextConfig, | ||
const ma_device_config * | pConfig, | ||
ma_device * | pDevice | ||
) |
Referenced by Miniaudio_f(), Miniaudio_Pause(), Miniaudio_Stop(), and Miniaudio_Update().
void ma_device_set_stop_callback | ( | ma_device * | pDevice, |
ma_stop_proc | proc | ||
) |
Referenced by Miniaudio_Play(), and Miniaudio_Resume().
Referenced by Miniaudio_Pause().
Referenced by Miniaudio_Play(), and Miniaudio_Stop().
ma_format_converter_config ma_format_converter_config_init | ( | ma_format | formatIn, |
ma_format | formatOut, | ||
ma_uint32 | channels, | ||
ma_format_converter_read_proc | onRead, | ||
void * | pUserData | ||
) |
ma_format_converter_config ma_format_converter_config_init_deinterleaved | ( | ma_format | formatIn, |
ma_format | formatOut, | ||
ma_uint32 | channels, | ||
ma_format_converter_read_deinterleaved_proc | onReadDeinterleaved, | ||
void * | pUserData | ||
) |
ma_format_converter_config ma_format_converter_config_init_new | ( | void | ) |
ma_result ma_format_converter_init | ( | const ma_format_converter_config * | pConfig, |
ma_format_converter * | pConverter | ||
) |
ma_uint64 ma_format_converter_read | ( | ma_format_converter * | pConverter, |
ma_uint64 | frameCount, | ||
void * | pFramesOut, | ||
void * | pUserData | ||
) |
ma_uint64 ma_format_converter_read_deinterleaved | ( | ma_format_converter * | pConverter, |
ma_uint64 | frameCount, | ||
void ** | ppSamplesOut, | ||
void * | pUserData | ||
) |
const char* ma_get_backend_name | ( | ma_backend | backend | ) |
Referenced by Miniaudio_f().
Definition at line 1506 of file miniaudio.h.
Referenced by ma_get_bytes_per_frame().
ma_uint32 ma_get_default_buffer_size_in_frames | ( | ma_performance_profile | performanceProfile, |
ma_uint32 | sampleRate | ||
) |
ma_uint32 ma_get_default_buffer_size_in_milliseconds | ( | ma_performance_profile | performanceProfile | ) |
const char* ma_get_format_name | ( | ma_format | format | ) |
void ma_get_standard_channel_map | ( | ma_standard_channel_map | standardChannelMap, |
ma_uint32 | channels, | ||
ma_channel | channelMap[MA_MAX_CHANNELS] | ||
) |
void ma_interleave_pcm_frames | ( | ma_format | format, |
ma_uint32 | channels, | ||
ma_uint64 | frameCount, | ||
const void ** | ppDeinterleavedPCMFrames, | ||
void * | pInterleavedPCMFrames | ||
) |
const char* ma_log_level_to_string | ( | ma_uint32 | logLevel | ) |
void* ma_malloc | ( | size_t | sz | ) |
ma_result ma_mutex_init | ( | ma_context * | pContext, |
ma_mutex * | pMutex | ||
) |
void ma_pcm_convert | ( | void * | pOut, |
ma_format | formatOut, | ||
const void * | pIn, | ||
ma_format | formatIn, | ||
ma_uint64 | sampleCount, | ||
ma_dither_mode | ditherMode | ||
) |
ma_pcm_converter_config ma_pcm_converter_config_init | ( | ma_format | formatIn, |
ma_uint32 | channelsIn, | ||
ma_uint32 | sampleRateIn, | ||
ma_format | formatOut, | ||
ma_uint32 | channelsOut, | ||
ma_uint32 | sampleRateOut, | ||
ma_pcm_converter_read_proc | onRead, | ||
void * | pUserData | ||
) |
ma_pcm_converter_config ma_pcm_converter_config_init_ex | ( | ma_format | formatIn, |
ma_uint32 | channelsIn, | ||
ma_uint32 | sampleRateIn, | ||
ma_channel | channelMapIn[MA_MAX_CHANNELS], | ||
ma_format | formatOut, | ||
ma_uint32 | channelsOut, | ||
ma_uint32 | sampleRateOut, | ||
ma_channel | channelMapOut[MA_MAX_CHANNELS], | ||
ma_pcm_converter_read_proc | onRead, | ||
void * | pUserData | ||
) |
ma_pcm_converter_config ma_pcm_converter_config_init_new | ( | void | ) |
ma_result ma_pcm_converter_init | ( | const ma_pcm_converter_config * | pConfig, |
ma_pcm_converter * | pDSP | ||
) |
ma_uint64 ma_pcm_converter_read | ( | ma_pcm_converter * | pDSP, |
void * | pFramesOut, | ||
ma_uint64 | frameCount | ||
) |
ma_result ma_pcm_converter_set_input_sample_rate | ( | ma_pcm_converter * | pDSP, |
ma_uint32 | sampleRateOut | ||
) |
ma_result ma_pcm_converter_set_output_sample_rate | ( | ma_pcm_converter * | pDSP, |
ma_uint32 | sampleRateOut | ||
) |
ma_result ma_pcm_converter_set_sample_rate | ( | ma_pcm_converter * | pDSP, |
ma_uint32 | sampleRateIn, | ||
ma_uint32 | sampleRateOut | ||
) |
void ma_pcm_f32_to_s16 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_f32_to_s24 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_f32_to_s32 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_f32_to_u8 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
ma_result ma_pcm_rb_acquire_read | ( | ma_pcm_rb * | pRB, |
ma_uint32 * | pSizeInFrames, | ||
void ** | ppBufferOut | ||
) |
ma_result ma_pcm_rb_acquire_write | ( | ma_pcm_rb * | pRB, |
ma_uint32 * | pSizeInFrames, | ||
void ** | ppBufferOut | ||
) |
ma_result ma_pcm_rb_init | ( | ma_format | format, |
ma_uint32 | channels, | ||
ma_uint32 | bufferSizeInFrames, | ||
void * | pOptionalPreallocatedBuffer, | ||
ma_pcm_rb * | pRB | ||
) |
ma_result ma_pcm_rb_init_ex | ( | ma_format | format, |
ma_uint32 | channels, | ||
ma_uint32 | subbufferSizeInFrames, | ||
ma_uint32 | subbufferCount, | ||
ma_uint32 | subbufferStrideInFrames, | ||
void * | pOptionalPreallocatedBuffer, | ||
ma_pcm_rb * | pRB | ||
) |
void ma_pcm_s16_to_f32 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s16_to_s24 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s16_to_s32 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s16_to_u8 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s24_to_f32 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s24_to_s16 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s24_to_s32 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s24_to_u8 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s32_to_f32 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s32_to_s16 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s32_to_s24 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_s32_to_u8 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_u8_to_f32 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_u8_to_s16 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_u8_to_s24 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
void ma_pcm_u8_to_s32 | ( | void * | pOut, |
const void * | pIn, | ||
ma_uint64 | count, | ||
ma_dither_mode | ditherMode | ||
) |
size_t ma_rb_get_subbuffer_offset | ( | ma_rb * | pRB, |
size_t | subbufferIndex | ||
) |
size_t ma_rb_get_subbuffer_size | ( | ma_rb * | pRB | ) |
size_t ma_rb_get_subbuffer_stride | ( | ma_rb * | pRB | ) |
ma_result ma_rb_init_ex | ( | size_t | subbufferSizeInBytes, |
size_t | subbufferCount, | ||
size_t | subbufferStrideInBytes, | ||
void * | pOptionalPreallocatedBuffer, | ||
ma_rb * | pRB | ||
) |
ma_result ma_sine_wave_init | ( | double | amplitude, |
double | period, | ||
ma_uint32 | sampleRate, | ||
ma_sine_wave * | pSineWave | ||
) |
ma_uint64 ma_sine_wave_read_f32 | ( | ma_sine_wave * | pSineWave, |
ma_uint64 | count, | ||
float * | pSamples | ||
) |
ma_uint64 ma_sine_wave_read_f32_ex | ( | ma_sine_wave * | pSineWave, |
ma_uint64 | frameCount, | ||
ma_uint32 | channels, | ||
ma_stream_layout | layout, | ||
float ** | ppFrames | ||
) |
ma_src_config ma_src_config_init | ( | ma_uint32 | sampleRateIn, |
ma_uint32 | sampleRateOut, | ||
ma_uint32 | channels, | ||
ma_src_read_deinterleaved_proc | onReadDeinterleaved, | ||
void * | pUserData | ||
) |
ma_src_config ma_src_config_init_new | ( | void | ) |
ma_result ma_src_init | ( | const ma_src_config * | pConfig, |
ma_src * | pSRC | ||
) |
ma_uint64 ma_src_read_deinterleaved | ( | ma_src * | pSRC, |
ma_uint64 | frameCount, | ||
void ** | ppSamplesOut, | ||
void * | pUserData | ||
) |