1 // Copyright 2005-2019 The Mumble Developers. All rights reserved.
2 // Use of this source code is governed by a BSD-style license
3 // that can be found in the LICENSE file at the root of the
4 // Mumble source tree or at <https://www.mumble.info/LICENSE>.
5 
6 #ifndef MUMBLE_MUMBLE_AUDIOOUTPUTUSER_H_
7 #define MUMBLE_MUMBLE_AUDIOOUTPUTUSER_H_
8 
9 #include <QtCore/QObject>
10 
11 class AudioOutputUser : public QObject {
12 	private:
13 		Q_OBJECT
14 		Q_DISABLE_COPY(AudioOutputUser)
15 	protected:
16 		unsigned int iBufferSize;
17 		void resizeBuffer(unsigned int newsize);
18 	public:
19 		AudioOutputUser(const QString& name);
20 		~AudioOutputUser() Q_DECL_OVERRIDE;
21 		const QString qsName;
22 		float *pfBuffer;
23 		float *pfVolume;
24 		float fPos[3];
25 		virtual bool needSamples(unsigned int snum) = 0;
26 };
27 
28 #endif  // AUDIOOUTPUTUSER_H_
29