mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
Fixed mp3 seeking.
Updated dr_flac. --HG-- branch : dev
This commit is contained in:
@@ -61,7 +61,7 @@ bool SoundFileReaderMp3::open(IOStream& stream, Info& info) {
|
||||
|
||||
void SoundFileReaderMp3::seek(Uint64 sampleOffset) {
|
||||
if ( mMp3 ) {
|
||||
drmp3_seek_to_frame( mMp3, sampleOffset );
|
||||
drmp3_seek_to_frame( mMp3, sampleOffset / mChannelCount );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
8
src/thirdparty/dr_libs/dr_flac.h
vendored
8
src/thirdparty/dr_libs/dr_flac.h
vendored
@@ -1,5 +1,5 @@
|
||||
// FLAC audio decoder. Public domain. See "unlicense" statement at the end of this file.
|
||||
// dr_flac - v0.8g - 2018-04-19
|
||||
// dr_flac - v0.9 - 2018-04-24
|
||||
//
|
||||
// David Reid - mackron@gmail.com
|
||||
|
||||
@@ -1742,7 +1742,7 @@ static DRFLAC_INLINE drflac_bool32 drflac__is_lzcnt_supported()
|
||||
|
||||
static DRFLAC_INLINE drflac_uint32 drflac__clz_lzcnt(drflac_cache_t x)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#ifdef DRFLAC_64BIT
|
||||
return (drflac_uint32)__lzcnt64(x);
|
||||
#else
|
||||
@@ -5524,6 +5524,10 @@ const char* drflac_next_vorbis_comment(drflac_vorbis_comment_iterator* pIter, dr
|
||||
|
||||
// REVISION HISTORY
|
||||
//
|
||||
// v0.9 - 2018-04-24
|
||||
// - Fix Clang build.
|
||||
// - Start using major.minor.revision versioning.
|
||||
//
|
||||
// v0.8g - 2018-04-19
|
||||
// - Fix build on non-x86/x64 architectures.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user