/foundation/multimedia/audio_framework/services/audio_service/test/example/ |
H A D | audio_hdi_device_test.cpp | 43 uint32_t spanSizeInframe = 0; in RenderFrameFromFile() local 46 hdiRenderSink_->GetMmapBufferInfo(fd, totalSizeInframe, spanSizeInframe, byteSizePerFrame); in RenderFrameFromFile() 51 if (spanSizeInframe > SIZE_MAX / byteSizePerFrame) { in RenderFrameFromFile() 55 size_t tempBufferSize = spanSizeInframe * byteSizePerFrame; in RenderFrameFromFile()
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | audio_process_in_server.cpp | 371 uint32_t &spanSizeInframe, DeviceStreamInfo &serverStreamInfo, const std::shared_ptr<OHAudioBuffer> &buffer) in ConfigProcessBuffer() 378 CHECK_AND_RETURN_RET_LOG(totalSizeInframe != 0 && spanSizeInframe != 0 && totalSizeInframe % spanSizeInframe == 0, in ConfigProcessBuffer() 382 uint32_t spanTime = spanSizeInframe * AUDIO_MS_PER_SECOND / *serverStreamInfo.samplingRate.rbegin(); in ConfigProcessBuffer() 384 totalSizeInframe_ = totalSizeInframe / spanSizeInframe * spanSizeInframe_; in ConfigProcessBuffer() 393 spanSizeInByte = static_cast<size_t>(spanSizeInframe * serverByteSize); in ConfigProcessBuffer() 409 AUDIO_INFO_LOG("Config: totalSizeInframe:%{public}d spanSizeInframe:%{public}d byteSizePerFrame:%{public}d", in ConfigProcessBuffer() 370 ConfigProcessBuffer(uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, DeviceStreamInfo &serverStreamInfo, const std::shared_ptr<OHAudioBuffer> &buffer) ConfigProcessBuffer() argument
|
H A D | audio_endpoint_separate.cpp | 337 int32_t AudioEndpointSeparate::GetPreferBufferInfo(uint32_t &totalSizeInframe, uint32_t &spanSizeInframe) in GetPreferBufferInfo() argument 340 spanSizeInframe = dstSpanSizeInframe_; in GetPreferBufferInfo()
|
H A D | audio_service.cpp | 546 uint32_t spanSizeInframe = 0; in GetAudioProcess() local 547 audioEndpoint->GetPreferBufferInfo(totalSizeInframe, spanSizeInframe); in GetAudioProcess() 557 int32_t ret = process->ConfigProcessBuffer(totalSizeInframe, spanSizeInframe, deviceInfo.audioStreamInfo, buffer); in GetAudioProcess()
|
H A D | audio_endpoint.cpp | 133 int32_t GetPreferBufferInfo(uint32_t &totalSizeInframe, uint32_t &spanSizeInframe) override; 902 int32_t AudioEndpointInner::GetPreferBufferInfo(uint32_t &totalSizeInframe, uint32_t &spanSizeInframe) in GetPreferBufferInfo() argument 905 spanSizeInframe = dstSpanSizeInframe_; in GetPreferBufferInfo()
|
/foundation/multimedia/audio_framework/services/audio_service/server/include/ |
H A D | audio_endpoint.h | 86 virtual int32_t GetPreferBufferInfo(uint32_t &totalSizeInframe, uint32_t &spanSizeInframe) = 0; 121 int32_t GetPreferBufferInfo(uint32_t &totalSizeInframe, uint32_t &spanSizeInframe) override;
|
H A D | audio_process_in_server.h | 81 int32_t ConfigProcessBuffer(uint32_t &totalSizeInframe, uint32_t &spanSizeInframe,
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/common/ |
H A D | i_audio_renderer_sink.h | 123 virtual int32_t GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe,
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/common/ |
H A D | i_audio_capturer_source.h | 121 virtual int32_t GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe,
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/remote_fast/ |
H A D | remote_fast_audio_capturer_source.cpp | 86 int32_t GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, 411 uint32_t &spanSizeInframe, uint32_t &byteSizePerFrame) in GetMmapBufferInfo() 417 spanSizeInframe = eachReadFrameSize_; in GetMmapBufferInfo() 410 GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, uint32_t &byteSizePerFrame) GetMmapBufferInfo() argument
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/fast/ |
H A D | fast_audio_renderer_sink.cpp | 99 int32_t GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, 305 int32_t FastAudioRendererSinkInner::GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, in GetMmapBufferInfo() argument 311 spanSizeInframe = eachReadFrameSize_; in GetMmapBufferInfo()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/fast/ |
H A D | fast_audio_capturer_source.cpp | 72 int32_t GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, 373 int32_t FastAudioCapturerSourceInner::GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, in GetMmapBufferInfo() argument 379 spanSizeInframe = eachReadFrameSize_; in GetMmapBufferInfo()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/remote_fast/ |
H A D | remote_fast_audio_renderer_sink.cpp | 108 int32_t GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, 361 uint32_t &spanSizeInframe, uint32_t &byteSizePerFrame) in GetMmapBufferInfo() 367 spanSizeInframe = eachReadFrameSize_; in GetMmapBufferInfo() 360 GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, uint32_t &byteSizePerFrame) GetMmapBufferInfo() argument
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/bluetooth/ |
H A D | bluetooth_renderer_sink.cpp | 160 int32_t GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, 1079 int32_t BluetoothRendererSinkInner::GetMmapBufferInfo(int &fd, uint32_t &totalSizeInframe, uint32_t &spanSizeInframe, in GetMmapBufferInfo() argument 1085 spanSizeInframe = eachReadFrameSize_; in GetMmapBufferInfo()
|