Commit fdae0921 authored by David Reid's avatar David Reid

Refactoring work on the WinMM backend.

parent 91566528
This diff is collapsed.
...@@ -63,7 +63,7 @@ int main(int argc, char** argv) ...@@ -63,7 +63,7 @@ int main(int argc, char** argv)
#endif #endif
ma_backend backend = ma_backend_pulseaudio; ma_backend backend = ma_backend_winmm;
ma_context_config contextConfig = ma_context_config_init(); ma_context_config contextConfig = ma_context_config_init();
contextConfig.logCallback = log_callback; contextConfig.logCallback = log_callback;
...@@ -78,6 +78,7 @@ int main(int argc, char** argv) ...@@ -78,6 +78,7 @@ int main(int argc, char** argv)
/* ALSA debugging. */ /* ALSA debugging. */
#if defined(MA_SUPPORT_ALSA)
if (backend == ma_backend_alsa) { if (backend == ma_backend_alsa) {
ma_device_info* pPlaybackDevices; ma_device_info* pPlaybackDevices;
ma_uint32 playbackDeviceCount; ma_uint32 playbackDeviceCount;
...@@ -94,6 +95,7 @@ int main(int argc, char** argv) ...@@ -94,6 +95,7 @@ int main(int argc, char** argv)
printf(" ALSA Device ID: %s\n", pCaptureDevices[iDevice].id.alsa); printf(" ALSA Device ID: %s\n", pCaptureDevices[iDevice].id.alsa);
} }
} }
#endif
ma_device_config deviceConfig = ma_device_config_init(ma_device_type_duplex); ma_device_config deviceConfig = ma_device_config_init(ma_device_type_duplex);
......
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