Page 1 of 1
Make pause in playing sound via PC speaker
Posted: Wed Aug 24, 2022 5:05 pm
by CandyMan
How do I pause without sound between two sounds in one string?
I using function 0x55.
Melody:
DB 21h
DW 0115h
DB 21h
DW 0149h
;Here i want pause
DB 21h
DW 0149h
DB 21h
DW 0115h
DB 0
Re: Make pause in playing sound via PC speaker
Posted: Mon Aug 29, 2022 4:38 pm
by MalcolmM
Hello,
I also wanted to do the same thing some time ago, but so far I haven't found a way to do it.
Thanks in advance for those who will answer,
Re: Make pause in playing sound via PC speaker
Posted: Tue Aug 30, 2022 4:57 pm
by turbocat
And 0 doesn't work as a pause?
Re: Make pause in playing sound via PC speaker
Posted: Wed Aug 31, 2022 11:22 am
by CandyMan
Pause requires the loudspeaker to be turned off for a while.
I have looked at the source code and there is nothing like it.
Re: Make pause in playing sound via PC speaker
Posted: Thu Sep 01, 2022 7:41 am
by turbocat
In this case, I propose to divide your melody into two parts using a mark. Make one part play, insert a delay with sysfunction 5 and then play the rest.
Re: Make pause in playing sound via PC speaker
Posted: Fri Sep 02, 2022 5:35 pm
by CandyMan
This is not a solution because there may be several pauses and it is not known when each part has already been played. It would be best if the value 0 or the currently defined error 0x81 value was used.
Re: Make pause in playing sound via PC speaker
Posted: Wed Sep 07, 2022 12:40 pm
by turbocat
And what behavior do you observe when using 0x81. Does the melody break?