mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-16 10:36:17 +02:00
experimental FLAC support
This commit is contained in:
parent
176ed8abc0
commit
d99c3cb9a0
10 changed files with 289 additions and 35 deletions
|
@ -97,7 +97,7 @@ void Player::start()
|
|||
snd_pcm_sw_params(pcm_handle_, swparams);
|
||||
|
||||
active_ = true;
|
||||
playerThread_ = new thread(&Player::worker, this);
|
||||
playerThread_ = thread(&Player::worker, this);
|
||||
}
|
||||
|
||||
|
||||
|
@ -108,12 +108,10 @@ Player::~Player()
|
|||
|
||||
|
||||
void Player::stop() {
|
||||
active_ = false;
|
||||
if (playerThread_ != NULL)
|
||||
if (active_)
|
||||
{
|
||||
playerThread_->join();
|
||||
delete playerThread_;
|
||||
playerThread_ = NULL;
|
||||
active_ = false;
|
||||
playerThread_.join();
|
||||
}
|
||||
|
||||
if (pcm_handle_ != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue