audio-io fixed build issue on 64-bit platform (2nd) 16/44016/1 accepted/tizen/mobile/20150717.002855 accepted/tizen/tv/20150717.002910 accepted/tizen/wearable/20150717.002924 submit/tizen/20150716.043920
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Thu, 16 Jul 2015 07:45:56 +0000 (16:45 +0900)
committerKimJeongYeon <jeongyeon.kim@samsung.com>
Thu, 16 Jul 2015 07:46:27 +0000 (16:46 +0900)
[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 <jeongyeon.kim@samsung.com>
Change-Id: I730c2755c55da4e143331e6f01a8fee62fa42ddc

packaging/capi-media-audio-io.spec
src/cpp/CAudioInput.cpp
src/cpp/CAudioOutput.cpp
src/cpp/cpp_audio_io.cpp

index 3d7dd30bc701f0cc72fca31b8ff7716008b856c9..1b3b88f1c546f0d26d866bf2fa88143cf18c0aa4 100644 (file)
@@ -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
index e2c2b77936a8353e95edbc17caaa9ba073829425..88352362773dab9c7104bfcf771f4d80e37e25cb 100644 (file)
@@ -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 */
index 396b4f1cb31c23a9e540aa1aa12008c505de005f..e42cb286118ec448721df701b48fb00c9132f992 100644 (file)
@@ -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);
     }
 
     /*
index e7f72e05151447895659c63caeff50cb0a7f416a..76f87b3591c452add95af310d62a50c546eaeb92 100644 (file)
@@ -896,7 +896,7 @@ int cpp_audio_in_peek(audio_in_h input, const void **buffer, unsigned int *lengt
         CAudioInput* inputHandle = dynamic_cast<CAudioInput*>(handle->audioIoHandle);
         assert(inputHandle);
 
-        inputHandle->peek(buffer, static_cast<size_t*>(length));
+        inputHandle->peek(buffer, (size_t*)length);
     } catch (CAudioError e) {
         AUDIO_IO_LOGE("%s", e.getErrorMsg());
         return _convert_CAudioError(e);