Jump to content




AUDIO


27 replies to this topic

#21 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 08 November 2012 - 08:53 PM

View Postchiloxsan, on 07 November 2012 - 09:33 PM, said:

Maybe if we could beep, specifying the frequency and the duration, like in QBASIC.
i wub qbasic, exept when someone requested for you to make minecraft and your like *tableFlip* after 30 seconds of thinking about how to do it

#22 raacer

  • New Members
  • 4 posts

Posted 09 November 2012 - 09:33 AM

this flared more than i had thought.
after "skimming" through comments, i do want to clarify some things.

-i DID say that using a media player would be hard to integrate and i understand the download rules tho also note that it is possible to download from server as spout craft has proven.

-also mine craft fully supports 3D surround as anyone who has used 3D headphones or better a 3D stereo and had a creeper come up behind you.

- lastly there are PLUGINS or server mods that do the internet radio part so it is able to be done.

#23 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 09 November 2012 - 10:39 AM

View PostJasonfran, on 07 November 2012 - 08:51 PM, said:

Source engine games download hundreds of MP3 files from servers. Not one has been a virus
How would you be able to know that? Also Valve is a big company with a lot of money to program security mechanisms, CC is developed by two non-paid developers and a community.

View Postraacer, on 09 November 2012 - 09:33 AM, said:

-i DID say that using a media player would be hard to integrate and i understand the download rules tho also note that it is possible to download from server as spout craft has proven.

- lastly there are PLUGINS or server mods that do the internet radio part so it is able to be done.
All those plugins depend on Spoutcraft, which is a combination of a heavily modified client and a powerful server plugin, trying to do that using a single mod (which is actually about something completely different) is a lot of work coding the transmission and opening an exploit, which can be used to infect player's computers, who just joined a single server.

#24 raacer

  • New Members
  • 4 posts

Posted 09 November 2012 - 12:58 PM

actually internet stream does not require spout :unsure:/> it is a normal plugin and as far as viruses
1) if you are accessing the internet with out security you are an idiot and deserve a virus
2) you cant send a virus over internet stream files
and finally if the open stream data file is disabled by default then you don't have to worry.

#25 Mandrake Fernflower

  • Members
  • 117 posts
  • LocationDark Side of The Moon

Posted 09 November 2012 - 01:37 PM

I would think just by adding RichardG's iron noteblock mod into default CC would be enough of an audio system for most people

#26 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 09 November 2012 - 03:29 PM

You could download your virus.exe to the client by renaming it to virus.mp3 and trying to play it, but then you'd have to trick the client into running it as an EXE file. Just having a virus sitting there with a .mp3 extension is harmless, and when you try to play it, your MP3 player won't do anything since it's not a valid MP3 file.

#27 basdxz

  • Members
  • 116 posts

Posted 09 November 2012 - 09:19 PM

*Imagines joining a server and hearing people yelling.* I like this idea, my radio will finally work as it should! :unsure:/>

#28 NeverCast

  • Members
  • 400 posts
  • LocationChristchurch, New Zealand

Posted 09 January 2013 - 07:35 AM

MP3 files cannot have viruses, as it's a standardized ( and de facto standard ) audio format. It doesn't need any special software to play it, that is why your cheap MP3 players are _MP3_ players. Simple but effective lossy format. Viruses have and can be integrated in to WMA files by leveraging the Codec request ability of WMA ( WMA file tells Windows Media Player, Hey I need this software to play because I'm 'special' and Windows Media Player downloads and installs it.)

Also yes: MP3 is a standard but it's also a little outdated, and in some cases you need a licence or to follow a certain licence when using it, which would mean you'd have to ship that around with your Mod.
There is one lossy format that has gained a LOT of popularity and is used as the default format from iTunes to Cell Phones, Playstations and In Car Stereos.. AAC!

AAC achieves better quality at close to equal bitrates with MP3, which means you use less bandwidth, to make the same sound. Much better for a MC Mod, and there are libraries everywhere for it. This format also has 0 chance of viruses.

There is one thing you're overlooking, the complexity of it all, Not saying it's impossible, just saying it's bloody hard. You also wouldn't be able to stream the sound from the server, Servers like SoundCast use enough CPU just transcoding in real time and sending to several people, imagine if the server had to mix together different sounds with different volumes and 'spacial effects' for each player on the server, and send the sound to them with minimal delay. Not likely possible without severely impairing the actual gaming experience with lag and other latency such as bandwidth saturation.

Best bet would be to pre-load the files on to the client machine, and then play them how you would normally, by name with x,y,z coords. OpenAL will take care of all the sound for you.

There is one thing I've not mentioned regarding all this, AAC and MP3 are Compressed Formats, which means they have to be decompressed before they can be played, and this will tax your processor more than Minecraft already does. The best format to use would be the one that MC already uses, OGG, OGG comes in both compressed and uncompressed, lossy and lossless, and I couldn't tell you what combination MC files are without opening them up and having a look. But what I can tell you is that they are completely free licence, so you can distribute them around the internet to your hearts content without ever once giving a damn about who might tell you off for it!

So my conclusion if you want to play sounds on the client from the server.
* Pre load them to the client
* Use OpenAL
* Use Ogg format

In regards to speech, which I didn't mention at all in this post, you can use a decendent OGG format, Speex, there is already JSpeex which is a Java Implementation of the format, with both encoder and decoder. could be a possibility.

Anyway, I've said my bit, I think it's an amazing idea, but just a little difficult to implement and do correct.
P.S Only now do I realize this topic is 2 months stale. But I've already written my reply.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users