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 1f6a991 commit d21fc97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions Codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ AM_API_PRIVATE size_t read_callback(void* ptr, size_t size, size_t nmemb, void*
AM_API_PRIVATE int seek_callback(void* userdata, ogg_int64_t offset, int whence)
{
auto* file = static_cast<File*>(userdata);
file->Seek(offset, static_cast<FileSeekOrigin>(whence));
file->Seek(offset, static_cast<eFileSeekOrigin>(whence));
return 0;
}

Expand Down Expand Up @@ -55,10 +55,7 @@ bool VorbisCodec::VorbisDecoder::Open(std::shared_ptr<File> file)
const vorbis_info* info = ov_info(&_vorbis, -1);
const AmUInt32 framesCount = ov_pcm_total(&_vorbis, -1);

m_format.SetAll(
info->rate, info->channels, 16, framesCount, info->channels * sizeof(AmAudioSample),
AM_SAMPLE_FORMAT_FLOAT
);
m_format.SetAll(info->rate, info->channels, 16, framesCount, info->channels * sizeof(AmAudioSample), eAudioSampleFormat_Float32);

_initialized = true;

Expand Down
6 changes: 3 additions & 3 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/master/docs/vcpkg.schema.json",
"builtin-baseline": "9f03078bdcbab3ad8c1e3927c40c3fb48e42501f",
"builtin-baseline": "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3",
"name": "amplitude-plugin-codec-vorbis",
"description": "Amplitude plugin to encode and decode OGG/Vorbis audio files.",
"version": "1.0",
"license": "Apache-2.0",
"homepage": "https://github.com/SparkyStudios/AmplitudeAudioSDK",
"homepage": "https://github.com/AmplitudeAudio/plugin-vorbis",
"dependencies": [
{
"name": "libvorbis",
"version>=": "1.3.7#2"
"version>=": "1.3.7#3"
}
]
}

0 comments on commit d21fc97

Please sign in to comment.