~njh-aelius/maxosx/musicbrainz-tags

« back to all changes in this revision

Viewing changes to Frameworks/taglib/taglib/taglib/speex/speexproperties.h

  • Committer: stephen_booth
  • Date: 2008-04-30 01:48:01 UTC
  • Revision ID: svn-v4:6b6cea13-1402-0410-9567-a7afb52bf336:trunk:1371
Fixing the taglib source tree

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 - 2008 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
23
 
 *   USA                                                                   *
24
 
 *                                                                         *
25
 
 *   Alternatively, this file is available under the Mozilla Public        *
26
 
 *   License Version 1.1.  You may obtain a copy of the License at         *
27
 
 *   http://www.mozilla.org/MPL/                                           *
28
 
 ***************************************************************************/
29
 
 
30
 
#ifndef TAGLIB_SPEEXPROPERTIES_H
31
 
#define TAGLIB_SPEEXPROPERTIES_H
32
 
 
33
 
#include <audioproperties.h>
34
 
 
35
 
namespace TagLib {
36
 
 
37
 
  namespace Speex {
38
 
 
39
 
    class File;
40
 
 
41
 
    //! An implementation of audio property reading for Ogg Speex
42
 
 
43
 
    /*!
44
 
     * This reads the data from an Ogg Speex stream found in the AudioProperties
45
 
     * API.
46
 
     */
47
 
 
48
 
    class TAGLIB_EXPORT Properties : public AudioProperties
49
 
    {
50
 
    public:
51
 
      /*!
52
 
       * Create an instance of Speex::Properties with the data read from the
53
 
       * Speex::File \a file.
54
 
       */
55
 
      Properties(File *file, ReadStyle style = Average);
56
 
 
57
 
      /*!
58
 
       * Destroys this Speex::Properties instance.
59
 
       */
60
 
      virtual ~Properties();
61
 
 
62
 
      // Reimplementations.
63
 
 
64
 
      virtual int length() const;
65
 
      virtual int bitrate() const;
66
 
      virtual int sampleRate() const;
67
 
      virtual int channels() const;
68
 
 
69
 
      /*!
70
 
       * Returns the Speex version, currently "0" (as specified by the spec).
71
 
       */
72
 
      int speexVersion() const;
73
 
 
74
 
    private:
75
 
      Properties(const Properties &);
76
 
      Properties &operator=(const Properties &);
77
 
 
78
 
      void read();
79
 
 
80
 
      class PropertiesPrivate;
81
 
      PropertiesPrivate *d;
82
 
    };
83
 
  }
84
 
 
85
 
}
86
 
 
87
 
#endif