Author Topic: Sound question  (Read 5327 times)

cmifwdll

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 149
  • Posts: 285
  • TNet Alchemist
    • View Profile
Re: Sound question
« Reply #15 on: November 14, 2016, 07:51:54 PM »
tno.Send("PlayClip", Target.AllSaved, audioClip); will execute locally, too, so you'll have it repeated twice on the sender.

Maybe if you explained what your end goal is we could provide better help. I can't think of many reasons why you'd want to send an entire audio file over the network... Audio files are very big. If the audio file is part of each client (eg; it's somewhere in your Assets folder in Unity) then it's far, far better to just send a little message that says "hey, play this audio file now".

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sound question
« Reply #16 on: November 15, 2016, 09:00:52 AM »
In Windward I allowed playing of custom files, but I certainly never sent them in RFCs. Instead I uploaded them to the server, then sent an RFC to play that file. Each client would automatically download the missing file and play it when done.