Can I broadcast binary audio file like chat?

0 votes
If I converted audio file in binary format which is of  1024 length, then can I broadcast this binary file.

if yes then what is the process to convert audio file to binary or binary file to audio file.

if no then what to do for broadcasting audio file in online multiplayer game.
related to an answer for: Can we send audio file using AppWarpS2 ?
asked Apr 30, 2014 in AppWarpS2 by imtiyaz (45 points)

1 Answer

0 votes
You can send any byte array that is less than 1 kb using the updatePeers function.

Whether the byte array contains audio, image or game data is up to the application developer.

How you convert to and from byte array and audio file is not related to AppWarp S2 as it just provides a mechanism for sending byte arrays. Its best to google that question separately as its not relevant to this forum. For example a google search for this reveals these possible solutions

https://www.google.com/search?q=audio+file+byte+array+java&oq=audio+file+byte+array+java&aqs=chrome..69i57j0l3.6890j0j9&sourceid=chrome&es_sm=122&ie=UTF-8

 

Hope it helps.
answered Apr 30, 2014 by dhruvc (1,099 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...