From: KimJeongYeon Date: Thu, 16 Jul 2015 07:45:56 +0000 (+0900) Subject: audio-io fixed build issue on 64-bit platform (2nd) X-Git-Tag: submit/tizen/20150716.043920^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a742a76e1ce141317c5dbfbb472707801f0d91de;p=platform%2Fcore%2Fapi%2Faudio-io.git audio-io fixed build issue on 64-bit platform (2nd) [Version] 0.3.7 [Profile] Common [Issue Type] Bug [Dependency module] NA [Dependency commit] NA [Comment] 'size_t' uses 8 bytes in 64-bit platform. Signed-off-by: KimJeongYeon Change-Id: I730c2755c55da4e143331e6f01a8fee62fa42ddc --- diff --git a/packaging/capi-media-audio-io.spec b/packaging/capi-media-audio-io.spec index 3d7dd30..1b3b88f 100644 --- a/packaging/capi-media-audio-io.spec +++ b/packaging/capi-media-audio-io.spec @@ -1,6 +1,6 @@ Name: capi-media-audio-io Summary: An Audio Input & Audio Output library in Tizen Native API -Version: 0.3.6 +Version: 0.3.7 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/cpp/CAudioInput.cpp b/src/cpp/CAudioInput.cpp index e2c2b77..8835236 100644 --- a/src/cpp/CAudioInput.cpp +++ b/src/cpp/CAudioInput.cpp @@ -355,7 +355,7 @@ size_t CAudioInput::read(void* buffer, size_t length) throw (CAudioError) { } if (buffer == NULL) { - THROW_ERROR_MSG_FORMAT(CAudioError::ERROR_INVALID_ARGUMENT, "Parameters are invalid - buffer:%p, length:%d", buffer, length); + THROW_ERROR_MSG_FORMAT(CAudioError::ERROR_INVALID_ARGUMENT, "Parameters are invalid - buffer:%p, length:%zu", buffer, length); } /* Checks synchronous flag */ diff --git a/src/cpp/CAudioOutput.cpp b/src/cpp/CAudioOutput.cpp index 396b4f1..e42cb28 100644 --- a/src/cpp/CAudioOutput.cpp +++ b/src/cpp/CAudioOutput.cpp @@ -325,7 +325,7 @@ size_t CAudioOutput::write(const void* buffer, size_t length) throw (CAudioError } if (buffer == NULL) { - THROW_ERROR_MSG_FORMAT(CAudioError::ERROR_INVALID_ARGUMENT, "Parameters are invalid - buffer:%p, length:%d", buffer, length); + THROW_ERROR_MSG_FORMAT(CAudioError::ERROR_INVALID_ARGUMENT, "Parameters are invalid - buffer:%p, length:%zu", buffer, length); } /* diff --git a/src/cpp/cpp_audio_io.cpp b/src/cpp/cpp_audio_io.cpp index e7f72e0..76f87b3 100644 --- a/src/cpp/cpp_audio_io.cpp +++ b/src/cpp/cpp_audio_io.cpp @@ -896,7 +896,7 @@ int cpp_audio_in_peek(audio_in_h input, const void **buffer, unsigned int *lengt CAudioInput* inputHandle = dynamic_cast(handle->audioIoHandle); assert(inputHandle); - inputHandle->peek(buffer, static_cast(length)); + inputHandle->peek(buffer, (size_t*)length); } catch (CAudioError e) { AUDIO_IO_LOGE("%s", e.getErrorMsg()); return _convert_CAudioError(e);