Commit 54aae74d authored by David Reid's avatar David Reid

Rename ma_engine_config_init_default() to ma_engine_config_init().

parent 8567a4bc
...@@ -59,7 +59,7 @@ int main(int argc, char** argv) ...@@ -59,7 +59,7 @@ int main(int argc, char** argv)
return -1; return -1;
} }
engineConfig = ma_engine_config_init_default(); engineConfig = ma_engine_config_init();
engineConfig.pResourceManager = &resourceManager; engineConfig.pResourceManager = &resourceManager;
result = ma_engine_init(&engineConfig, &engine); result = ma_engine_init(&engineConfig, &engine);
......
...@@ -1885,7 +1885,7 @@ typedef struct ...@@ -1885,7 +1885,7 @@ typedef struct
ma_vfs* pResourceManagerVFS; /* A pointer to a pre-allocated VFS object to use with the resource manager. This is ignored if pResourceManager is not NULL. */ ma_vfs* pResourceManagerVFS; /* A pointer to a pre-allocated VFS object to use with the resource manager. This is ignored if pResourceManager is not NULL. */
} ma_engine_config; } ma_engine_config;
MA_API ma_engine_config ma_engine_config_init_default(void); MA_API ma_engine_config ma_engine_config_init(void);
struct ma_engine struct ma_engine
...@@ -7334,7 +7334,7 @@ static ma_result ma_resource_manager_data_buffer_node_decode_next_page(ma_resour ...@@ -7334,7 +7334,7 @@ static ma_result ma_resource_manager_data_buffer_node_decode_next_page(ma_resour
}; };
} }
if (result == MA_SUCCESS && (framesRead < framesToTryReading || framesRead == 0)) { if (result == MA_SUCCESS && framesRead == 0) {
result = MA_AT_END; result = MA_AT_END;
} }
...@@ -11916,7 +11916,7 @@ MA_API ma_sound_group_config ma_sound_group_config_init(void) ...@@ -11916,7 +11916,7 @@ MA_API ma_sound_group_config ma_sound_group_config_init(void)
} }
MA_API ma_engine_config ma_engine_config_init_default(void) MA_API ma_engine_config ma_engine_config_init(void)
{ {
ma_engine_config config; ma_engine_config config;
...@@ -11975,7 +11975,7 @@ MA_API ma_result ma_engine_init(const ma_engine_config* pConfig, ma_engine* pEng ...@@ -11975,7 +11975,7 @@ MA_API ma_result ma_engine_init(const ma_engine_config* pConfig, ma_engine* pEng
if (pConfig != NULL) { if (pConfig != NULL) {
engineConfig = *pConfig; engineConfig = *pConfig;
} else { } else {
engineConfig = ma_engine_config_init_default(); engineConfig = ma_engine_config_init();
} }
pEngine->pResourceManager = engineConfig.pResourceManager; pEngine->pResourceManager = engineConfig.pResourceManager;
......
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