Merge pull request #1 from foodornt/main

Set atomic counter to 0 when initialized
This commit is contained in:
bert hubert 2022-08-22 09:20:18 +02:00 committed by GitHub
commit f66c2e92f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ int main()
cerr<<"Error opening audio: "<<audio_object_strerror(ao, res)<<endl; cerr<<"Error opening audio: "<<audio_object_strerror(ao, res)<<endl;
} }
std::atomic<int64_t> counter; std::atomic<int64_t> counter = 0;
auto player = [&]() { auto player = [&]() {
vector<int16_t> data; vector<int16_t> data;
int ourcounter=0; int ourcounter=0;