dimanche 28 juin 2015

Getting compilation error for dos.h and iostream.h "no such file or directory" in Android JNI

I am working on Android NDK app in which I have to generate a sound. I have written a program in cpp by which I am able to generate a sound. below is my cpp snippet.

#include <dos.h>
#include<iostream.h>
void main()
{
    ...
    sound(1000);
    delay(1000);
    nosound();
    ...
}

So, I have written above code in Android JNI, but getting compilation error for dos.h and iostream.h "no such file or directory". Am I missing something here?

The main task is to play an audio sinewave from c++ by giving a call from android using JNI. The frequency of the sine wave has to be passed from the android code.

Aucun commentaire:

Enregistrer un commentaire