QWSSoundClient Class Reference

QWSSoundClient Class Reference

#include <qsoundqss_qws.h>

Class Description

Definition at line 88 of file qsoundqss_qws.h.

+ Inheritance diagram for QWSSoundClient:

Public Types

enum  SoundFlags { Priority = 0x01, Streaming = 0x02 }
 
enum  DeviceErrors { ErrOpeningAudioDevice = 0x01, ErrOpeningFile = 0x02, ErrReadingFile = 0x04 }
 

Signals

void soundCompleted (int)
 
void deviceReady (int id)
 
void deviceError (int id, QWSSoundClient::DeviceErrors)
 
- Signals inherited from QWSSocket
void connected ()
 
void disconnected ()
 
void error (QAbstractSocket::SocketError)
 

Public Member Functions

 QWSSoundClient (QObject *parent=0)
 
 ~QWSSoundClient ()
 
void reconnect ()
 
void play (int id, const QString &filename)
 
void play (int id, const QString &filename, int volume, int flags=0)
 
void playRaw (int id, const QString &, int, int, int, int flags=0)
 
void pause (int id)
 
void stop (int id)
 
void resume (int id)
 
void setVolume (int id, int left, int right)
 
void setMute (int id, bool m)
 
void playPriorityOnly (bool)
 
void setSilent (bool)
 
- Public Member Functions inherited from QWSSocket
 QWSSocket (QObject *parent=0)
 
 ~QWSSocket ()
 
bool connectToLocalFile (const QString &file)
 
QString errorString ()
 

Member Enumeration Documentation

enum SoundFlags
Enumerator
Priority 
Streaming 

Definition at line 92 of file qsoundqss_qws.h.

92  {
93  Priority = 0x01,
94  Streaming = 0x02 // currently ignored, but but could set up so both Raw and non raw can be done streaming or not.
95  };
Enumerator
ErrOpeningAudioDevice 
ErrOpeningFile 
ErrReadingFile 

Definition at line 96 of file qsoundqss_qws.h.

Constructor & Destructor Documentation

QWSSoundClient ( QObject parent = 0)
explicit

Member Function Documentation

void reconnect ( )
void play ( int  id,
const QString filename 
)
void play ( int  id,
const QString filename,
int  volume,
int  flags = 0 
)
void playRaw ( int  id,
const QString ,
int  ,
int  ,
int  ,
int  flags = 0 
)
void pause ( int  id)
void stop ( int  id)
void resume ( int  id)
void setVolume ( int  id,
int  left,
int  right 
)
void setMute ( int  id,
bool  m 
)
void playPriorityOnly ( bool  )
void setSilent ( bool  )
void soundCompleted ( int  )
signal
void deviceReady ( int  id)
signal
void deviceError ( int  id,
QWSSoundClient::DeviceErrors   
)
signal

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