16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 11:19:19 +02:00

reformat: use auto on certain types

This commit is contained in:
jerrrrycho
2026-07-04 04:04:17 +02:00
parent a4c126b4ea
commit f61068ff89
53 changed files with 200 additions and 201 deletions

View File

@@ -36,7 +36,7 @@ openal_buffer::openal_buffer( std::string const &Filename ) :
sf_command(sf, SFC_SET_NORM_FLOAT, nullptr, SF_TRUE);
float *fbuf = new float[si.frames * si.channels];
auto fbuf = new float[si.frames * si.channels];
if (sf_readf_float(sf, fbuf, si.frames) != si.frames)
throw std::runtime_error("sound: incomplete file");
@@ -47,7 +47,7 @@ openal_buffer::openal_buffer( std::string const &Filename ) :
if (si.channels != 1)
WriteLog("sound: warning: mixing multichannel file to mono");
int16_t *buf = new int16_t[si.frames];
auto buf = new int16_t[si.frames];
for (size_t i = 0; i < si.frames; i++)
{
float accum = 0;