surroundize

Tool/PipeWire filter to convert stereo audio to surround
git clone https://git.neptards.moe/u3shit/surroundize.git
Log | Files | Refs | README | LICENSE

channelmaps.h (1306B)


      1 /*
      2 Copyright (C) 2010 Christian Kothe
      3 
      4 This program is free software; you can redistribute it and/or
      5 modify it under the terms of the GNU General Public License
      6 as published by the Free Software Foundation; either version 2
      7 of the License, or (at your option) any later version.
      8 
      9 This program is distributed in the hope that it will be useful,
     10 but WITHOUT ANY WARRANTY; without even the implied warranty of
     11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12 GNU General Public License for more details.
     13 
     14 You should have received a copy of the GNU General Public License
     15 along with this program; if not, write to the Free Software
     16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     17 */
     18 
     19 #ifndef CHANNELMAPS_H
     20 #define CHANNELMAPS_H
     21 #include "freesurround_decoder.h"
     22 #include <vector>
     23 #include <map>
     24 
     25 const int grid_res = 21; // resolution of the lookup grid
     26 
     27 // channel allocation maps (per setup)
     28 typedef std::vector<std::vector<float*> > alloc_lut;
     29 extern std::map<unsigned,alloc_lut> chn_alloc;
     30 // channel metadata maps (per setup)
     31 extern std::map<unsigned,std::vector<float> > chn_angle;
     32 extern std::map<unsigned,std::vector<float> > chn_xsf;
     33 extern std::map<unsigned,std::vector<float> > chn_ysf;
     34 extern std::map<unsigned,std::vector<channel_id> > chn_id;
     35 
     36 #endif