Skip to content
/ Audijo Public
forked from KaixoCode/Audijo

Simple audio library for modern C++ with ASIO/WASAPI support.

License

Notifications You must be signed in to change notification settings

amir110/Audijo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audijo

Very simple modern C++ audio library with Wasapi and ASIO support. Requires C++20.

Documentation: https://code.kaixo.me/Audijo/

Here's a quick example, it opens the default Wasapi device and just generates noise.

Stream<Wasapi> _stream;

// Generate noise
_stream.Callback([&](Buffer<float>& input, Buffer<float>& output, CallbackInfo info) {   
    for (auto& _frame : output)
        for (auto& _channel : _frame)
            _channel = 0.5 * ((std::rand() % 10000) / 10000. - 0.5);
});

_stream.Open({ // Open stream
    .input = NoDevice,
    .output = Default,
    .bufferSize = Default, 
    .sampleRate = Default 
});

// Get information
_stream.Information().sampleRate;
_stream.Information().bufferSize; // etc.

// Start stream
_stream.Start();
std::cin.get(); // Wait for console input to close stream
_stream.Close();

Simply an up to date audio library with actual documentation and full ASIO/WASAPI support.

About

Simple audio library for modern C++ with ASIO/WASAPI support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.9%
  • CMake 4.1%