<div>Hello,<div dir="auto">My apologies to posting a question..</div><div dir="auto">I’m wanting to implement a one shot play regime to play a wave file (5 seconds long) using filesrc or anything else appropriate to use.</div><div dir="auto">Is there any recommendations to how to achieve such using Python Glib?</div><div dir="auto"><br></div><div dir="auto">Something on the order </div><div dir="auto"> <span style="font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;background-color:rgb(245,242,240);color:black">filesrc start=1 location=sine.wav ! wavparse ! audioconvert ! alsasink</span></div><div dir="auto"><span style="font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;background-color:rgb(245,242,240);color:black"><br></span></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">I know filesrc doesn’t have a property start however, some method on starting the play where it is reset once the file buffer is empty before raising EOS. Any recommendations on how to implement such?</span></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></span></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">I would be great to develop a plugin to do exactly that. </span><br></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><span style="font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;background-color:rgb(245,242,240);border-color:rgb(0,0,0)">oneshot location=sine.wav ! wavparse ! audioconvert ! alsasink</span></div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><span style="font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;background-color:rgb(245,242,240);border-color:rgb(0,0,0)"><br></span></div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><span style="font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;background-color:rgb(245,242,240);border-color:rgb(0,0,0)">Set property start to true and it plays then once finished start is effectively false. Just set property start to true and plays again.</span></div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><span style="font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;background-color:rgb(245,242,240);border-color:rgb(0,0,0)"><br></span></div><div dir="auto"><span style="font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;background-color:rgb(245,242,240);border-color:rgb(0,0,0)"><br></span></div></span></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></span></div>
</div>