This file is indexed.

/usr/include/SndObj/SndIO.h is in libsndobj-dev 2.6.6.1-3.

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
 
////////////////////////////////////////////////////////////////////////
// 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

//************************************************************//
//  SndIO.h: interface of the SndIO base class.               //
//                                                            //
//                                                            //
//                                                            //
//************************************************************//
#ifndef _SNDIO_H
#define _SNDIO_H
#include <math.h>
#include "SndObj.h"

enum{FLOATSAM=0, BYTESAM, SHORTSAM_LE};
const int SHORTSAM_BE = -2;
const int S24LE = 3;
const int S24BE = -3;
const int LONGSAM = 4;

enum{SND_INPUT, SND_OUTPUT, SND_IO};


#ifdef WIN
const int SHORTSAM = SHORTSAM_LE;
#endif

#ifdef OSS
const int SHORTSAM = SHORTSAM_LE;
#endif

#ifdef ALSA
const int SHORTSAM = SHORTSAM_LE;
const int LONGSAM_LE = LONGSAM;
const int LONGSAM_BE = 5;
const int TWENTY_FOUR = 6;
const int TWENTYFOUR_LE = TWENTY_FOUR;
const int TWENTYFOUR_BE = 7;
#endif


#ifdef SGI
const int SHORTSAM = SHORTSAM_BE;
#endif

#if defined(MACOSX) && defined(WORDS_BIGENDIAN)
const int SHORTSAM = SHORTSAM_BE;
#endif

#if defined(MACOSX) && !defined(WORDS_BIGENDIAN)
const int SHORTSAM = SHORTSAM_LE;
#endif



struct _24Bit {
  char s[3];
};


class SndIO {

 protected:
 
  SndObj**  m_IOobjs; 
  float* m_output;
  float m_sr;
  short m_channels;
  short m_bits;
  int m_vecsize;
  int m_vecsize_max;
  int m_vecpos;
  int m_error;
  int m_samples;

  short VerifySR(SndObj *InObj){      
    if(InObj->GetSr() != m_sr) return 0;
    else return 1;                           
  }

 public:
  short m_sampsize;
         
  float GetSr(){ return m_sr; }
  int   GetVectorSize() { return m_vecsize; }
  void SetVectorSize(int vecsize);
  void LimitVectorSize(int limit) {
    if(limit <= m_vecsize_max){      
              m_vecsize = limit; 
	      m_samples = m_vecsize*m_channels;
    }
  }
  void RestoreVectorSize(){ m_vecsize = m_vecsize_max; }
  short GetChannels() { return m_channels; }
  short GetSize() { return m_bits; }
  float Output(int pos){ return m_output[pos]; }
  float Output(int pos, int channel){
    return m_output[(pos*m_channels)+(channel-1)];
  }
  short SetOutput(short channel, SndObj* input){
    if(channel <= m_channels){                     
      m_IOobjs[channel-1] = input;
      return 1;
    } else return 0;
  }
         
  SndIO(short channels=1, short bits=16,SndObj** inputlist=0, 
	int vecsize = DEF_VECSIZE, float sr = DEF_SR);
  virtual ~SndIO();
  virtual short Read();
  virtual short Write();
  virtual char* ErrorMessage();
  int Error() { return m_error; }

};



#endif