1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-12-02 09:17:55 +01:00
php-libtgvoip/audio/AudioOutputModule.h

35 lines
941 B
C
Raw Normal View History

//
// libtgvoip is free and unencumbered public domain software.
// For more information, see http://unlicense.org or the UNLICENSE file
// you should have received with this source code distribution.
//
#ifndef LIBTGVOIP_AUDIOOUTPUTPHP_H
#define LIBTGVOIP_AUDIOOUTPUTPHP_H
2017-06-22 14:48:52 +02:00
#include "../libtgvoip/audio/AudioOutput.h"
2017-07-01 19:40:28 +02:00
#include "../libtgvoip/VoIPController.h"
2017-07-10 12:30:13 +02:00
#include "../main.h"
namespace tgvoip{ namespace audio{
2017-07-04 15:50:02 +02:00
class AudioOutputModule : public AudioOutput{
public:
2017-07-04 15:50:02 +02:00
AudioOutputModule(std::string deviceID, void* controller);
virtual ~AudioOutputModule();
virtual void Configure(uint32_t sampleRate, uint32_t bitsPerSample, uint32_t channels);
virtual void Start();
virtual void Stop();
virtual bool IsPlaying() override;
virtual float GetLevel() override;
2017-07-09 21:12:01 +02:00
unsigned char * readSamples();
2017-07-04 15:50:02 +02:00
static void EnumerateDevices(std::vector<AudioOutputDevice>& devs);
2017-06-22 20:38:20 +02:00
private:
VoIP *wrapper;
};
}}
#endif //LIBTGVOIP_AUDIOOUTPUTPHP_H