This file is indexed.

/usr/include/SndObj/SndWaveX.h is in libsndobj-dev 2.6.7+ds1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
 
////////////////////////////////////////////////////////////////////////
// This file is part of the SndObj library
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
//
// Copyright (c)Victor Lazzarini, 1997-2004
// See License.txt for a disclaimer of all warranties
// and licensing information

///////////////////////////////////////////////
// SndWaveX.h: Interface of the SndWaveX
//
//   wave format extensible file IO
//
////////////////////////////////////////////////

#ifndef _SNDWAVEX_H
#define _SNDWAVEX_H

#ifdef WIN
#include <Windows.h>
#endif

#include "SndWave.h"

#define WAVE_FORMAT_EXTENSIBLE (0xFFFE)

#ifndef WIN
#define WAVE_FORMAT_PCM (0x0001)
#endif
#define WAVE_FORMAT_IEEE_FLOAT (0x0003)

#define SPEAKER_FRONT_LEFT 0x1
#define SPEAKER_FRONT_RIGHT 0x2
#define SPEAKER_FRONT_CENTER 0x4
#define SPEAKER_LOW_FREQUENCY 0x8
#define SPEAKER_BACK_LEFT 0x10
#define SPEAKER_BACK_RIGHT 0x20
#define SPEAKER_FRONT_LEFT_OF_CENTER 0x40
#define SPEAKER_FRONT_RIGHT_OF_CENTER 0x80
#define SPEAKER_BACK_CENTER 0x100
#define SPEAKER_SIDE_LEFT 0x200
#define SPEAKER_SIDE_RIGHT 0x400
#define SPEAKER_TOP_CENTER 0x800
#define SPEAKER_TOP_FRONT_LEFT 0x1000
#define SPEAKER_TOP_FRONT_CENTER 0x2000
#define SPEAKER_TOP_FRONT_RIGHT 0x4000
#define SPEAKER_TOP_BACK_LEFT 0x8000
#define SPEAKER_TOP_BACK_CENTER 0x10000
#define SPEAKER_TOP_BACK_RIGHT 0x20000
#define SPEAKER_RESERVED 0x80000000

#ifndef WIN
struct GUID 
{ 
  unsigned int   Data1;
  unsigned short Data2;
  unsigned short Data3;
  unsigned char  Data4[8];
};
#endif

struct wav_ex {	
  short wValidBitsPerSample;
  int dwChannelMask;
  GUID SubFormat;
}; 

struct WAVEFORMATEXTENSIBLE {
	
  wave_head waveformatex;
  wav_ex    waveformat_ext;
	
};

const int PCM = WAVE_FORMAT_PCM;
const int IEEE_FLOAT = WAVE_FORMAT_IEEE_FLOAT;

const GUID KSDATAFORMAT_SUBTYPE_PCM = {
  0x00000001,
  0x0000,
  0x0010,
  {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
};

const GUID KSDATAFORMAT_SUBTYPE_IEEE_FLOAT = {
  0x00000003,
  0x0000,
  0x0010,
  {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
};


class SndWaveX : public SndWave {
	
 protected:
	
  inline bool GUIDcheck(GUID ID);
  int m_ChannelMask;
  GUID m_SubFormat;
  int  m_subformat;
  float*  m_fp;
  double* m_dp;
  bool m_iswavex;
	
 public:
		
  SndWaveX(char* name, short mode = OVERWRITE, 
	   short channels=1, int channelmask=0,  short bits=16, short format=PCM,
	   SndObj** inputlist=0, float spos= 0.f, 
	   int vecsize = DEF_VECSIZE, float sr = DEF_SR); 
  ~SndWaveX();
	
  void GetHeader(WAVEFORMATEXTENSIBLE* pheader);
  int GetChannelMask(){ return m_ChannelMask;}
  short Read();
  short Write();
  bool IsWaveExtensible(){ return m_iswavex; }
	
}; 

bool
SndWaveX::GUIDcheck(GUID ID){
  if(
     (m_SubFormat.Data1 == ID.Data1) &&
     (m_SubFormat.Data2 == ID.Data2) &&
     (m_SubFormat.Data3 == ID.Data3)
     ){ 
    for(int i=0; i < 8; i++) 
      if(m_SubFormat.Data4[i] != ID.Data4[i]) 
	return false;
    return true;
  }
  else return false;
}

#endif