Second Music System
github.com
- Free plan
- Windows
- macOS
- Linux
- Self-hosted
What Second Music System is
Second Music System is an open-source middleware library for adding dynamic music to games. It integrates with existing game engines, allowing compositions to shift or branch as game conditions and events change. The library supports crossfading related sounds, moving between musical sections, overlapping independent flows, and combining sounds with different lengths and repetition patterns. An integrating engine supplies a music-file loading hook, passes samples to audio output, and sends commands for soundtracks, flows, and mixes. SMS is written in Rust and includes a C binding for nearly all features; a C++ binding is planned but unavailable. Soundtracks are created in SMS’s own language, which requires programming. Sounds are normally preloaded and decoded fully, while individual sounds can be streamed to reduce memory use. It supports real-time playback and offline recording, with precaching for time-sensitive flows. The project is early in development, with sparse documentation and tooling, changing APIs and formats, and unsupported tempo changes, complex filters, and flow pause or resume.
Who it suits
It suits game developers integrating adaptive music into engines on Windows, macOS, or Linux. Composers should be comfortable working in a soundtrack language that requires programming.
Good to know, and what to watch
- Open-source middleware with free access
- Supports branching and adaptive compositions
- C binding covers nearly all features
- Individual sounds can be streamed
- Supports real-time playback and recording
- C++ binding is not yet available
- Complex filters and tempo changes are unsupported
- Flow pause and resume are unavailable
- Documentation and tooling are sparse
The verdict
Second Music System provides adaptive soundtrack playback and mixing for games, with Rust and C integration. Its early development status and composer programming requirements make it better suited to technically involved projects.
What the maker publishes
- Adaptive soundtracks
- Compositions can shift and branch in response to game conditions and events, with little programmer or scripter support. source
- Audio handling
- SMS handles fades, crossfades, branches, and multithreaded loading so the engine integration mainly provides the required plumbing. source
- Audio limitations
- It cannot do complicated filters or real-time synthesis such as speed or tempo changes, and pausing and resuming a flow is not yet supported. source
- Bindings
- The library is written in Rust and provides a C binding for nearly all features; a C++ binding is planned but not yet written. source
- Composer controls
- Compositions can shift and branch in response to game conditions and events, using the SMS soundtrack language. source
- Composer workflow
- Composers currently create soundtracks directly in SMS's soundtrack language, which requires some programming. source
- Dependency license
- By default it uses libsoxr, which is LGPL 2.1 or later, and static linking requires an LGPL-compatible overall license situation. source
- Development status
- The project describes itself as early in development, with sparse documentation and tooling and an API and soundtrack format that may change. source
- Dynamic playback
- It supports crossfading related sounds, branching between movements, overlapping independent flows, and weaving sounds of varying lengths and repetitions. source
- Engine integration
- An integrating game engine provides a music-file loading hook, passes engine samples to its audio output, and sends commands to load soundtracks and control flows and mixes. source
- Engine integration
- The engine supplies music-file loading, accepts samples from the SMS Engine, and sends commands to load soundtracks and control flows and mixes. source
- Language bindings
- It is written in Rust and has a nearly complete C binding; a C++ binding is planned but not yet written. source
- License
- The project is available under either the Apache License 2.0 or MIT License, at the user's choice; its default libsoxr dependency is LGPL 2.1 or later and has separate static-linking considerations. source
- License
- The project is dual licensed under Apache License 2.0 or MIT, at the user's option. source
- Limitations
- It cannot apply complicated filters or realtime synthesis such as speed and tempo changes, and pausing and resuming a flow is not yet supported. source
- Loading behavior
- Flows begin playback after required components are loaded; precaching can keep flows ready for time-sensitive playback. source
- Maturity
- The project describes itself as early in development, with sparse documentation and tooling, performance that could improve, and an API and soundtrack format that may change. source
- Memory
- Sounds are preloaded and fully decoded by default, while individual sounds can instead be streamed to save memory. source
- Memory and streaming
- Sounds are preloaded and decoded in full by default, while individual sounds can instead be streamed to save memory. source
- Mixing features
- It supports crossfading related sounds, branching between movements, overlapping independent flows, and combining sounds of varying lengths and repetitions. source
- Preloading
- Flows can be precached so they are ready when playback is needed, since playback waits for necessary components to load. source
- Product
- Second Music System is an open-source middleware library for dynamic music in games, designed to integrate with existing game engines. source
- Product
- Second Music System is a middleware library for dynamic music that is designed to integrate into existing game engines. source
- Realtime and recording
- The library is designed for realtime playback and offline recording, with foreground loading recommended for consistent recording results. source
Checked against the maker's pages on 8 Oct 2026.