Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Play Audio file always from start
Reply to topic
Author Message
Giannis76



Joined: Jan 11, 2023
Posts: 35

PostPosted: Mar 7, 2023 12:21 PM    Post subject: Play Audio file always from start

Hey Jarek and others,

I have a question on the SoundFileReader. I am using it for giving audio feedback - playing a mp3-file.

Whenever training signal is above threshold, the file shall start. And yes, the file is always played, but not

always from the beginning. It seems, that when again threshold is met, the file is played where it has stopped

before.

But I would like it to play always from start. Means: everytime the threshold is met, the file should START FROM

THE BEGINNING. How can one achieve this. Using property setter?

Thanks for help!
jarek



Joined: Oct 22, 2007
Posts: 1037

PostPosted: Mar 7, 2023 3:59 PM    Post subject:

Try this snippet, see if the behavior is the same (try it with your sound, but the example should work as is):

http://proatech.com/design/sound_reader.bpd
Reply to topic