Modernized loop

This commit is contained in:
Dimitris Panokostas 2020-08-15 21:37:44 +02:00
parent 54c929b744
commit 0e0f685dee

View file

@ -34,9 +34,9 @@ cda_audio::cda_audio(int num_sectors, int sectorsize, int samplerate, bool inter
bufsize = num_sectors * sectorsize; bufsize = num_sectors * sectorsize;
this->sectorsize = sectorsize; this->sectorsize = sectorsize;
for (int i = 0; i < 2; i++) for (auto& buffer : buffers)
{ {
buffers[i] = xcalloc(uae_u8, num_sectors * ((bufsize + 4095) & ~4095)); buffer = xcalloc(uae_u8, num_sectors * ((bufsize + 4095) & ~4095));
} }
this->num_sectors = num_sectors; this->num_sectors = num_sectors;