From 8fef726094734975cb8d674ca25a4c7ded057d45 Mon Sep 17 00:00:00 2001 From: Axel Nana Date: Sun, 6 Oct 2024 04:05:20 +0100 Subject: [PATCH] chore: Update plugin for latest SDK version. --- Codec.cpp | 4 ++-- vcpkg.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Codec.cpp b/Codec.cpp index 33282bb..9da8c81 100644 --- a/Codec.cpp +++ b/Codec.cpp @@ -63,7 +63,7 @@ void FlacCodec::FlacDecoderInternal::metadata_callback(const ::FLAC__StreamMetad auto bps = metadata->data.stream_info.bits_per_sample; auto frame_size = metadata->data.stream_info.min_framesize; - _decoder->m_format.SetAll(sample_rate, channels, bps, total_samples, channels * sizeof(AmAudioSample), AM_SAMPLE_FORMAT_FLOAT); + _decoder->m_format.SetAll(sample_rate, channels, bps, total_samples, channels * sizeof(AmAudioSample), eAudioSampleFormat_Float32); } } @@ -86,7 +86,7 @@ ::FLAC__StreamDecoderSeekStatus FlacCodec::FlacDecoderInternal::seek_callback(FL if (_decoder->_file == nullptr) return ::FLAC__STREAM_DECODER_SEEK_STATUS_ERROR; - _decoder->_file->Seek(absolute_byte_offset, eFSO_START); + _decoder->_file->Seek(absolute_byte_offset, eFileSeekOrigin_Start); return ::FLAC__STREAM_DECODER_SEEK_STATUS_OK; } diff --git a/vcpkg.json b/vcpkg.json index c1010e2..13fe345 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,11 +1,11 @@ { "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/master/docs/vcpkg.schema.json", - "builtin-baseline": "9f03078bdcbab3ad8c1e3927c40c3fb48e42501f", + "builtin-baseline": "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3", "name": "amplitude-plugin-codec-flac", "description": "Amplitude plugin to encode and decode FLAC audio files.", "version": "1.0", "license": "Apache-2.0", - "homepage": "https://github.com/SparkyStudios/AmplitudeAudioSDK", + "homepage": "https://github.com/AmplitudeAudio/plugin-flac", "dependencies": [ { "name": "libflac",