Code Monkey home page Code Monkey logo

luartaudio's Introduction

Lua binding of RtAudio and libsndfile

It makes possible to play and record audio files but also to write sound generators and filters in Lua language.

There are still no docs but you can try lua samples to understand the api

Remember to use git submodule update for getting rtaudio folder (it is a submodule pointing to the original RtAudio github)

To build you have two options:
first option expecting cmake to find lua and sndfile:
1- cmake path_to_repository
2- make
second option:
1- provide the paths nedded in build/toolchain.cmake
2- use init_cmake.bat (or adapt to linux and macosx)
3- make install

luartaudio's People

Contributors

sonoro1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

luartaudio's Issues

Can't analyze microphone input

Hey, line #318 in the current luaRtAudio.cpp (memset) prevents any input analysis.
Maybe add a different callback that allows for proper input handling instead of just looping it to the output?

Cheers

Case issue when building from GNU/Linux

Seems like the git submodule is named "rtaudioORIG", but cmake thinks it's named "RtAudioORIG".

$ git clone https://github.com/sonoro1234/luaRtAudio.git && cd luaRtAudio && cmake .
Cloning into 'luaRtAudio'...
remote: Reusing existing pack: 164, done.
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 177 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (177/177), 1.09 MiB | 776.00 KiB/s, done.
Resolving deltas: 100% (54/54), done.
Checking connectivity... done.
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:23 (add_subdirectory):
add_subdirectory given source "RtAudioORIG" which is not an existing
directory.

CMake Error at CMakeLists.txt:26 (get_directory_property):
get_directory_property DIRECTORY argument provided but requested directory
not found. This could be because the directory argument was invalid or, it
is valid but has not been processed yet.

CMake Error at CMakeLists.txt:41 (INSTALL):
install FILES given no DESTINATION!

-- Configuring incomplete, errors occurred!
See also "/tmp/luaRtAudio/CMakeFiles/CMakeOutput.log".

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.