Mid/Side Encoding/Decoding #1071
-
Is it possible to do Mid/Side Encoding or Decoding? I'm trying to figure out how to invert the phase on one audio channel. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I always had it on my todo list to extend the CallbackStream so that we can easily implement some update methods on the data in addition to the read and write callback methods. |
Beta Was this translation helpful? Give feedback.
-
Will this invert the phase on both channels? If yes, how do you invert phase on only one channel? |
Beta Was this translation helpful? Give feedback.
-
Yes, it's on both channels. If you only need one channel you can process only every other sample: e.g all samples with an even or with an odd index if you have a stereo signal.
|
Beta Was this translation helpful? Give feedback.
I always had it on my todo list to extend the CallbackStream so that we can easily implement some update methods on the data in addition to the read and write callback methods.
I just committed the related code with a corresponding test example. The update is not only working on the write but also for readBytes...