Poppler Qt6 24.12.0
Public Types | Public Member Functions | List of all members
Poppler::SoundObject Class Reference

#include <poppler-qt6.h>

Public Types

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

Public Member Functions

int bitsPerSample () const
 
int channels () const
 
QByteArray data () const
 
double samplingRate () const
 
SoundEncoding soundEncoding () const
 
SoundType soundType () const
 
QString url () const
 

Detailed Description

Container class for a sound file in a PDF document.

A sound can be either External (in that case should be loaded the file whose url is represented by url() ), or Embedded, and the player has to play the data contained in data().

Member Enumeration Documentation

◆ SoundEncoding

The encoding format used for the sound.

Enumerator
Raw 

Raw encoding, with unspecified or unsigned values in the range [ 0, 2^B - 1 ].

Signed 

Twos-complement values.

muLaw 

mu-law-encoded samples

ALaw 

A-law-encoded samples.

◆ SoundType

The type of sound.

Enumerator
External 

The real sound file is external.

Embedded 

The sound is contained in the data.


The documentation for this class was generated from the following file: