Recording by audio i/o callback is very slow (only pick up less than 45% of audio)
Recording by audio i/o callback is very slow (only pick up less than 45% of audio)
BY 10 Jul 2017Native Application Development
Hi all,
I follow the audio i/o tutorial (https://developer.tizen.org/dev-guide/2.4/org.tizen.tutorials/html/native/multimedia/audio_io_tutorial_n.htm) to build a real-time audio recording app. However, the callback is called very infrequently for recording the whole sound. For example, when I start the recording for 5 second, the callback actually only gives a 2-second clip (instead of 5).
Here is a dummy testing code which only dumps how many bytes have been recorded:
Attached images include the result of running this code on Galaxy Gear S3. As you can see in the image, the recording callback is called from time 32.3 to time 37.7 (over 5 seconds), but only 224250 bytes are received (it should be (37.7-32.3)*48000*sizeof(short) = 518400). That means only less than 40% of audio is recorded.
Could you give me some suggestion to solve this issue?
Recording by audio i/o callback is very slow (only pick up less than 45% of audio)
Hi all,
I follow the audio i/o tutorial (https://developer.tizen.org/dev-guide/2.4/org.tizen.tutorials/html/native/multimedia/audio_io_tutorial_n.htm) to build a real-time audio recording app. However, the callback is called very infrequently for recording the whole sound. For example, when I start the recording for 5 second, the callback actually only gives a 2-second clip (instead of 5).
Here is a dummy testing code which only dumps how many bytes have been recorded:
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio