• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
sound.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2006 by Pino Toscano <pino@kde.org> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef _OKULAR_SOUND_H_
11 #define _OKULAR_SOUND_H_
12 
13 #include "okular_export.h"
14 
15 #include <QtCore/QByteArray>
16 #include <QtCore/QString>
17 
18 namespace Okular {
19 
26 class OKULAR_EXPORT Sound
27 {
28  public:
32  enum SoundType {
33  External,
34  Embedded
35  };
36 
40  enum SoundEncoding {
41  Raw,
42  Signed,
43  muLaw,
44  ALaw
45  };
46 
51  explicit Sound( const QByteArray& data );
52 
56  explicit Sound( const QString& filename );
57 
61  ~Sound();
62 
66  SoundType soundType() const;
67 
71  QString url() const;
72 
76  QByteArray data() const;
77 
81  void setSamplingRate( double rate );
82 
86  double samplingRate() const;
87 
91  void setChannels( int channels );
92 
96  int channels() const;
97 
101  void setBitsPerSample( int rate );
102 
106  int bitsPerSample() const;
107 
111  void setSoundEncoding( SoundEncoding encoding );
112 
116  SoundEncoding soundEncoding() const;
117 
118  private:
119  class Private;
120  Private* const d;
121 
122  Q_DISABLE_COPY( Sound )
123 };
124 
125 }
126 
127 #endif
Okular::Sound::Raw
Is not encoded.
Definition: sound.h:41
Okular::Sound::Signed
Is encoded with twos-complement values.
Definition: sound.h:42
okular_export.h
Okular::Sound
Contains information about a sound object.
Definition: sound.h:26
Okular::Sound::SoundEncoding
SoundEncoding
Describes the encoding of the sound data.
Definition: sound.h:40
Okular::Sound::External
Is stored at external resource (e.g. url)
Definition: sound.h:33
Okular::Sound::muLaw
Is ยต-law encoded.
Definition: sound.h:43
Okular::Sound::SoundType
SoundType
Describes where the sound is stored.
Definition: sound.h:32
OKULAR_EXPORT
#define OKULAR_EXPORT
Definition: okular_export.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal