Commit ab2f1281 authored by David Reid's avatar David Reid

Minor fixes to documentation.

parent 72c95238
...@@ -751,15 +751,14 @@ struct mal_device ...@@ -751,15 +751,14 @@ struct mal_device
mal_uint32 _dspFrameCount; // Internal use only. Used when running the device -> DSP -> client pipeline. See mal_device__on_read_from_device(). mal_uint32 _dspFrameCount; // Internal use only. Used when running the device -> DSP -> client pipeline. See mal_device__on_read_from_device().
const mal_uint8* _dspFrames; // ^^^ AS ABOVE ^^^ const mal_uint8* _dspFrames; // ^^^ AS ABOVE ^^^
union union
{ {
#ifdef MAL_SUPPORT_WASAPI #ifdef MAL_SUPPORT_WASAPI
struct struct
{ {
/*IAudioClient*/ mal_ptr pAudioClient; /*IAudioClient**/ mal_ptr pAudioClient;
/*IAudioRenderClient */ mal_ptr pRenderClient; /*IAudioRenderClient**/ mal_ptr pRenderClient;
/*IAudioCaptureClient */ mal_ptr pCaptureClient; /*IAudioCaptureClient**/ mal_ptr pCaptureClient;
/*HANDLE*/ mal_handle hStopEvent; /*HANDLE*/ mal_handle hStopEvent;
mal_bool32 breakFromMainLoop; mal_bool32 breakFromMainLoop;
} wasapi; } wasapi;
...@@ -798,8 +797,8 @@ struct mal_device ...@@ -798,8 +797,8 @@ struct mal_device
struct struct
{ {
/*snd_pcm_t**/ mal_ptr pPCM; /*snd_pcm_t**/ mal_ptr pPCM;
mal_bool32 isUsingMMap; mal_bool32 isUsingMMap : 1;
mal_bool32 breakFromMainLoop; mal_bool32 breakFromMainLoop : 1;
void* pIntermediaryBuffer; void* pIntermediaryBuffer;
} alsa; } alsa;
#endif #endif
...@@ -896,7 +895,7 @@ mal_result mal_context_init(mal_backend backends[], mal_uint32 backendCount, mal ...@@ -896,7 +895,7 @@ mal_result mal_context_init(mal_backend backends[], mal_uint32 backendCount, mal
// Uninitializes a context. // Uninitializes a context.
// //
// Results are undefined if you call this while a related is still active. // Results are undefined if you call this while any device created by this context is still active.
// //
// Return Value: // Return Value:
// - MAL_SUCCESS if successful. // - MAL_SUCCESS if successful.
...@@ -1140,6 +1139,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format); ...@@ -1140,6 +1139,7 @@ mal_uint32 mal_get_sample_size_in_bytes(mal_format format);
// The default channel mapping is based on the channel count, as per the table below. Note that these // The default channel mapping is based on the channel count, as per the table below. Note that these
// can be freely changed after this function returns if you are needing something in particular. // can be freely changed after this function returns if you are needing something in particular.
// //
// |---------------|------------------------------|
// | Channel Count | Mapping | // | Channel Count | Mapping |
// |---------------|------------------------------| // |---------------|------------------------------|
// | 1 (Mono) | 0: MAL_CHANNEL_FRONT_CENTER | // | 1 (Mono) | 0: MAL_CHANNEL_FRONT_CENTER |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment