.wav sound in cicode

franciscoufa

Member
Join Date
Sep 2013
Location
La Villa - Asturies
Posts
61
How do I make for a wav. sound repeats in bucle?

I am working with CICODE. I have made this function (when the alarm is triggered the ALARM.wav should be heard), but whenever the .wav finished it isn't repeat.

FUNCTION
MySound(STRING sSoundType)
SELECT CASE sSoundType

CASE "ARRANCAR"
DspPlaySound("C:\Users\Franciscou\Desktop\Proyecto1\ALARM.wav",0);
CASE "PARAR"
DspPlaySound("C:\Users\Franciscou\Desktop\Proyecto1\A.wav",0);
END SELECT
END


Thank you!
 
How do I make for a wav. sound repeats in bucle?

I am working with CICODE. I have made this function (when the alarm is triggered the ALARM.wav should be heard), but whenever the .wav finished it isn't repeat.

FUNCTION
MySound(STRING sSoundType)
SELECT CASE sSoundType

CASE "ARRANCAR"
DspPlaySound("C:\Users\Franciscou\Desktop\Proyecto1\ALARM.wav",0);
CASE "PARAR"
DspPlaySound("C:\Users\Franciscou\Desktop\Proyecto1\A.wav",0);
END SELECT
END


Thank you!

I tried it with SLEEP instruction, but it isn't run! HELP PLEASE!


FUNCTION
MySound(STRING sSoundType)
SELECT CASE sSoundType


CASE "ARRANCAR"
WHILE I<10 DO

DspPlaySound("C:\Users\Franciscou\Desktop\Proyecto1\ALARM.wav",0);
Sleep(3);
I=I+1;
END

CASE "PARAR"
DspPlaySound("C:\Users\Franciscou\Desktop\Proyecto1\A.wav",0);
END SELECT
END
 
You do not need Cicode to trigger a wav file on an alarm - it is built into Citect already. Search Citect help for wav file or alarm sounder.
 

Similar Topics

Hi, I'm finishing a student project close to deadline, but I cant't find out how to simply play a sound clip, triggered by an external tag? I've...
Replies
1
Views
3,753
Hi, I'm setting up a SIP Public Address adapter and need to get a few wav files for a pre tone before an announcement. any one know of a site...
Replies
4
Views
1,941
Does anyone have any ideas on how to go about playing a .wav file after an event occurs? I did search the forum and the newest post was 2 years...
Replies
6
Views
3,036
Since I make to place another sound to him in wav for my alarms.
Replies
0
Views
2,145
Hi; I have Weintek HMI MT8051XE at a machine. I want to play a customized alarm sound. I uploaded the alarm sound in project and downloaded to...
Replies
0
Views
1,626
Back
Top Bottom