|
It's code:
InIndex := uos_AddFromMemoryStream(FDevIndex,aMemoryStream,-1,-1,-1,-1);
uos_AddIntoDevOut(FDevIndex,-1,-1,uos_InputGetSampleRate(FDevIndex,InIndex),uos_InputGetChannels(FDevIndex,InIndex),-1,-1,-1);
uos_InputAddDSP1ChanTo2Chan(FDevIndex,InIndex);
uos_InputAddDSPVolume(FDevIndex,InIndex,1,1);
uos_InputSetDSPVolume(FDevIndex,InIndex,a/100,a/100,true); /// Set volume
if FMeter then uos_InputSetLevelEnable(FDevIndex,InIndex,1);
if FPosition then uos_InputSetPositionEnable(FDevIndex,InIndex,1);
if FCalcLoop then uos_LoopProcIn(FDevIndex,InIndex,@LoopPlayer);
uos_EndProc(FDevIndex,@ClosePlayer);
uos_Play(FDevIndex); /////// everything is ready to play...
How do you change it to add sound caching?
Unfortunately, I do other things in the program, and sometimes I have detentions. That's why I want to add caching, would someone suggest in the subject? Thanks!
ps. I've been fighting this since yesterday ...
|