Results 1 to 2 of 2

Thread: Making audio synthesis with OpenSL

  1. #1
    Newbie Newbie
    Join Date
    Feb 2016
    Posts
    2

    Making audio synthesis with OpenSL

    Hello, I'm making audio app on Android with use of some synthesis, FM or AM. I started with Native Audio project. Little bit of sound generation is there, but I don't know how I can continue with it.

    Here is code for sawtooth sound

    Code :
    for (i = 0; i < SAWTOOTH_FRAMES; ++i) {
        sawtoothBuffer[i] = 32768 - ((i % 100) * 660);
    }

    Can someone explain me why these numbers? I looked into OpenSL API, but nothing found about synthesizing sound.

    Thanks

  2. #2
    Newbie Newbie
    Join Date
    Feb 2016
    Posts
    2
    Yes, but about synthesis is nothing there.

    About my question.. I figured it out, it's actually pretty easy, but I got another problem.

    Generating of sawtooth wave is fine. I printed out the result and it's looking good. But the sound is weird.
    Here is what I recorded.
    https://soundcloud.com/syntey/synth-...ing-to-do-here
    It's same for sawtooth and square, but when I play with sawtooth A, then sound is normal
    Does someone know what is wrong? If I increase size of buffer, then period is longer, but still the same problem

Similar Threads

  1. opensl es v1.01 to v1.1
    By kanaan in forum OpenSL ES
    Replies: 2
    Last Post: 05-24-2015, 02:43 PM
  2. opensl es and multi-channel audio
    By mraman in forum OpenSL ES
    Replies: 1
    Last Post: 03-08-2015, 01:35 AM
  3. Replies: 2
    Last Post: 07-28-2013, 01:50 PM
  4. openSL ES and ALSA
    By positron in forum OpenSL ES
    Replies: 1
    Last Post: 03-22-2012, 10:13 AM
  5. Integrating an audio codec (OpenSL ES)
    By SimMathew in forum OpenSL ES
    Replies: 9
    Last Post: 02-02-2011, 12:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean