mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Rename ma_engine_config_init_default() to ma_engine_config_init().
This commit is contained in:
@@ -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
|
|||||||
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
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
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)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
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
|
|||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user