adamstark-audiofile
brew install adamstark-audiofile
v1.1.4
MIT
C++ Audio File Library by Adam Stark
34
30-day installs · #5552
56
90-day · #6991
178
365-day · #7652
1.1k
★ GitHub stars · updated 10mo ago
GitHub topics
aif
audio
audio-files
audio-formats
file-format
read
wav
write
Links
- https://github.com/adamstark/AudioFile
- GitHub: adamstark/AudioFile
- Brew formula source: Formula/a/adamstark-audiofile.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "C++ Audio File Library by Adam Stark",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:35:17+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "adamstark-audiofile",
"github_default_branch": "master",
"github_last_commit_at": "2025-10-15T20:42:10Z",
"github_readme_excerpt": "# AudioFile\n\n\u003c!-- Version and License Badges --\u003e\n\n\n\n\n\nA simple header-only C++ library for reading and writing audio files.\n\nCurrent supported formats:\n\n- WAV\n- AIFF\n\n## Author\n\nAudioFile is written and maintained by Adam Stark.\n\n[http://www.adamstark.co.uk](http://www.adamstark.co.uk)\n\n## Usage\n\n### Create an AudioFile object:\n\n #include \"AudioFile.h\"\n\n AudioFile\u003cdouble\u003e audioFile;\n\n### Load an audio file:\n\n audioFile.load (\"/path/to/my/audiofile.wav\");\n\n### Get some information about the loaded audio:\n\n int sampleRate = audioFile.getSampleRate();\n int bitDepth = audioFile.getBitDepth();\n\n int numSamples = audioFile.getNumSamplesPerChannel();\n double lengthInSeconds = audioFile.getLengthInSeconds();\n\n int numChannels = audioFile.getNumChannels();\n bool isMono = audioFile.isMono();\n bool isStereo = audioFile.isStereo();\n\n // or, just use this quick shortcut to print a summary to the console\n audioFile.printSummary();\n\n### Access the samples directly:\n\n int channel = 0;\n int numSamples = audioFile.getNumSamplesPerChannel();\n\n for (int i = 0; i \u003c numSamples; i++)\n {\n double currentSample = audioFile.samples[channel][i];\n }\n\n### Replace the AudioFile audio buffer with another\n\n // 1. Create an AudioBuffer\n // (BTW, AudioBuffer is just a vector of vectors)\n\n AudioFile\u003cdouble\u003e::AudioBuffer buffer;\n\n // 2. Set to (e.g.) two channels\n buffer.resize (2);\n\n // 3. Set number of samples per channel\n buffer[0].resize (100000);\n buffer[1].resize (100000);\n\n // 4. do something here to fill the buffer with samples, e.g.\n\n #include \u003cmath.h\u003e // somewhere earler (for M_PI and sinf())\n\n // then...\n\n int numChannels = 2;\n int numSamplesPerChannel = 10",
"github_repo": "adamstark/AudioFile",
"github_stars": 1138,
"github_topics": [
"aif",
"audio",
"audio-files",
"audio-formats",
"file-format",
"read",
"wav",
"write"
],
"homepage": "https://github.com/adamstark/AudioFile",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 34,
"installs_365d": 178,
"installs_90d": 56,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "adamstark-audiofile",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 5552,
"rank_365d": 7652,
"rank_90d": 6991,
"raw_hash": "8886eacb115692a7",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/a/adamstark-audiofile.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "1.1.4",
"versioned_formulae": [],
"why_use_this": null
}