~ubuntu-branches/ubuntu/raring/mumble/raring

« back to all changes in this revision

Viewing changes to src/mumble/AudioOutput.h

  • Committer: Bazaar Package Importer
  • Author(s): Thorvald Natvig, Patrick Matthäi, Thorvald Natvig
  • Date: 2011-02-19 22:58:58 UTC
  • mfrom: (9.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20110219225858-0xlftrf4z1z4jt9e
Tags: 1.2.3-1
[ Patrick Matthäi ]
* Do not build with non existant libpulse-dev on hurd-i386.

[ Thorvald Natvig ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                virtual void setDeviceChoice(const QVariant &, Settings &) = 0;
88
88
                virtual bool canMuteOthers() const;
89
89
                virtual bool usesOutputDelay() const;
 
90
                virtual bool canExclusive() const;
90
91
};
91
92
 
92
93
class AudioOutputUser : public QObject {
154
155
class SoundFile : public QObject {
155
156
        private:
156
157
                Q_OBJECT
157
 
                Q_DISABLE_COPY(SoundFile);
 
158
                Q_DISABLE_COPY(SoundFile)
158
159
        protected:
159
160
                SNDFILE *sfFile;
160
161
                SF_INFO siInfo;
230
231
 
231
232
                AudioOutput();
232
233
                ~AudioOutput();
 
234
 
233
235
                void addFrameToBuffer(ClientUser *, const QByteArray &, unsigned int iSeq, MessageHandler::UDPMessageType type);
234
236
                void removeBuffer(const ClientUser *);
235
237
                AudioOutputSample *playSample(const QString &filename, bool loop = false);
236
238
                void run() = 0;
 
239
                virtual bool isAlive() const;
237
240
                const float *getSpeakerPos(unsigned int &nspeakers);
238
241
                static float calcGain(float dotproduct, float distance);
 
242
                unsigned int getMixerFreq() const;
239
243
};
240
244
 
241
245
#else