Skip to content

Commit

Permalink
chore: Update plugin for latest SDK version.
Browse files Browse the repository at this point in the history
  • Loading branch information
na2axl committed Oct 6, 2024
1 parent 84b1fe2 commit 8fef726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand All @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8fef726

Please sign in to comment.