Giter Club home page Giter Club logo

yse-soundengine's Introduction

This is libYSE 2.0

libYSE is a cross platform sound engine, written in C++. The 1.0 version was built with JUCE, but because of possible licensing isssues and the current JUCE being unable to create usable Android libraries, JUCE support is removed in libYSE 2.0. Currently Windows, Linux and Android are supported.

Nuget

If you use YSE with C#, a few nuget packages are available. For windows you need https://www.nuget.org/packages/Yse.NET.Standard/. (YSE.NET.PCL is a dependency and will be loaded automatically.)

With Android, you can use https://www.nuget.org/packages/Yse.NET.Android/. For Xamarin Forms, add Yse.NET.Android and YSE.NET.PCL to your Android Project, and add YSE.NET.PCL to your Xamarin Forms project. An example of this usage is available in the Demo.Xamarin.Forms project inside this repository.

Windows Support

There is a native C++ library, compiled with Visual Studio. It uses libsndfile and portaudio a backends. A .NET framework library is also included.

Android Support

The native android library is also created with Visual Studio. It uses libsndfile and openSLES backends. Compiling it on linux should be possible if you create the makefile to do that.

The .NET android library also provides support for C# Android applications in visual studio. Using Xamarin Forms is also possible.

There is one drawback right now: I could not find a way to pass the asset manager to the native library, making it impossible to read assets from an apk. I will work on that later. For now, a workaround is to use the BufferIO class. By reading audio files into a memory buffer, they can be passed to libYSE from .NET. This is not ideal if you have big audio files though.

Linux Support (thanks to user noondie)

Building on Linux is supported by cmake. PortAudio and libsndfile are the only dependencies for YSE. Do the following in the main directory

$mkdir build 
$cd build 
$cmake ..

iOS/Mac Support

This was also supported in YSE 1.0, but had to go when I decided to remove the dependency on JUCE. Adding support would mean adding other backends for reading files (which is done by libsndfile now) and streaming audio output (openSLES on Android and portaudio on Windows). The library is currently written with supporting multiple backends in mind, so it can't be that hard. Currently I don't have time to do this though.

Libraries

Native C++ libraries are working, as well as libraries for C# (.NET framework and .NET standard). The project also includes wrappers for use with xamarin forms.

Demo

Demo projects are also included for Windows (Native/C++ and WPF/C#), Android (Native/C++, Android.NET/C# and Xamarin.Forms).

yse-soundengine's People

Contributors

yvanvds avatar noondie avatar

Watchers

 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.