Fixed build

This commit is contained in:
emeric
2026-02-17 23:15:44 +01:00
parent a90a66802f
commit e1279c84ed
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -18,6 +18,8 @@
* along with LMS. If not, see <http://www.gnu.org/licenses/>. * along with LMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
#include <string_view> #include <string_view>
#include "audio/Exception.hpp" #include "audio/Exception.hpp"
@@ -18,6 +18,8 @@
* along with LMS. If not, see <http://www.gnu.org/licenses/>. * along with LMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
#include <memory> #include <memory>
extern "C" extern "C"
+2 -2
View File
@@ -64,12 +64,12 @@ int main(int argc, char* argv[])
try try
{ {
audio::PcmDecoderParameters decoderParams; audio::PcmParameters decoderParams;
decoderParams.byteOrder = std::endian::little; decoderParams.byteOrder = std::endian::little;
decoderParams.channelCount = 2; decoderParams.channelCount = 2;
decoderParams.sampleRate = 48000; decoderParams.sampleRate = 48000;
decoderParams.planar = true; decoderParams.planar = true;
decoderParams.sampleType = audio::PcmDecodeSampleType::Float32; decoderParams.sampleType = audio::PcmSampleType::Float32;
auto decoder{ audio::createPcmDecoder(inputPath, decoderParams) }; auto decoder{ audio::createPcmDecoder(inputPath, decoderParams) };