~ubuntu-branches/ubuntu/intrepid/kid3/intrepid

« back to all changes in this revision

Viewing changes to kid3/taglibext/trueaudio/ttaproperties.h

  • Committer: Bazaar Package Importer
  • Author(s): Michele Angrisano
  • Date: 2008-01-09 23:20:54 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080109232054-gtcjxz4ahdnzbt01
Tags: 0.10-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/rules:
    + Use dh_icons instead dh_iconcache.
  - debian/control:
    + Update maintainer field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    copyright            : (C) 2006 by Lukáš Lalinský
 
3
    email                : lalinsky@gmail.com
 
4
    
 
5
    copyright            : (C) 2004 by Allan Sandfeld Jensen
 
6
    email                : kde@carewolf.org
 
7
                           (original MPC implementation)
 
8
 ***************************************************************************/
 
9
 
 
10
/***************************************************************************
 
11
 *   This library is free software; you can redistribute it and/or modify  *
 
12
 *   it  under the terms of the GNU Lesser General Public License version  *
 
13
 *   2.1 as published by the Free Software Foundation.                     *
 
14
 *                                                                         *
 
15
 *   This library is distributed in the hope that it will be useful, but   *
 
16
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
 
17
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 
18
 *   Lesser General Public License for more details.                       *
 
19
 *                                                                         *
 
20
 *   You should have received a copy of the GNU Lesser General Public      *
 
21
 *   License along with this library; if not, write to the Free Software   *
 
22
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            *
 
23
 *   MA  02110-1301  USA                                                   *
 
24
 ***************************************************************************/
 
25
 
 
26
#ifndef TAGLIB_TTAPROPERTIES_H
 
27
#define TAGLIB_TTAPROPERTIES_H
 
28
 
 
29
#include "audioproperties.h"
 
30
 
 
31
namespace TagLib {
 
32
 
 
33
  namespace TTA {
 
34
 
 
35
    
 
36
    static const TagLib::uint HeaderSize = 18;
 
37
 
 
38
    //! An implementation of audio property reading for TTA
 
39
 
 
40
    /*!
 
41
     * This reads the data from an TTA stream found in the AudioProperties
 
42
     * API.
 
43
     */
 
44
 
 
45
    class Properties : public AudioProperties
 
46
    {
 
47
    public:
 
48
      /*!
 
49
       * Create an instance of TTA::Properties with the data read from the
 
50
       * ByteVector \a data.
 
51
       */
 
52
      Properties(const ByteVector &data, long streamLength, ReadStyle style = Average);
 
53
 
 
54
      /*!
 
55
       * Destroys this TTA::Properties instance.
 
56
       */
 
57
      virtual ~Properties();
 
58
 
 
59
      // Reimplementations.
 
60
 
 
61
      virtual int length() const;
 
62
      virtual int bitrate() const;
 
63
      virtual int sampleRate() const;
 
64
      virtual int channels() const;
 
65
 
 
66
      /*!
 
67
       * Returns number of bits per sample.
 
68
       */
 
69
      int bitsPerSample() const;
 
70
 
 
71
      /*!
 
72
       * Returns the major version number.
 
73
       */
 
74
      int ttaVersion() const;
 
75
 
 
76
    private:
 
77
      void read();
 
78
 
 
79
      class PropertiesPrivate;
 
80
      PropertiesPrivate *d;
 
81
    };
 
82
  }
 
83
}
 
84
 
 
85
#endif