mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
remove float normalization (breaks floating point WAV)
This commit is contained in:
@@ -3,8 +3,6 @@ image: Visual Studio 2017
|
|||||||
clone_depth: 1
|
clone_depth: 1
|
||||||
build_script:
|
build_script:
|
||||||
- ps: >-
|
- ps: >-
|
||||||
Write-Output "#define VERSION_INFO `"$(git log -1 --date="format:%F %R" --format="%cd, %h")`"" > version.h
|
|
||||||
|
|
||||||
mkdir builds
|
mkdir builds
|
||||||
|
|
||||||
cd builds
|
cd builds
|
||||||
|
|||||||
@@ -34,8 +34,6 @@ openal_buffer::openal_buffer( std::string const &Filename ) :
|
|||||||
if (sf == nullptr)
|
if (sf == nullptr)
|
||||||
throw std::runtime_error("sound: sf_open failed");
|
throw std::runtime_error("sound: sf_open failed");
|
||||||
|
|
||||||
sf_command(sf, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE);
|
|
||||||
|
|
||||||
int16_t *fbuf = new int16_t[si.frames * si.channels];
|
int16_t *fbuf = new int16_t[si.frames * si.channels];
|
||||||
if (sf_readf_short(sf, fbuf, si.frames) != si.frames)
|
if (sf_readf_short(sf, fbuf, si.frames) != si.frames)
|
||||||
throw std::runtime_error("sound: incomplete file");
|
throw std::runtime_error("sound: incomplete file");
|
||||||
|
|||||||
Reference in New Issue
Block a user