Forum
CS2D Scripts .lua is compatible with URL ??.lua is compatible with URL ??
10 replies 1
URL = uniform resource locator (a web address like http://whatever.tld in most cases). How is this supposed to be compatible/incompatible with anything at all?
Please try to explain what you are actually talking about!
Or about existence of .lua domain.
Alexsandro has written
Example: Use a script .lua to be able to hear music via an online radio URL during the game
Lua does not have any built-in sound APIs. As you are on Windows, you have these options:
Write bindings for a sound system of choice (OpenAL or something more high-level);
Use LuaJIT2 FFI (or Alien FFI) to directly access DLL functions of the sound system of your choice;
Use LuaCOM to play some sound (with DirectSound?), if you're familiar with COM stuff.
I also think that none of these will work with CS2D (I suppose you're trying to implement this in your Lua script).
@op In short you can't.
1