1

私は、Android 用の補聴器アプリケーションを作成しようとするプロジェクトの初期段階にいます。Pure Data、C サウンド、および基本的にマイクからの入力を取得してヘッドフォンで再生する基本的な Android サウンド ライブラリにいくつかのパッチを作成しました。フィルタリングや増幅はありません。

Csound は最高のパフォーマンスを発揮しましたが、遅延によりツールが使用できなくなりました。Android L が役立つことはわかっていますが、私の目標は、低コストの補聴器デバイスを作成することです。そのため、古い携帯電話ではおそらく取得できません。

次のアイデアは、adc と dac の値に直接アクセスできるかどうかを確認し、C を使用して独自のバージョンの AudioTrack とオーディオ レコードを NDK を使用して作成することです。基本的に、これらの値が入ってくるメモリ内の場所を指しています。

これは可能ですか?また、何を研究すればよいですか?DAC と ADC に直接アクセスする方法についてオンラインで見つけることができません。

お時間をいただきありがとうございます。

4

1 に答える 1

2

No. "Android" does not provide for direct access by apps to hardware at all.

The NDK does not change that, as you still lack permission to the audio hardware device nodes.

If you have a particular device on which you can install a customized build of Android, then you might be able to do something by adding new APIs or somehow giving your app or a special unix group access to the hardware nodes. But the details of how you might utilize that access would depend on the device chosen.

于 2014-10-15T19:20:46.023 に答える