mirror of
https://github.com/clangen/musikcube.git
synced 2025-02-23 00:39:57 +00:00
Declare the playerThreadProc prototype -- this should fix the clang
compile.
This commit is contained in:
parent
b2e90b8d72
commit
94f0fb1653
@ -60,6 +60,8 @@ static float* hammingWindow = nullptr;
|
||||
namespace musik {
|
||||
namespace core {
|
||||
namespace audio {
|
||||
static void playerThreadLoop(Player* player);
|
||||
|
||||
struct FftContext {
|
||||
FftContext() {
|
||||
samples = 0;
|
||||
@ -184,9 +186,7 @@ int Player::State() {
|
||||
return this->state;
|
||||
}
|
||||
|
||||
namespace musik { namespace core { namespace audio {
|
||||
void playerThreadLoop(Player* player) {
|
||||
|
||||
static void musik::core::audio::playerThreadLoop(Player* player) {
|
||||
player->stream = Stream::Create();
|
||||
|
||||
BufferPtr buffer;
|
||||
@ -334,7 +334,6 @@ namespace musik { namespace core { namespace audio {
|
||||
|
||||
delete player;
|
||||
}
|
||||
} } }
|
||||
|
||||
void Player::ReleaseAllBuffers() {
|
||||
std::unique_lock<std::mutex> lock(this->queueMutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user