okular
Okular::Sound Class Reference
#include <sound.h>
List of all members.
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
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.
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.
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.
Destroys the sound object.
Definition at line 59 of file sound.cpp.
Member Function Documentation
Returns the type of the sound object.
Definition at line 64 of file sound.cpp.
Returns the external storage url of the sound data.
Definition at line 69 of file sound.cpp.
Returns the embedded sound data.
Definition at line 74 of file sound.cpp.
| void Sound::setSamplingRate |
( |
double |
rate |
) |
|
Sets the sampling rate.
Definition at line 84 of file sound.cpp.
| double Sound::samplingRate |
( |
|
) |
const |
Returns the sampling rate.
Definition at line 79 of file sound.cpp.
| void Sound::setChannels |
( |
int |
channels |
) |
|
Sets the number of channels.
Definition at line 94 of file sound.cpp.
| int Sound::channels |
( |
|
) |
const |
Returns the number of channels.
Definition at line 89 of file sound.cpp.
| void Sound::setBitsPerSample |
( |
int |
rate |
) |
|
Sets the bits per sample rate.
Definition at line 104 of file sound.cpp.
| int Sound::bitsPerSample |
( |
|
) |
const |
Returns the bits per sample rate.
Definition at line 99 of file sound.cpp.
Sets the type of sound encoding.
Definition at line 114 of file sound.cpp.
Returns the sound encoding.
Definition at line 109 of file sound.cpp.
The documentation for this class was generated from the following files: