aboutsummaryrefslogtreecommitdiff
path: root/src/chips
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-06-25 20:37:03 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-06-25 20:37:03 +0300
commitc5509c43b4010ecc3d4f8b464996b26756b645e6 (patch)
treef53e3f62b424b4f3052eece54d304039d8e1aada /src/chips
parente3a353a6b84b47ad4204b110249bc74b16554985 (diff)
parente1bb226e1b8235a2aa80141fc07a305b8a5f1818 (diff)
downloadlibADLMIDI-c5509c43b4010ecc3d4f8b464996b26756b645e6.tar.gz
libADLMIDI-c5509c43b4010ecc3d4f8b464996b26756b645e6.tar.bz2
libADLMIDI-c5509c43b4010ecc3d4f8b464996b26756b645e6.zip
Merge branch 'master' into stable
Diffstat (limited to 'src/chips')
-rw-r--r--src/chips/opl_chip_base.tcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chips/opl_chip_base.tcc b/src/chips/opl_chip_base.tcc
index 48ad103..a64aa7c 100644
--- a/src/chips/opl_chip_base.tcc
+++ b/src/chips/opl_chip_base.tcc
@@ -236,8 +236,8 @@ void OPLChipBaseT<T>::resampledGenerate(int32_t *output)
rsm->out_count = 1;
rsm->out_data = f_out;
}
- output[0] = std::lround(f_out[0]);
- output[1] = std::lround(f_out[1]);
+ output[0] = static_cast<int32_t>(std::lround(f_out[0]));
+ output[1] = static_cast<int32_t>(std::lround(f_out[1]));
}
#else
template <class T>