[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6387":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":47,"readmeContent":48,"aiSummary":49,"trendingCount":16,"starSnapshotCount":16,"syncStatus":50,"lastSyncTime":51,"discoverSource":52},6387,"miniaudio","mackron\u002Fminiaudio","mackron","Audio playback and capture library written in C, in a single source file.","https:\u002F\u002Fminiaud.io",null,"C",6891,570,99,8,0,9,31,150,36,107.77,"Other",false,"master",true,[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"android","audio","audio-library","bsd","capture","decoding","emscripten","flac","ios","linux","macos","mp3","osx","playback","public-domain","recording","vorbis","wasapi","wav","windows","2026-06-12 04:00:28","\u003Ch1 align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fminiaud.io\">\u003Cimg src=\"https:\u002F\u002Fminiaud.io\u002Fimg\u002Fminiaudio_wide.png\" alt=\"miniaudio\" width=\"1280\">\u003C\u002Fa>\n    \u003Cbr>\n\u003C\u002Fh1>\n\n\u003Ch4 align=\"center\">An audio playback and capture library in a single source file.\u003C\u002Fh4>\n\n\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002F9vpqbjU\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F712952679415939085?label=discord&logo=discord&style=flat-square\" alt=\"discord\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fx.com\u002Fmackron\">\u003Cimg alt=\"x\" src=\"https:\u002F\u002Fimg.shields.io\u002Ftwitter\u002Furl?url=https%3A%2F%2Fx.com%2Fmackron&style=flat-square&logo=x&label=%40mackron\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n    \u003Ca href=\"#features\">Features\u003C\u002Fa> -\n    \u003Ca href=\"#examples\">Examples\u003C\u002Fa> -\n    \u003Ca href=\"#building\">Building\u003C\u002Fa> -\n    \u003Ca href=\"#documentation\">Documentation\u003C\u002Fa> -\n    \u003Ca href=\"#supported-platforms\">Supported Platforms\u003C\u002Fa> -\n    \u003Ca href=\"#security\">Security\u003C\u002Fa> -\n    \u003Ca href=\"#license\">License\u003C\u002Fa>\n\u003C\u002Fp>\n\nminiaudio is written in C with no dependencies except the standard library and should compile clean on all major\ncompilers without the need to install any additional development packages. All major desktop and mobile platforms\nare supported.\n\n\nFeatures\n========\n- Simple build system with no external dependencies.\n- Simple and flexible API.\n- Low-level API for direct access to raw audio data.\n- High-level API for sound management, mixing, effects and optional 3D spatialization.\n- Flexible node graph system for advanced mixing and effect processing.\n- Resource management for loading sound files.\n- Decoding, with built-in support for WAV, FLAC, and MP3, in addition to being able to plug in custom decoders.\n- Encoding (WAV only).\n- Data conversion.\n- Resampling, including custom resamplers.\n- Channel mapping.\n- Basic generation of waveforms and noise.\n- Basic effects and filters.\n\nRefer to the [Programming Manual](https:\u002F\u002Fminiaud.io\u002Fdocs\u002Fmanual\u002F) for a more complete description of\navailable features in miniaudio.\n\n\nExamples\n========\n\nThis example shows one way to play a sound using the high level API.\n\n```c\n#include \"miniaudio\u002Fminiaudio.h\"\n\n#include \u003Cstdio.h>\n\nint main()\n{\n    ma_result result;\n    ma_engine engine;\n\n    result = ma_engine_init(NULL, &engine);\n    if (result != MA_SUCCESS) {\n        return -1;\n    }\n\n    ma_engine_play_sound(&engine, \"sound.wav\", NULL);\n\n    printf(\"Press Enter to quit...\");\n    getchar();\n\n    ma_engine_uninit(&engine);\n\n    return 0;\n}\n```\n\nThis example shows how to decode and play a sound using the low level API.\n\n```c\n#include \"miniaudio\u002Fminiaudio.h\"\n\n#include \u003Cstdio.h>\n\nvoid data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uint32 frameCount)\n{\n    ma_decoder* pDecoder = (ma_decoder*)pDevice->pUserData;\n    if (pDecoder == NULL) {\n        return;\n    }\n\n    ma_decoder_read_pcm_frames(pDecoder, pOutput, frameCount, NULL);\n\n    (void)pInput;\n}\n\nint main(int argc, char** argv)\n{\n    ma_result result;\n    ma_decoder decoder;\n    ma_device_config deviceConfig;\n    ma_device device;\n\n    if (argc \u003C 2) {\n        printf(\"No input file.\\n\");\n        return -1;\n    }\n\n    result = ma_decoder_init_file(argv[1], NULL, &decoder);\n    if (result != MA_SUCCESS) {\n        return -2;\n    }\n\n    deviceConfig = ma_device_config_init(ma_device_type_playback);\n    deviceConfig.playback.format   = decoder.outputFormat;\n    deviceConfig.playback.channels = decoder.outputChannels;\n    deviceConfig.sampleRate        = decoder.outputSampleRate;\n    deviceConfig.dataCallback      = data_callback;\n    deviceConfig.pUserData         = &decoder;\n\n    if (ma_device_init(NULL, &deviceConfig, &device) != MA_SUCCESS) {\n        printf(\"Failed to open playback device.\\n\");\n        ma_decoder_uninit(&decoder);\n        return -3;\n    }\n\n    if (ma_device_start(&device) != MA_SUCCESS) {\n        printf(\"Failed to start playback device.\\n\");\n        ma_device_uninit(&device);\n        ma_decoder_uninit(&decoder);\n        return -4;\n    }\n\n    printf(\"Press Enter to quit...\");\n    getchar();\n\n    ma_device_uninit(&device);\n    ma_decoder_uninit(&decoder);\n\n    return 0;\n}\n```\n\nMore examples can be found in the [examples](examples) folder or online here: https:\u002F\u002Fminiaud.io\u002Fdocs\u002Fexamples\u002F\n\n\nBuilding\n========\nJust compile miniaudio.c like any other source file and include miniaudio.h like a normal header. There's no need\nto install any dependencies. On Windows and macOS there's no need to link to anything. On Linux and BSD just link\nto `-lpthread` and `-lm`. On iOS you need to compile as Objective-C. Link to `-ldl` if you get errors about\n`dlopen()`, etc.\n\nIf you get errors about undefined references to `__sync_val_compare_and_swap_8`, `__atomic_load_8`, etc. you\nneed to link with `-latomic`.\n\nABI compatibility is not guaranteed between versions so take care if compiling as a DLL\u002FSO. The suggested way\nto integrate miniaudio is by adding it directly to your source tree.\n\nYou can also use CMake if that's your preference.\n\n\nDocumentation\n=============\nOnline documentation can be found here: https:\u002F\u002Fminiaud.io\u002Fdocs\u002F\n\nDocumentation can also be found at the top of [miniaudio.h](https:\u002F\u002Fraw.githubusercontent.com\u002Fmackron\u002Fminiaudio\u002Fmaster\u002Fminiaudio.h)\nwhich is always the most up-to-date and authoritative source of information on how to use miniaudio. All other\ndocumentation is generated from this in-code documentation.\n\n\nSupported Platforms\n===================\n- Windows\n- macOS, iOS\n- Linux\n- FreeBSD \u002F OpenBSD \u002F NetBSD\n- Android\n- Raspberry Pi\n- Emscripten \u002F HTML5\n\nminiaudio should compile clean on other platforms, but it will not include any support for playback or capture\nby default. To support that, you would need to implement a custom backend. You can do this without needing to\nmodify the miniaudio source code. See the [custom_backend](examples\u002Fcustom_backend.c) example.\n\nBackends\n--------\n- WASAPI\n- DirectSound\n- WinMM\n- Core Audio (Apple)\n- ALSA\n- PulseAudio\n- JACK\n- sndio (OpenBSD)\n- audio(4) (NetBSD and OpenBSD)\n- OSS (FreeBSD)\n- AAudio (Android 8.0+)\n- OpenSL|ES (Android only)\n- Web Audio (Emscripten)\n- Null (Silence)\n- Custom\n\n\nSecurity\n========\nSee the miniaudio [security policy](.github\u002FSECURITY.md).\n\n\nLicense\n=======\nYour choice of either public domain or [MIT No Attribution](https:\u002F\u002Fgithub.com\u002Faws\u002Fmit-0).\n","miniaudio 是一个用 C 语言编写的音频播放和捕获库，整个库仅包含一个源文件。它提供了一个简单且灵活的 API，支持低级和高级功能，包括直接访问原始音频数据、声音管理、混合、效果处理以及可选的3D空间化。此外，miniaudio 内置了多种音频格式（如 WAV、FLAC 和 MP3）的解码支持，并允许用户自定义解码器。由于其轻量级的设计和广泛的平台兼容性（涵盖所有主要桌面和移动平台），该库非常适合嵌入到需要音频处理但又不想引入复杂依赖项的应用程序中使用。",2,"2026-06-11 03:06:45","top_language"]