Skip to content

Commit 8fef726

Browse files
committed
chore: Update plugin for latest SDK version.
1 parent 84b1fe2 commit 8fef726

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Codec.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void FlacCodec::FlacDecoderInternal::metadata_callback(const ::FLAC__StreamMetad
6363
auto bps = metadata->data.stream_info.bits_per_sample;
6464
auto frame_size = metadata->data.stream_info.min_framesize;
6565

66-
_decoder->m_format.SetAll(sample_rate, channels, bps, total_samples, channels * sizeof(AmAudioSample), AM_SAMPLE_FORMAT_FLOAT);
66+
_decoder->m_format.SetAll(sample_rate, channels, bps, total_samples, channels * sizeof(AmAudioSample), eAudioSampleFormat_Float32);
6767
}
6868
}
6969

@@ -86,7 +86,7 @@ ::FLAC__StreamDecoderSeekStatus FlacCodec::FlacDecoderInternal::seek_callback(FL
8686
if (_decoder->_file == nullptr)
8787
return ::FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;
8888

89-
_decoder->_file->Seek(absolute_byte_offset, eFSO_START);
89+
_decoder->_file->Seek(absolute_byte_offset, eFileSeekOrigin_Start);
9090
return ::FLAC__STREAM_DECODER_SEEK_STATUS_OK;
9191
}
9292

vcpkg.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/master/docs/vcpkg.schema.json",
3-
"builtin-baseline": "9f03078bdcbab3ad8c1e3927c40c3fb48e42501f",
3+
"builtin-baseline": "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3",
44
"name": "amplitude-plugin-codec-flac",
55
"description": "Amplitude plugin to encode and decode FLAC audio files.",
66
"version": "1.0",
77
"license": "Apache-2.0",
8-
"homepage": "https://github.com/SparkyStudios/AmplitudeAudioSDK",
8+
"homepage": "https://github.com/AmplitudeAudio/plugin-flac",
99
"dependencies": [
1010
{
1111
"name": "libflac",

0 commit comments

Comments
 (0)