1

I am building an android application to generate signals like Sine, Square, Sawtooth and DC. I have been able generate sine,sqaure and sawtooth waves by generating values and filling these values to the buffer through which I write to audio port using AudioTrack class. For DC I am writing a constant value 1 to the buffer and writing to audio port. But this is not generating any output when I connect mobile to CRO.

After referring few docs, I found that the audio I/O of mobile is designed to pass changing signals only. Can someone elaborate what exactly this means? Why do we have such constraint ?is it because DAC can't convert a constant values to analog ? Thanks in advance.

nithin
  • 73
  • 2
  • 7
  • I somehow do not believe that this is Java specific, actually more like device design... I could imagine that constant values are filtered out because it is a sound port, no need for DC (ay harm some equipment?) – user85421 Jun 22 '19 at 22:02
  • Right. This is not java specific. For some reason,no android devices support DC at it's audio port. Apparently this looks like some hardware limitation(like DAC). Just trying to know the exact reason. – nithin Jun 24 '19 at 21:38

0 Answers0