On 26/01/2020 18:48, R.Wieser wrote:
> mm0fmf,
>
>> I am. How long does the sound play NOT how long does the program take to
>> execute.
>
> Alright than, what method do you want me to use, and, if aplicable, where
> exactly (in the code) should I put it ?
>
> And why is that /exact/ time important ? It can only become less, making
> the difference between the calculated duration and actual one larger.
>
> Regards,
> Rudy Wieser
>
>
Rudy, I'm trying to make you think about the problem so you have the
satisfaction fixing whatever may be wrong yourself. I know, having seen
how you get an idea (Python for example), right or wrong, then run with
it despite what other people tell you or the facts are telling you, you
don't stop and consider if you are down a blind alley.
You have no idea whether the correct amount of data is being played. All
you have is the time it takes for the code to execute.
So why do think the sound playback time is the same as the program
execution time?
What could possibly be happening outside your code such that the program
executes in less time than you expect but leads to the correct amount of
data being played?
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|