junyuecao / AndroidSoundTouch

A SoundTouch java wrapper library for Android
GNU Lesser General Public License v3.0
30 stars 5 forks source link

Stereo Channel #2

Open yonasputraa opened 6 years ago

yonasputraa commented 6 years ago

I've tried this one in mono channel.

But how about in stereo channel? Should i divide the buffsize sample by channel?

junyuecao commented 6 years ago

The output format is as same as the input PCM. You should setup channels before feeding data.

thundertrick commented 6 years ago

The output format is as same as the input PCM. You should setup channels before feeding data.

@junyuecao I guess the problem is we cannot directly use mSoundTouch.putSamples() to process data in stereo channel. SoundTouch crashes if we do so.

Do u have any idea?

Code-Lonely commented 2 years ago

@junyuecao 作者你好,在使用这个库的时候,调用setChannels方法设置通道数为2,运行之后会导致崩溃,请问这是什么问题呢