Reset dump values when pause function is called 77/308877/3 accepted/tizen/unified/20240404.021341 accepted/tizen/unified/x/20240404.062114
authorJaechul Lee <jcsing.lee@samsung.com>
Tue, 2 Apr 2024 06:45:52 +0000 (15:45 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Tue, 2 Apr 2024 06:51:18 +0000 (15:51 +0900)
All media streams couldn't be played because there could be a ducking problem
when a media stream which should be ducked doesn't write pcm data.(in
case of this, netflix)

[Version] 0.5.67
[Issue Type] DF240327-00487

Change-Id: I7ad6b49f47cf8b13ba14e72158d71895de57f692
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/capi-media-audio-io.spec
src/cpp/CAudioOutput.cpp

index d75c66b..8c46590 100644 (file)
@@ -1,6 +1,6 @@
 Name:           capi-media-audio-io
 Summary:        An Audio Input & Audio Output library in Tizen Native API
-Version:        0.5.66
+Version:        0.5.67
 Release:        0
 Group:          Multimedia/API
 License:        Apache-2.0
index 6e875fe..d50762a 100644 (file)
@@ -218,6 +218,9 @@ void CAudioOutput::pause() {
     CAudioIO::pause();
     CAudioIO::setState(CAudioInfo::EAudioIOState::AUDIO_IO_STATE_PAUSED);
 
+    __mTotalWrittenCount = 0;
+    __mTotalWrittenBytes = 0;
+
     locker.unlock();
 
     CAudioIO::onStateChanged(CAudioInfo::EAudioIOState::AUDIO_IO_STATE_PAUSED);
@@ -389,7 +392,7 @@ void CAudioOutput::__dumpStat() noexcept {
 }
 
 void CAudioOutput::__dumpStat(size_t length) noexcept {
-    static constexpr auto PRINT_INTERVAL_BYTES = 256 * 1024; // 256k
+    static constexpr auto PRINT_INTERVAL_BYTES = 96 * 1024; // ramp volume duration typically set to 500ms
     static constexpr auto MIN_PRINTS = 20;
     static uint64_t writtenBytes = 0;