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

okular

  • Okular
  • Sound
Public Types | Public Member Functions | List of all members
Okular::Sound Class Reference

#include <sound.h>

Public Types

enum  SoundEncoding { Raw, Signed, muLaw, ALaw }
 
enum  SoundType { External, Embedded }
 

Public Member Functions

 Sound (const QByteArray &data)
 
 Sound (const QString &filename)
 
 ~Sound ()
 
int bitsPerSample () const
 
int channels () const
 
QByteArray data () const
 
double samplingRate () const
 
void setBitsPerSample (int rate)
 
void setChannels (int channels)
 
void setSamplingRate (double rate)
 
void setSoundEncoding (SoundEncoding encoding)
 
SoundEncoding soundEncoding () const
 
SoundType soundType () const
 
QString url () const
 

Detailed Description

Contains information about a sound object.

This class encapsulates the information about a sound object which is used for links on enter/leave page event.

Definition at line 26 of file sound.h.

Member Enumeration Documentation

enum Okular::Sound::SoundEncoding

Describes the encoding of the sound data.

Enumerator
Raw 

Is not encoded.

Signed 

Is encoded with twos-complement values.

muLaw 

Is ยต-law encoded.

ALaw 

Is A-law encoded.

Definition at line 40 of file sound.h.

enum Okular::Sound::SoundType

Describes where the sound is stored.

Enumerator
External 

Is stored at external resource (e.g. url)

Embedded 

Is stored embedded in the document.

Definition at line 32 of file sound.h.

Constructor & Destructor Documentation

Sound::Sound ( const QByteArray &  data)
explicit

Creates a new sound object with the given embedded sound data.

Definition at line 49 of file sound.cpp.

Sound::Sound ( const QString &  filename)
explicit

Creates a new sound object with the given external filename.

Definition at line 54 of file sound.cpp.

Sound::~Sound ( )

Destroys the sound object.

Definition at line 59 of file sound.cpp.

Member Function Documentation

int Sound::bitsPerSample ( ) const

Returns the bits per sample rate.

Definition at line 99 of file sound.cpp.

int Sound::channels ( ) const

Returns the number of channels.

Definition at line 89 of file sound.cpp.

QByteArray Sound::data ( ) const

Returns the embedded sound data.

Definition at line 74 of file sound.cpp.

double Sound::samplingRate ( ) const

Returns the sampling rate.

Definition at line 79 of file sound.cpp.

void Sound::setBitsPerSample ( int  rate)

Sets the bits per sample rate.

Definition at line 104 of file sound.cpp.

void Sound::setChannels ( int  channels)

Sets the number of channels.

Definition at line 94 of file sound.cpp.

void Sound::setSamplingRate ( double  rate)

Sets the sampling rate.

Definition at line 84 of file sound.cpp.

void Sound::setSoundEncoding ( Sound::SoundEncoding  soundEncoding)

Sets the type of sound encoding.

Definition at line 114 of file sound.cpp.

Sound::SoundEncoding Sound::soundEncoding ( ) const

Returns the sound encoding.

Definition at line 109 of file sound.cpp.

Sound::SoundType Sound::soundType ( ) const

Returns the type of the sound object.

Definition at line 64 of file sound.cpp.

QString Sound::url ( ) const

Returns the external storage url of the sound data.

Definition at line 69 of file sound.cpp.


The documentation for this class was generated from the following files:
  • sound.h
  • sound.cpp
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