Fixed build
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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) };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user