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: 7

PostPosted: Mar 7, 2023 6:21 AM    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: 991

PostPosted: Mar 7, 2023 9:59 AM    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