Computer problems,Computer help
*AX SOFT>>>Programming & Design

If computer are ones and zeros how do sounds and moving images work?


Okay so like I know that images are just pixels which are represented but 1's and 0's but what about when you are playing a video game how does that work like I mean how does the computer know or make those images move and sound same thing how can a continuous song be made of just ones and zeros can anyone help me on this? Also can anyone give me like some examples of this and how it works with maybe a little bit of like code. Thanks!!

I want to write a huge answer. I'll try to keep it short.

The wonderful variety of media you are used to seeing is simply the result of very complex and numerous sets of these 0's and 1's. You can't really do much with a single byte of data, but given billions of them, you can create combinations that can result it rich functionality.

Think of it this way: You can move. You make sound. You are complex. You are a human.

Yet, in reality, the individual pieces that make up you, and your environment, are actually very small and very simple. You are the result of trillions upon trillions of very simple objects. I am talking about, of course, atoms, and actually even more simple subatomic particles, but let's not go too far down that path, as this isn't a physics Q&A.

Computers, and really any electronic device, can be viewed similarly. Although I can't write an entertaining and pretty game with a single byte of data, with 100 billion bytes, I can.

Keep in mind that devices like your computer monitor aren't singular objects. It also requires millions of pieces of information in order to present you with the pretty pictures you like to see. However, you can still break down what it is doing many times, and you still end up with the same basic, and very simple, pieces of information (0's and 1's again).

For example, you have a full screen. It's composed of a finite set of possible pixels. Each pixel can be one of a set of a finite number of colors. Each possible color is represented by a finite set of numbers (often Red, Green, and Blue, or some other combination of colors). Each color is represented by a single number (often 0-255). You can store one of a possible 256 numbers in a single byte. One byte is 8 bits. A bit is either a 0 or a 1.

So, although a 0 or a 1 isn't much of a game, and a byte isn't really either, and a set of bytes isn't either, and a few colors isn't either, and a bunch of pixels aren't either, if you do build up all of this, you now have 1 "branch" of your computer: a monitor. A monitor byself isn't a game, but if you have a monitor, you are well on your way to having a system with which you can play a wonderfully pretty and exciting game.

Lucky for you, you don't have to concern yourself with all the details of how it works. You need only have been preceeded by others who have made it their life's work to understand and take advantage of the universe around them.

yeah its like a code ??!!!!!!!!!!!!!!!!!!

you understand that the data is made up of ones and zeros... you need to additionally understand that the *instructions* are also made of ones and zeros.

the CPU has registers. one register is a pointer to the current location in the instructions (or code).

It's actually the same way that old recodes work, but instead of bumps and indents, it's 0s and 1s. I believe it's set on a series of 8 0s and/or 1s. Each set symbolizes a specific frequency. It's actually more "choppy" than real sound, but our brain goes ahead and smooths it out for us.

everything is made up of ones and zeros

A game is programmed to show a sequence of images to animation, and a sequence of sounds, as to make the game. A program then converts the code, images and sounds into the 1s and 0s that you said.
That is a very simplistic version of it.

Reallllllly long strings of 1 and 0's

To put it very simply the 1's and 0's is a language that the machine understands. The software or program tells the hardware what to do, or controls the hardware. The output is what you see on the screen, or other device. Your game tells your computer what to show on the screen and what sounds to make based on your input.

Different 1's and 0's are interchanged at times. In terms of sound, there are zillions of 1's and 0's that are change from on to off and vice-versa. The combinations of 1's and 0's shutting off or turning on create a pattern, and thus makes up a song file. an image file is more static and doesn't require as many strings.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Need help calculating in access?

    First off, you don't need [order line id] field in your order table: in fact you don't need [order line id] at all: you can create a combined key on [order id] and [item id]. Design a ...

  • Creating and using dll files in VC++ and its advantages?

    The creation and use of DLLs with VC++ can be somewhat complicated depending on your requirements. If you create your own using the MFC wizard, it's not too bad at all. A great explanation w...

  • I need a real advice please about making my website duplicatable...?

    You should hire a web design company to do the work for you. Once they do it, you can give everyone what they need with ease.

    ...
  • How do you add a html code to a image?

    Hi! The HTML Image tag is as follows <img src="path_to_the_image.jpg" width="image_width" height="image_height" border="0" alt="image_descripti...

  • What is the purpose and functions of a network operating system?

    A network operating system (NOS) is a piece of software that controls a network and its message (e.g. packet) traffic and queues, controls access by multiple users to network resources such as file...

  • There are multiple users sharing a single Datasheert..?

    Yes you can all you do is open the workbook, then on you menu click TRACK CHANGES>HIGHLIGHT CHANGES, then on the dialogue box check the box that says "TRACK CHANGES WHILE EDITING. THIS WILL...

  • What are the main reasons that it is so hard to develop systems that are used in multiple countries?

    It's difficult to write a site in multiple languages. It's difficult to write anything in multiple languages.

    ...
  • Why it is so difficult to identify the right requirements for a systems development project?

    If you understand both the problem and the environment in which you will design that system, there is no particular difficulty at all. You MUST remember that computer programming for a particula...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster