@@ -135,7 +135,7 @@ Resource Manager Data Source Flags
...
@@ -135,7 +135,7 @@ Resource Manager Data Source Flags
==================================
==================================
The flags below are used for controlling how the resource manager should handle the loading and caching of data sources.
The flags below are used for controlling how the resource manager should handle the loading and caching of data sources.
*/
*/
#define MA_DATA_SOURCE_FLAG_DECODE 0x00000001 /* Decode data before storing in memory. When set, decoding happens on the resource manager thread rather than the mixing thread. Results in faster mixing, but higher memory usage. */
#define MA_DATA_SOURCE_FLAG_DECODE 0x00000001 /* Decode data before storing in memory. When set, decoding is done at the resource manager level rather than the mixing thread. Results in faster mixing, but higher memory usage. */
#define MA_DATA_SOURCE_FLAG_STREAM 0x00000002 /* When set, does not load the entire data source in memory. Disk I/O will happen on the resource manager thread. */
#define MA_DATA_SOURCE_FLAG_STREAM 0x00000002 /* When set, does not load the entire data source in memory. Disk I/O will happen on the resource manager thread. */
#define MA_DATA_SOURCE_FLAG_ASYNC 0x00000004 /* When set, the resource manager will load the data source asynchronously. */
#define MA_DATA_SOURCE_FLAG_ASYNC 0x00000004 /* When set, the resource manager will load the data source asynchronously. */
@@ -1809,8 +1867,7 @@ MA_API ma_result ma_resource_manager_create_data_source(ma_resource_manager* pRe
...
@@ -1809,8 +1867,7 @@ MA_API ma_result ma_resource_manager_create_data_source(ma_resource_manager* pRe
ma_uint64frameCount;
ma_uint64frameCount;
void*pDecodedData;
void*pDecodedData;
//config = ma_decoder_config_init(ma_format_unknown, 0, 0); /* For now we'll decode into native format, but we may want to change this to the standard output format. */
config=ma_decoder_config_init(pResourceManager->config.decodedFormat,0,pResourceManager->config.decodedSampleRate);/* Need to keep the native channel count because we'll be using that for spatialization. */
MA_ASSERT(MA_FALSE);/* Should never happen. Trigger an assert for debugging, but don't stop uninitializing in production to ensure we free memory down below. */
MA_ASSERT(MA_FALSE);/* Should never happen. Trigger an assert for debugging, but don't stop uninitializing in production to ensure we free memory down below. */
}
}
/* Any in-place sounds need to be uninitialized. */