diff --git a/website/.webplate/config.webplate b/website/.webplate/config.webplate new file mode 100644 index 00000000..a52d6bbd --- /dev/null +++ b/website/.webplate/config.webplate @@ -0,0 +1,5 @@ +author = "David Reid" +google-analytics-tracking-id = "UA-81135233-2" + +miniaudio-header = "{{ include \".webplate/miniaudio-header.html\" }}" +miniaudio-footer = "{{ include \".webplate/miniaudio-footer.html\" }}" \ No newline at end of file diff --git a/website/.webplate/miniaudio-footer.html b/website/.webplate/miniaudio-footer.html new file mode 100644 index 00000000..78e9198d --- /dev/null +++ b/website/.webplate/miniaudio-footer.html @@ -0,0 +1,15 @@ + + + + + + + +
+ +
+ Copyright © {{ year }} David Reid
+ Developed by David Reid - davidreidsoftware@gmail.com +
+ + diff --git a/website/.webplate/miniaudio-header.html b/website/.webplate/miniaudio-header.html new file mode 100644 index 00000000..7bf2da39 --- /dev/null +++ b/website/.webplate/miniaudio-header.html @@ -0,0 +1,41 @@ + + + + miniaudio - A single file audio playback and capture library. + + + + + +{{ google-analytics }} + + + + + +
+
+ + + + + + + + +
+
\ No newline at end of file diff --git a/website/CNAME b/website/CNAME new file mode 100644 index 00000000..2bb96a05 --- /dev/null +++ b/website/CNAME @@ -0,0 +1 @@ +miniaud.io \ No newline at end of file diff --git a/website/css/main.css b/website/css/main.css new file mode 100644 index 00000000..5619ef57 --- /dev/null +++ b/website/css/main.css @@ -0,0 +1,108 @@ +body{ + font-family:sans-serif; + font-size:11pt; + line-height:18pt; + background-color:#003800; +} + +a { + text-decoration:none; + color:#28f; +} +a:hover { + text-decoration:underline; + color:#26d; +} + +.a-download { + text-decoration:none; + color:#ddd; + border:solid 1px #000; + border-radius:4px; + padding:16px 32px; + background-color:#003800; +} +.a-download:hover { + background-color:#003000; + text-decoration:none; + color:#ddd; +} + +.a-sublink { + font-size:11pt; +} + +#preview { + font-family:monospace; + font-size:10pt; + text-align:left; +} + +.footer-links { + margin: 0px; + margin-bottom: 10px; + padding: 0px; +} +.footer-links li { + display: inline; + padding: 0 2px; +} +.footer-links li:first-child { + padding-left: 0; +} + +.feature-header { + color:#666; + font-size: 24pt; + font-weight:bold; +} +.feature-header2 { + color:#444; + font-size: 1.5em; + font-weight:bold; + /*margin-bottom:1em;*/ + line-height: 1em; + text-align:left; +} + +.header-link-table { +} +.header-link-table td { + padding:0.5em 0; + padding-right:2em; + vertical-align:center; +} +.header-link-table a { + color:#e0d7cf; + text-decoration:none; +} +.header-link-table a:hover { + color:#ffffff; +} + +.footer-link { + color:#e0d7cf; + text-decoration:none; +} +.footer-link:hover { + color:#ffffff; +} + + + +.mobile-main-link { + text-align:left; + background-color:#e0d7cf; + color:#036; + border-bottom:solid 1px #333; + padding-left:16px; +} +.mobile-main-link a { + display:block; + padding-top:8px; + padding-bottom:8px; + color:#036; + width:100%; + height:100%; + max-width:100%; +} \ No newline at end of file diff --git a/website/docs/examples/simple_playback.html b/website/docs/examples/simple_playback.html new file mode 100644 index 00000000..e69de29b diff --git a/website/docs/index.html b/website/docs/index.html new file mode 100644 index 00000000..d2dd7624 --- /dev/null +++ b/website/docs/index.html @@ -0,0 +1,3 @@ +{{ miniaudio-header }} + +{{ miniaudio-footer }} \ No newline at end of file diff --git a/website/docs/ma_context_init.html b/website/docs/ma_context_init.html new file mode 100644 index 00000000..e69de29b diff --git a/website/docs/ma_device_init.html b/website/docs/ma_device_init.html new file mode 100644 index 00000000..e69de29b diff --git a/website/img/Discord-Logo-White.svg b/website/img/Discord-Logo-White.svg new file mode 100644 index 00000000..4613aa9a --- /dev/null +++ b/website/img/Discord-Logo-White.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website/img/favicon.png b/website/img/favicon.png new file mode 100644 index 00000000..d36f6fbd Binary files /dev/null and b/website/img/favicon.png differ diff --git a/website/img/github_white.png b/website/img/github_white.png new file mode 100644 index 00000000..628da97c Binary files /dev/null and b/website/img/github_white.png differ diff --git a/website/img/logo1_large.png b/website/img/logo1_large.png new file mode 100644 index 00000000..1f9f0798 Binary files /dev/null and b/website/img/logo1_large.png differ diff --git a/website/img/logo1_large_white.png b/website/img/logo1_large_white.png new file mode 100644 index 00000000..098d728e Binary files /dev/null and b/website/img/logo1_large_white.png differ diff --git a/website/img/miniaudio_wide.png b/website/img/miniaudio_wide.png new file mode 100644 index 00000000..fd9162b5 Binary files /dev/null and b/website/img/miniaudio_wide.png differ diff --git a/website/img/twitter_white.png b/website/img/twitter_white.png new file mode 100644 index 00000000..379e215f Binary files /dev/null and b/website/img/twitter_white.png differ diff --git a/website/index.html b/website/index.html new file mode 100644 index 00000000..21fa63de --- /dev/null +++ b/website/index.html @@ -0,0 +1,150 @@ +{{ miniaudio-header }} + + + +
+
+
A single file audio playback and capture library.
+
+ Download miniaudio.h +
+
+ +
+
+
+ miniaudio is a single file audio playback and capture library written in C. Written from scratch, it has no + external dependencies with the exception of the C standard library and necessary platform-specific backends. +
+ + + + + + + +
+
It Just Works
+
+ Just add to your source tree and go. There's no need to install any dependencies or development + packages, nor are there any build systems to waste time on. +
+
+
Cross Platform
+
+ miniaudio works on all the major desktop and mobile platforms, including Windows, macOS, + Linux, BSD, iOS, Android and Web (via Emscripten). +
+
+
Simple
+
+ miniaudio has a simple, yet flexible low-level API that gets out of your way. Just initialize a + device and start sending audio data via a callback. +
+
+ +
+ And best of all, it's free and open-source! +
+
+ You can find miniaudio on GitHub +
+
+ +
+
Features
+ + + + + +
+
    +
  • Supports playback, capture, full-duplex and loopback (WASAPI only).
  • +
  • Device enumeration for connecting to specific devices, not just defaults.
  • +
  • Connect to multiple devices at once.
  • +
  • Shared and exclusive mode on supported backends.
  • +
  • Backend-specific configuration options.
  • +
  • Device capability querying.
  • +
  • Automatic data conversion between your application and the internal device.
  • +
  • Sample format conversion with optional dithering.
  • +
  • Channel conversion and channel mapping.
  • +
  • Resampling with support for multiple algorithms. +
      +
    • Simple linear resampling with anti-aliasing.
    • +
    • Optional Speex resampling (must opt-in).
    • +
    +
  • +
  • Filters. +
      +
    • Biquad
    • +
    • Low-pass (first, second and high order)
    • +
    • High-pass (first, second and high order)
    • +
    • Second order band-pass
    • +
    • Second order notch
    • +
    • Second order peaking
    • +
    • Second order low shelf
    • +
    • Second order high shelf
    • +
    +
  • +
  • Waveform generation. +
      +
    • Sine
    • +
    • Square
    • +
    • Triangle
    • +
    • Sawtooth
    • +
    +
  • +
  • Noise generation. +
      +
    • White
    • +
    • Pink
    • +
    • Brownian
    • +
    +
  • +
  • Decoding (requires external single-file libraries). +
      +
    • WAV via dr_wav
    • +
    • FLAC via dr_flac
    • +
    • MP3 via dr_mp3
    • +
    • Vorbis via stb_vorbis
    • +
    +
  • +
  • Encoding (requires external single-file libraries). +
      +
    • WAV via dr_wav
    • +
    +
  • +
  • Lock free ring buffer (single producer, single consumer).
  • +
+
+
    +
  • Your choice of either public domain or MIT No Attribution.
  • +
  • Entirely contained within a single file for easy integration into your source tree.
  • +
  • No external dependencies except for the C standard library and backend libraries.
  • +
  • Written in C and compilable as C++, enabling miniaudio to work on almost all compilers.
  • +
  • Supports all major desktop and mobile platforms, with multiple backends for maximum compatibility. +
      +
    • WASAPI (Windows Vista+)
    • +
    • DirectSound (Windows XP+)
    • +
    • WinMM (Windows)
    • +
    • Core Audio (macOS, iOS)
    • +
    • ALSA (Linux)
    • +
    • PulseAudio (Cross platform, disabled on Windows, BSD and Android)
    • +
    • JACK (Cross platform, disabled on BSD and Android)
    • +
    • sndio (OpenBSD)
    • +
    • audio(4) (NetBSD, OpenBSD)
    • +
    • OSS (FreeBSD)
    • +
    • AAudio (Android 8+)
    • +
    • OpenSL|ES (Android API level 16+)
    • +
    • Web Audio (Web, via Emscripten)
    • +
    • Null (Cross platform, not used on Web)
    • +
    +
  • +
+
+
+
+{{ miniaudio-footer }}