Commit d0bfcf0c authored by David Reid's avatar David Reid

Rename ma_engine.h to miniaudio_engine.h.

parent 3c734f93
......@@ -18,7 +18,7 @@ threads to manage internally and how to implement your own custom job thread.
#define MA_NO_ENGINE /* We're intentionally not using the ma_engine API here. */
#define MINIAUDIO_IMPLEMENTATION
#include "../../miniaudio.h"
#include "../ma_engine.h"
#include "../miniaudio_engine.h"
static ma_mixer g_mixer;
static ma_resource_manager_data_source g_dataSources[16];
......@@ -37,10 +37,10 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin
{
size_t iDataSource;
for (iDataSource = 0; iDataSource < g_dataSourceCount; iDataSource += 1) {
ma_mixer_mix_data_source(&g_mixer, &g_dataSources[iDataSource], frameCountIn, NULL, 1, NULL, MA_TRUE);
ma_mixer_mix_data_source(&g_mixer, &g_dataSources[iDataSource], 0, frameCountIn, NULL, 1, NULL, MA_TRUE);
}
}
ma_mixer_end(&g_mixer, NULL, ma_offset_ptr(pOutput, framesProcessed * bpf));
ma_mixer_end(&g_mixer, NULL, ma_offset_ptr(pOutput, framesProcessed * bpf), 0);
framesProcessed += (ma_uint32)frameCountOut; /* Safe cast. */
}
......
......@@ -4,7 +4,7 @@
#define MA_DEBUG_OUTPUT
#define MA_IMPLEMENTATION
#include "../miniaudio.h"
#include "ma_engine.h"
#include "miniaudio_engine.h"
typedef struct
{
......
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