~ubuntu-branches/ubuntu/wily/kid3/wily

« back to all changes in this revision

Viewing changes to src/plugins/taglibmetadata/taglibext/wavpack/wvproperties.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell, Patrick Matthäi, Mark Purcell
  • Date: 2013-11-30 15:44:59 UTC
  • mfrom: (1.1.16) (2.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20131130154459-s6lpalx8yy2zq7gx
Tags: 3.0.2-1
* New upstream release 

[ Patrick Matthäi ]
* New upstream release.
  - Add new libreadline-dev build dependency.
* Don't explicitly request xz compression - dpkg 1.17 does this by default.
* Bump Standards-Version to 3.9.5 (no changes needed).
* Fix Vcs-Browser control field.

[ Mark Purcell ]
* Switch to dh - reduce debian/rules bloat
* kid3 Replaces kid3-qt - low popcon, reduce archive bloat
* Fix vcs-field-not-canonical
* debian/compat -> 9
* Update Description:

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_WVPROPERTIES_H
 
27
#define TAGLIB_WVPROPERTIES_H
 
28
 
 
29
#include "audioproperties.h"
 
30
 
 
31
namespace TagLib {
 
32
 
 
33
  namespace WavPack {
 
34
 
 
35
    
 
36
    static const TagLib::uint HeaderSize = 32;
 
37
 
 
38
    //! An implementation of audio property reading for WavPack
 
39
 
 
40
    /*!
 
41
     * This reads the data from an WavPack stream found in the AudioProperties
 
42
     * API.
 
43
     */
 
44
 
 
45
    class Properties : public AudioProperties
 
46
    {
 
47
    public:
 
48
      /*!
 
49
       * Create an instance of WavPack::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 WavPack::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 WavPack version.
 
73
       */ 
 
74
      int version() const;
 
75
      
 
76
    private:
 
77
      void read();
 
78
 
 
79
      class PropertiesPrivate;
 
80
      PropertiesPrivate *d;
 
81
    };
 
82
  }
 
83
}
 
84
 
 
85
#endif