Giter Club home page Giter Club logo

android-ndk's Introduction

Android-ndk

Туториалы и примеры использования Android ndk.

Урок 1.

Использование нативного кода, написанного на C или С++ — это тема, которую многие разработчики не затрагивают вовсе. Но порой использование C++ в приложениях намного упрощает/ускоряет разработку. В этой статье будут рассмотрены основные принципы работы с native кодом.

http://suvitruf.ru/2013/02/02/2982/

Урок 2.

В прошлой статье кратко рассмотрел Android NDK, показал как вызывать нативные методы из Java. Разумным продолжением той статьи будет описание того, как вызвать Java методы из C++.

http://suvitruf.ru/2013/03/03/3081/

Урок 3.

В прошлых статьях показал, как вызвать C++ методы из Java и вызвать Java методы из C++. В данной статье покажу, как обратиться к ресурсам приложения из C++, используя AAssetManager из ndk.

http://suvitruf.ru/2013/03/06/3110/

Урок 4.

Основы Android NDK на примере работы с OpenAL. Чтение и проигрывание WAV и Ogg файлов.

android-ndk's People

Contributors

shchvova avatar suvitruf avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

android-ndk's Issues

Error in gain to attenuation code

// return 1000.0f * 20.0f * log10((double)gain);

gain_to_attenuation function is wrong. It has conversion from Bels to milliBels, not deciBels to milliBels.

1 B = 10 dB
1 dB = 100 mB

dB formula
Note that in formula result is in deciBels, ⅒ of Bel

Correct code is return 100.0f * 20.0f * log10((double)gain);

Also, following function OSLPlayer::gain_to_attenuation wrongly tries to correct for this mistake.

http://www.sengpielaudio.com/ConvBel.htm

compile error with ndk-build

[armeabi-v7a] Compile arm    : tremolo <= dpen.s
tremolo/dpen.s:100:2: error: invalid instruction, did you mean: ldrb, ldrexb?
        LDRNEB  r14,[r6, r7]            @ r14= t[chase]
        ^

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.