Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Playing WAV Files
#1
i spent some time this afternoon tyring to set up a triggered event that plays a wav file. i would like the wav file to play when the clothes dryer is finished running. i got all the aspects of the triggered event to work fine, except that it won't play the wav file. here is my code
Code:
System::Equals
    P1=$(ELK.Output054)
    P2=True

Devices::FieldWrite
    P1=KensVariables.Dryer_Operating
    P2=True

End
System::Equals
    P1=$(ELK.Output054)
    P2=False

Devices::FieldWrite
    P1=ELK.Output016
    P2=True

Devices::FieldWrite
    P1=KensVariables.Dryer_Operating
    P2=False

System::PlayWAV
    P1=C:\Users\Public\Music\The Clothes are Dry.wav
    P2=False

Devices::FieldWrite
    P1=ELK.Output016
    P2=False

End

the wav file is located on the master server in the directory as programmed. to test this, i built a command button with the same PlayWAV code and when i click the command button on the master server iv screen the wav file can be heard.

so, i can play the wav file when activating it via the iv, but not when it is inside a triggered event. my suspicion is that i may have a network rights issue? i have triple checked that i am logged in as administrator with full rights. what am i missing? why won't the wav file play within the triggered event? :confused:
Reply
#2
It doesn't matter what you are logged in as, it matters (in the case of a triggered event), what the CQC service on the MS is logged in as. Do you have the service on the MS set up to log into an administrative account for which the audio playback setting sare set up correctly? If not, that's probably the issue.
Dean Roddey
Explorans limites defectum
Reply
#3
Dean Roddey Wrote:It doesn't matter what you are logged in as, it matters (in the case of a triggered event), what the CQC service on the MS is logged in as. Do you have the service on the MS set up to log into an administrative account for which the audio playback setting sare set up correctly? If not, that's probably the issue.
dean, there is only one account on the master server and it is my account as administrator. the cqc login uses this account. should this be adequate?

i'm kinda hoping you say no and "school" on how to do it properly.

alternatively, could i use a unc filepath to direct the playing of the wav file from a different pc (the study pc) and use the output from the study pc for my purposes?
Reply
#4
If the service is using that account, then that's correct and if it's not working, then it must be something related to permissions I'd guess, though I'm not sure. Clearly media in general works, since our audio player runs in the same type of scenario. So I'm not sure what would be the issue for playing a Wave. Well, the audio player works directly at the DirectShow level, while the WAV playback uses the simpler higher level stuff, so that might be a difference.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Playing Sonos Favourites fails with & symbols in the name NightLight 3 2,981 01-01-2017, 08:23 PM
Last Post: Dean Roddey
  Batch Files - Not a Valid Win32 Application znelbok 13 7,870 02-12-2015, 02:42 PM
Last Post: Dean Roddey
  Audio files not loading dman000000 17 7,829 07-12-2013, 05:38 PM
Last Post: dman000000
  Load personal video files into repository? brathnach 7 4,250 05-14-2013, 02:06 PM
Last Post: wuench
  Load existing ripped files into CQSL Repository? kcl 14 4,693 12-23-2012, 12:11 AM
Last Post: Dean Roddey
  UltraEdit CML and PDL Syntax files batwater 6 3,303 08-22-2012, 01:45 PM
Last Post: batwater
  Error msg playing music Trioxide 2 1,520 06-24-2009, 06:14 PM
Last Post: Trioxide
  Problems with File Tag Repository and Zune files CalypsoCowboy 4 2,177 03-19-2009, 07:35 AM
Last Post: CalypsoCowboy
  Adding MP3 files to CQC Repository flik 4 1,849 03-14-2009, 04:44 PM
Last Post: Dean Roddey
  Html files not showing Trioxide 4 1,856 01-07-2009, 09:56 AM
Last Post: Trioxide

Forum Jump:


Users browsing this thread: 1 Guest(s)