From a396188f230b33cece34dd850251c05e842ec0ac Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 1 Feb 2019 11:30:08 -0500 Subject: [PATCH] BSound: Add explicit cast to bigtime_t. Fixes the GCC2 build. --- src/kits/media/Sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/media/Sound.cpp b/src/kits/media/Sound.cpp index a5b1653c43..34956e80cb 100644 --- a/src/kits/media/Sound.cpp +++ b/src/kits/media/Sound.cpp @@ -143,7 +143,7 @@ BSound::Duration() const media_raw_audio_format::B_AUDIO_SIZE_MASK; int64 frameCount = Size() / (fFormat.channel_count * bytesPerSample); - return ceil((1000000LL * frameCount) / frameRate); + return (bigtime_t)ceil((1000000LL * frameCount) / frameRate); } @@ -174,7 +174,7 @@ BSound::Size() const } -bool +bool BSound::GetDataAt(off_t offset, void* intoBuffer, size_t bufferSize, size_t* outUsed) {