Clean up whitespace.

This commit is contained in:
David Reid
2017-12-03 17:09:23 +10:00
parent 5d0705b34e
commit 35af204e21
7 changed files with 553 additions and 553 deletions
+7 -7
View File
@@ -73,7 +73,7 @@ mal_uint32 on_send_frames_to_device(mal_device* pDevice, mal_uint32 frameCount,
if (pWav == NULL) {
return 0;
}
return (mal_uint32)drwav_read_s16(pWav, frameCount * pDevice->channels, (mal_int16*)pSamples) / pDevice->channels;
}
@@ -93,12 +93,12 @@ int main(int argc, char** argv)
mal_context context;
if (mal_context_init(NULL, 0, NULL, &context) != MAL_SUCCESS) {
printf("Failed to initialize context.\n");
drwav_uninit(&wav);
drwav_uninit(&wav);
return -3;
}
mal_device_config config = mal_device_config_init_playback(mal_format_s16, wav.channels, wav.sampleRate, on_send_frames_to_device);
mal_device device;
if (mal_device_init(&context, mal_device_type_playback, NULL, &config, &wav, &device) != MAL_SUCCESS) {
printf("Failed to open playback device.\n");
@@ -114,14 +114,14 @@ int main(int argc, char** argv)
drwav_uninit(&wav);
return -5;
}
printf("Press Enter to quit...");
getchar();
mal_device_uninit(&device);
mal_context_uninit(&context);
drwav_uninit(&wav);
return 0;
}
```