Giter Site home page Giter Site logo

audeo's Introduction

Audeo

Audeo is a library for playing 3D sounds for modern C++. Built on top of SDL_Mixer, I created this library because I couldn't find any satisfactory, lightweight wrappers around OpenAL.

The purpose of audeo is to make playing and controlling 3D (but also 2D) sounds easy.

Example

#include <audeo/audeo.hpp>

int main() {
    
    if (!audeo::init()) {
        return -1;
    }
    
    audeo::SoundSource music_source = audeo::load_source(
        "test_samples/happy_music.mp3", audeo::AudioType::Music);

    audeo::SoundSource effect_source = audeo::load_source(
        "test_samples/bell.wav", audeo::AudioType::Effect);

    audeo::Sound music = audeo::play_sound(music_source, 1);
    audeo::Sound effect = audeo::play_sound(effect_source);

    while (audeo::is_playing_music()) {}
    
    audeo::quit();
    
    return 0;
}

More examples can be found in the examples directory.

You made a typo in the name! It's audio, not audeo!

No, I didn't. audeo is latin. See also https://latin-dictionary.net/definition/5532/audeo-audere-ausus

Building

Audeo comes with a CMakeLists.txt file. All you have to do is make sure you have the SDL and SDL_Mixer libraries on your system. For Windows x64, these are already provided and no extra steps are needed.

Questions

For any questions about the library or how to set it up, you're always welcome to open an issue, or shoot me a message on discord: NotAPenguin#8928, and I'll try to respond as soon as I can.

Contributing

Any contributions, PR's, issues or questions are always welcome.

audeo's People

Contributors

notapenguinmvg avatar notapenguin0 avatar aleokdev avatar yuhanun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.