Android で soundtouch (オープン ソースのオーディオ処理ライブラリ) を統合するテスト アプリに取り組んでいます。
私のテスト アプリは、既にマイクから入力を受け取り、soundtouch を介してオーディオを渡し、処理されたオーディオを AudioTrack インスタンスに出力することができます。
私の質問は、AudioTrack からの出力をデバイス上の新しいファイルに変更するにはどうすればよいですか?
これが私のアプリの関連コードです(ここで、soundtouchの出力をAudioTrackの入力に処理しています)
// the following code is a stripped down version of my code
// in no way its supposed to compile or work. Its here for reference purposes
// pre-conditions
// parameters - input : byte[]
soundTouchJNIInstance.putButes(input);
int bytesReceived = soundTouchJNIInstance.getBytes(input);
audioTrackInstance.write(input, 0, bytesReceived);
この問題にアプローチする方法についてのアイデアはありますか? ありがとう!