Skip to content

ALC_MAC_OSX_CONVERT_DATA_UPON_LOADING

openalext edited this page Dec 19, 2015 · 2 revisions
***** ALC_MAC_OSX_CONVERT_DATA_UPON_LOADING
This extension allows the caller to tell OpenAL to preconvert to the native CoreAudio format, the audio data passed to the 
library with the alBufferData() call. Preconverting the audio data, reduces CPU usage by removing an audio data conversion 
(per source) at render time at the expense of a larger memory footprint.

/*  
  Convert Data When Loading.  
  Default false, currently applies only to monophonic sounds. Use with alEnable()/alDisable()
*/
  #define ALC_MAC_OSX_CONVERT_DATA_UPON_LOADING           0xF001

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ALC_EXT_MAC_OSX
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

typedef ALvoid (*alcMacOSXRenderingQualityProcPtr) (ALint value);
typedef ALvoid (*alMacOSXRenderChannelCountProcPtr) (ALint value);
typedef ALvoid (*alcMacOSXMixerMaxiumumBussesProcPtr) (ALint value);
typedef ALvoid (*alcMacOSXMixerOutputRateProcPtr) (ALdouble value);

typedef ALint (*alcMacOSXGetRenderingQualityProcPtr) ();
typedef ALint (*alMacOSXGetRenderChannelCountProcPtr) ();
typedef ALint (*alcMacOSXGetMixerMaxiumumBussesProcPtr) ();
typedef ALdouble (*alcMacOSXGetMixerOutputRateProcPtr) ();

/* Render Quality. Used with alcMacOSXRenderingQuality() */
  
  #define ALC_MAC_OSX_SPATIAL_RENDERING_QUALITY_HIGH      'rqhi'
  #define ALC_MAC_OSX_SPATIAL_RENDERING_QUALITY_LOW   'rdlo'

/*  
  Render Channels. Used with alMacOSXRenderChannelCount()
  Allows a user to force OpenAL to render to stereo, regardless of the audio hardware being used
*/
  #define ALC_MAC_OSX_RENDER_CHANNEL_COUNT_STEREO         'rcst'
  #define ALC_MAC_OSX_RENDER_CHANNEL_COUNT_MULTICHANNEL   'rcmc'