Home
last modified time | relevance | path

Searched refs:userSize (Results 1 - 19 of 19) sorted by relevance

/foundation/multimedia/audio_lite/frameworks/passthrough/
H A Daudio_capturer_client.cpp113 int32_t AudioCapturer::AudioCapturerClient::Read(uint8_t *buffer, size_t userSize, bool isBlockingRead) in Read() argument
119 return impl_->Read(buffer, userSize, isBlockingRead); in Read()
H A Daudio_capturer_client.h40 int32_t Read(uint8_t *buffer, size_t userSize, bool isBlockingRead);
/foundation/multimedia/audio_lite/frameworks/
H A Daudio_capturer.cpp93 int32_t AudioCapturer::Read(uint8_t *buffer, size_t userSize, bool isBlockingRead) in Read() argument
96 return impl_->Read(buffer, userSize, isBlockingRead); in Read()
/foundation/multimedia/audio_lite/services/impl/
H A Daudio_capturer_impl.cpp201 int32_t AudioCapturerImpl::Read(uint8_t *buffer, size_t userSize, bool isBlockingRead) in Read() argument
203 if (buffer == nullptr || !userSize) { in Read()
204 MEDIA_ERR_LOG("Invalid buffer or userSize:%u", userSize); in Read()
217 frame.bufferLen = userSize; in Read()
228 stream.bufferLen = userSize; in Read()
H A Daudio_capturer_impl.h45 int32_t Read(uint8_t *buffer, size_t userSize, bool isBlockingRead);
/foundation/multimedia/audio_lite/interfaces/kits/
H A Daudio_capturer.h196 * @param userSize Indicates the size of the buffer into which the audio data is to be written, in bytes.
197 * <b>userSize >= frameCount * channelCount * BytesPerSample</b> must evaluate to <b>true</b>. You can call
201 * <b>userSize</b>. If the reading fails, one of the following error codes is returned:
208 int32_t Read(uint8_t *buffer, size_t userSize, bool isBlockingRead);
/foundation/multimedia/audio_lite/frameworks/binder/
H A Daudio_capturer_client.h44 int32_t Read(uint8_t *buffer, size_t userSize, bool isBlockingRead);
H A Daudio_capturer_client.cpp379 int32_t AudioCapturer::AudioCapturerClient::Read(uint8_t *buffer, size_t userSize, bool isBlockingRead) in Read() argument
381 if (buffer == nullptr || !userSize) { in Read()
398 if (dataSize - sizeof(Timestamp) > userSize) { in Read()
404 (void)memcpy_s(buffer, userSize, buf + sizeof(Timestamp), dataSize - sizeof(Timestamp)); in Read()
/foundation/multimedia/audio_framework/services/audio_service/client/src/
H A Dcapturer_in_client.cpp157 int32_t Read(uint8_t &buffer, size_t userSize, bool isBlockingRead) override;
239 int32_t HandleCapturerRead(size_t &readSize, size_t &userSize, uint8_t &buffer, bool isBlockingRead);
1589 int32_t CapturerInClientInner::HandleCapturerRead(size_t &readSize, size_t &userSize, uint8_t &buffer, in HandleCapturerRead() argument
1592 Trace trace("CapturerInClientInner::HandleCapturerRead " + std::to_string(userSize)); in HandleCapturerRead()
1593 while (readSize < userSize) { in HandleCapturerRead()
1594 AUDIO_DEBUG_LOG("readSize %{public}zu < userSize %{public}zu", readSize, userSize); in HandleCapturerRead()
1597 size_t readableSize = std::min(result.size, userSize - readSize); in HandleCapturerRead()
1598 if (readSize + result.size >= userSize) { // If ringCache is sufficient in HandleCapturerRead()
1635 int32_t CapturerInClientInner::Read(uint8_t &buffer, size_t userSize, boo argument
[all...]
H A Dfast_audio_stream.cpp599 int32_t FastAudioStream::Read(uint8_t &buffer, size_t userSize, bool isBlockingRead) in Read() argument
H A Drenderer_in_client.cpp1953 int32_t RendererInClientInner::Read(uint8_t &buffer, size_t userSize, bool isBlockingRead) in Read() argument
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocapturer/include/
H A Daudio_capturer.h312 * @param userSize Indicates the size of the buffer into which the audio data is to be written, in bytes.
313 * <b>userSize >= frameCount * channelCount * BytesPerSample</b> must evaluate to <b>true</b>. You can call
317 * <b>userSize</b>. If the reading fails, one of the following error codes is returned.
323 virtual int32_t Read(uint8_t &buffer, size_t userSize, bool isBlockingRead) const = 0;
/foundation/multimedia/audio_framework/frameworks/js/napi/audiocapturer/
H A Dnapi_audio_capturer.h53 uint32_t userSize; member
H A Dnapi_audio_capturer.cpp438 uint32_t userSize = context->userSize; in ReadFromNative() local
439 uint8_t *buffer = new uint8_t[userSize]; in ReadFromNative()
442 while (static_cast<uint32_t>(bytesRead) < context->userSize) { in ReadFromNative()
444 userSize - bytesRead, context->isBlocking); in ReadFromNative()
471 context->status = NapiParamUtils::GetValueUInt32(env, context->userSize, argv[PARAM0]); in Read()
472 NAPI_CHECK_ARGS_RETURN_VOID(context, context->status == napi_ok, "GetValueUInt32 userSize failed", in Read()
475 NAPI_CHECK_ARGS_RETURN_VOID(context, context->status == napi_ok, "GetValueUInt32 userSize failed", in Read()
/foundation/multimedia/audio_framework/frameworks/native/audiostream/include/
H A Di_audio_stream.h201 virtual int32_t Read(uint8_t &buffer, size_t userSize, bool isBlockingRead) = 0;
H A Dfast_audio_stream.h145 int32_t Read(uint8_t &buffer, size_t userSize, bool isBlockingRead) override;
/foundation/multimedia/audio_framework/services/audio_service/client/include/
H A Drenderer_in_client_private.h132 int32_t Read(uint8_t &buffer, size_t userSize, bool isBlockingRead) override;
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/include/
H A Daudio_capturer_private.h45 int32_t Read(uint8_t &buffer, size_t userSize, bool isBlockingRead) const override;
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/src/
H A Daudio_capturer.cpp553 int32_t AudioCapturerPrivate::Read(uint8_t &buffer, size_t userSize, bool isBlockingRead) const in Read() argument
556 CheckSignalData(&buffer, userSize); in Read()
557 int size = audioStream_->Read(buffer, userSize, isBlockingRead); in Read()

Completed in 19 milliseconds