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

« back to all changes in this revision

Viewing changes to kid3/taglibext/speex/speexproperties.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) 2002 by Scott Wheeler
 
6
    email                : wheeler@kde.org
 
7
                           (original Vorbis 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_SPEEXPROPERTIES_H
 
27
#define TAGLIB_SPEEXPROPERTIES_H
 
28
 
 
29
#include <audioproperties.h>
 
30
 
 
31
namespace TagLib {
 
32
 
 
33
  namespace Speex {
 
34
 
 
35
    class File;
 
36
 
 
37
    //! An implementation of audio property reading for Ogg Speex
 
38
 
 
39
    /*!
 
40
     * This reads the data from an Ogg Speex stream found in the AudioProperties
 
41
     * API.
 
42
     */
 
43
 
 
44
    class Properties : public AudioProperties
 
45
    {
 
46
    public:
 
47
      /*!
 
48
       * Create an instance of Vorbis::Properties with the data read from the
 
49
       * Vorbis::File \a file.
 
50
       */
 
51
      explicit Properties(File *file, ReadStyle style = Average);
 
52
 
 
53
      /*!
 
54
       * Destroys this VorbisProperties instance.
 
55
       */
 
56
      virtual ~Properties();
 
57
 
 
58
      // Reimplementations.
 
59
 
 
60
      virtual int length() const;
 
61
      virtual int bitrate() const;
 
62
      virtual int sampleRate() const;
 
63
      virtual int channels() const;
 
64
 
 
65
      /*!
 
66
       * Returns the Vorbis version, currently "0" (as specified by the spec).
 
67
       */
 
68
      int speexVersion() const;
 
69
 
 
70
    private:
 
71
      Properties(const Properties &);
 
72
      Properties &operator=(const Properties &);
 
73
 
 
74
      void read();
 
75
 
 
76
      class PropertiesPrivate;
 
77
      PropertiesPrivate *d;
 
78
    };
 
79
  }
 
80
 
 
81
}
 
82
 
 
83
#endif