Author Topic: IAudioProcessor::get_levels channel assignment  (Read 3286 times)

ekkehard

  • user
  • *
  • Posts: 2
    • View Profile
IAudioProcessor::get_levels channel assignment
« on: April 24, 2012, 02:02:57 PM »
Hello,
I am using the get_levels function from the IAudioProcessor interface.

I found that the function fills now (version 2.1a) 11 doubles in sample_t *input_levels, sample_t *output_levels instead of 6 doubles in 1.63b.
But I am in doubt about the layout of the channels
In version 1.63b, I was pretty sure that it was
Code: javascript:void(0); [nonactive]
[0]=left,
[1]=right,
[2]=center,
[3]=subleft,
[4]=subright,
[5}=lowfreq
but how is it in version 2.1a?
Best regards
Ekkehard

valex

  • Administrator
  • Active user
  • *****
  • Posts: 598
    • View Profile
Re: IAudioProcessor::get_levels channel assignment
« Reply #1 on: April 25, 2012, 06:02:48 AM »
See http://ac3filter.net/repo/valib/file/afd9a02980f6/valib/spk.h

 #define CH_L    0  // Front left channel
 #define CH_C    1  // Front center channel
 #define CH_R    2  // Front right channel
 #define CH_SL   3  // Surround left channel
 #define CH_SR   4  // Surround right channel
 #define CH_LFE  5  // LFE channel
 #define CH_CL   6  // Front left center
 #define CH_CR   7  // Front right center
 #define CH_BL   8  // Back left
 #define CH_BC   9  // Back center
 #define CH_BR   10 // Back right

ekkehard

  • user
  • *
  • Posts: 2
    • View Profile
Re: IAudioProcessor::get_levels channel assignment
« Reply #2 on: April 25, 2012, 06:52:38 AM »
Thanks, due to an misunderstanding on my side, I missed the difference to version 1.63b, which is only an addendum starting with CH_CL.
Best regards
Ekkehard