This file is indexed.

/usr/include/sipxtapi/ptapi/PtAudioCodec.h is in libsipxtapi-dev 3.3.0~test17-2.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
//
// Copyright (C) 2004-2006 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp.  All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////

#ifndef _PtAudioCodec_h_
#define _PtAudioCodec_h_

// SYSTEM INCLUDES
//#include <...>

// APPLICATION INCLUDES

// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS

//: Class containing an RTP encoding type definintion
// This class is used to contain the definition of an RTP encoding type.
// The RTP encoding type is used during call setup to negotiate and come
// to an agreement as to what RTP encoding will be used by the parties of
// a call.  This class encapsulates the RTP encoding type and definitions
// for parameters such as sample size, sample rate, number of channels and
// encoding method.  
// <BR>
// The currentl implementation does not allow free form definition of all of
// the RTP encoding parameters.  A fixed set of combinations may be specified
// using the <I>PtRtpAudioCodecType</I> enumeration.

class PtAudioCodec
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:

    enum PtRtpAudioCodecType
    {
        UNKNOWN_CODEC,
        MU_LAW_8B_8K,
        A_LAW_8B_8K,
        LINEAR_16B_8K
    };
    //: Predefined RTP encoding parameters
    //! enumcode: UNKNOWN_CODEC - undefined encoding parameters.
    //! enumcode: MU_LAW_8B_8K - mu-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel
    //! enumcode: A_LAW_8B_8K - a-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel
    //! enumcode: LINEAR_16B_8K - PCM/linear encoding, 16 bit samples, 8 kilohertz sample rate, one channel

    enum PtRtpAudioEncodingMethod
    {
        UNKNOWN_ENCODING,
        MU_LAW,
        A_LAW,
        LINEAR
    };
    //: RTP encoding methods
    //! enumcode: UNKNOWN_ENCODING - undefined encoding method.
    //! enumcode: MU_LAW - mu-law encoding
    //! enumcode: A_LAW - a-law encoding
    //! enumcode: LINEAR - PCM/linear encoding

/* ============================ CREATORS ================================== */

   PtAudioCodec(PtRtpAudioCodecType codecType = UNKNOWN_CODEC);
     //:Default constructor

   PtAudioCodec(const PtAudioCodec& rPtAudioCodec);
     //:Copy constructor

   virtual
   ~PtAudioCodec();
     //:Destructor

/* ============================ MANIPULATORS ============================== */

   PtAudioCodec& operator=(const PtAudioCodec& rhs);
     //:Assignment operator

/* ============================ ACCESSORS ================================= */

   PtRtpAudioCodecType getRtpCodecType() const;
 //  int getRtpCodecType() const;
   //: Get the codec type
   //! returns: The codec type enumeration.

   PtRtpAudioEncodingMethod getRtpEncodingMethod() const;
   //: Get the encoding method for this codec
   //! returns: the enumeration for the encoding method for this codec.

   int getSampleSize() const;
   //: Get the sample size for this codec
   //! returns: The number of bits per sample

   int getSampleRate() const;
   //: Get the sample rate for this codec
   //! returns: The number of samples per second.

   int getNumChannels() const;
   //: Get the number of channels supported for this codec
   //! returns: The number of channels.

/* ============================ INQUIRY =================================== */

/* //////////////////////////// PROTECTED ///////////////////////////////// */
protected:

/* //////////////////////////// PRIVATE /////////////////////////////////// */
private:
    PtRtpAudioCodecType mCodecType;
    PtRtpAudioEncodingMethod mAudioEncodingMethod; 
    int mSampleSize;
    int mSampleRate;
    int mNumberOfChannels;


};

/* ============================ INLINE METHODS ============================ */

#endif  // _PtAudioCodec_h_