Nightly update (ISO SHA-1 57e189b)
This commit is contained in:
1 parent
b0570d4c3d
commit
5eb6057406
48 files changed
+2015
-3025
No files matched your search
@@ -183,26 +183,45 @@ U0 Snd(I8 ona=ONA_REST)
|
||||
if (!Bt(&sys_semas[SEMA_MUTE],0) &&
|
||||
!LBts(&sys_semas[SEMA_SND],0)) { //Mutex. Just throw-out if in use
|
||||
if (ona<=ONA_REST) {
|
||||
snd.ona=ona;
|
||||
scrncast.ona=ona;
|
||||
OutU8(0x61,InU8(0x61)&~3);
|
||||
} else if (ona!=snd.ona) {
|
||||
snd.ona=ona;
|
||||
} else if (ona!=scrncast.ona) {
|
||||
scrncast.ona=ona;
|
||||
period=ClampI64(SYS_TIMER_FREQ/Ona2Freq(ona),1,U16_MAX);
|
||||
OutU8(0x43,0xB6);
|
||||
OutU8(0x42,period);
|
||||
OutU8(0x42,period.u8[1]);
|
||||
OutU8(0x61,3|InU8(0x61));
|
||||
}
|
||||
if (!IsDbgMode && snd.record) {
|
||||
if (!IsDbgMode && scrncast.record) {
|
||||
d=ACAlloc(sizeof(CSndData));
|
||||
d->ona=ona;
|
||||
d->time=tS;
|
||||
QueIns(d,snd.record_head.last);
|
||||
d->tS=tS;
|
||||
QueIns(d,scrncast.snd_head.last);
|
||||
}
|
||||
LBtr(&sys_semas[SEMA_SND],0);
|
||||
}
|
||||
}
|
||||
|
||||
Bool ScrnCast(Bool val=ON,Bool just_audio=FALSE,U8 *print_fmt="B:/Tmp/%X.GR")
|
||||
{//WinMgr saves GR files to a dir.
|
||||
Bool old_val;
|
||||
scrncast.just_audio=just_audio;
|
||||
if (val) {
|
||||
if (!(old_val=LBtr(&scrncast.record,0))) {
|
||||
Free(scrncast.print_fmt);
|
||||
scrncast.print_fmt=AStrNew(print_fmt);
|
||||
scrncast.t0_now=Now;
|
||||
scrncast.snd_head.tS=scrncast.t0_tS=tS;
|
||||
scrncast.snd_head.ona=scrncast.ona;
|
||||
LBts(&scrncast.record,0);
|
||||
}
|
||||
} else
|
||||
old_val=LBtr(&scrncast.record,0);
|
||||
Snd;
|
||||
return old_val;
|
||||
}
|
||||
|
||||
U0 SndRst()
|
||||
{//Fix stuck sound.
|
||||
if (Bt(&sys_semas[SEMA_SND],0)) {
|
||||
|
||||
Reference in new issue
Block a user