From e2d4d936dfbe011fe59a61047b4396271440cfbb Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 15 Jul 2020 21:32:30 +1000 Subject: [PATCH] Stop version controlling some documentation templates for now. --- website/docs/examples/simple_playback.html | 70 ---------------------- website/docs/index.html | 7 --- 2 files changed, 77 deletions(-) delete mode 100644 website/docs/examples/simple_playback.html delete mode 100644 website/docs/index.html diff --git a/website/docs/examples/simple_playback.html b/website/docs/examples/simple_playback.html deleted file mode 100644 index 2c2fb91c..00000000 --- a/website/docs/examples/simple_playback.html +++ /dev/null @@ -1,70 +0,0 @@ -{{ miniaudio-header }} - - -
-
-#define MINIAUDIO_IMPLEMENTATION
-#include "../miniaudio.h"
-
-#include <stdio.h>
-
-void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uint32 frameCount)
-{
-    ma_decoder* pDecoder = (ma_decoder*)pDevice->pUserData;
-    if (pDecoder == NULL) {
-        return;
-    }
-
-    ma_decoder_read_pcm_frames(pDecoder, pOutput, frameCount);
-
-    (void)pInput;
-}
-
-int main(int argc, char** argv)
-{
-    ma_result result;
-    ma_decoder decoder;
-    ma_device_config deviceConfig;
-    ma_device device;
-
-    if (argc < 2) {
-        printf("No input file.\n");
-        return -1;
-    }
-
-    result = ma_decoder_init_file(argv[1], NULL, &decoder);
-    if (result != MA_SUCCESS) {
-        return -2;
-    }
-
-    deviceConfig = ma_device_config_init(ma_device_type_playback);
-    deviceConfig.playback.format   = decoder.outputFormat;
-    deviceConfig.playback.channels = decoder.outputChannels;
-    deviceConfig.sampleRate        = decoder.outputSampleRate;
-    deviceConfig.dataCallback      = data_callback;
-    deviceConfig.pUserData         = &decoder;
-
-    if (ma_device_init(NULL, &deviceConfig, &device) != MA_SUCCESS) {
-        printf("Failed to open playback device.\n");
-        ma_decoder_uninit(&decoder);
-        return -3;
-    }
-
-    if (ma_device_start(&device) != MA_SUCCESS) {
-        printf("Failed to start playback device.\n");
-        ma_device_uninit(&device);
-        ma_decoder_uninit(&decoder);
-        return -4;
-    }
-
-    printf("Press Enter to quit...");
-    getchar();
-
-    ma_device_uninit(&device);
-    ma_decoder_uninit(&decoder);
-
-    return 0;
-}
-
-{{ miniaudio-footer }} \ No newline at end of file diff --git a/website/docs/index.html b/website/docs/index.html deleted file mode 100644 index 8c1a4c31..00000000 --- a/website/docs/index.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ miniaudio-header }} - - -
-
-{{ miniaudio-footer }} \ No newline at end of file