How to play an audio in specified time bounds? #596
-
Hello. I am currently utilizing ma_sound structure to play an audio. This is how I play the sound now.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Try using |
Beta Was this translation helpful? Give feedback.
Try using
ma_data_source_set_range_in_pcm_frames()
. Get thema_data_source
object withma_sound_get_data_source()
. The range is specified in frames so you'll need to convert your seconds to frames which you can use with the sample rate which you can retrieve withma_sound_get_data_format()
(pass in NULL for the variables you don't need).