Set atomic counter to 0 when initialized

This commit is contained in:
Darda 2022-08-22 09:48:44 +03:00
parent dc82ea2874
commit ca27c575d3
1 changed files with 1 additions and 1 deletions

View File

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