28 lines
No EOL
346 B
C++
28 lines
No EOL
346 B
C++
#pragma once
|
|
#include <mpg123.h>
|
|
|
|
|
|
namespace drp::task {
|
|
|
|
|
|
/**
|
|
* the audio Server.
|
|
* Read and broadcast audio data.
|
|
*/
|
|
class ServerTask : public BaseTask {
|
|
public:
|
|
explicit ServerTask();
|
|
~ServerTask();
|
|
|
|
void handle() override;
|
|
|
|
private:
|
|
mpg123_handle* mpgHandle;
|
|
|
|
long sampleRate;
|
|
int channels;
|
|
int encoding;
|
|
};
|
|
|
|
|
|
} |