Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Nico

Pages: [1]
1
General / Re: Weird Noise
« on: August 15, 2012, 02:51:26 pm »
Oh, that worked, thanks.

2
General / Re: Weird Noise
« on: August 15, 2012, 07:49:30 am »
Yes, i know that sfml is not supposed to do that kind of noise, but its only with this sfml code and those examples. I cant imagine what it can be. Other OpenGL apps, games or the others examples run well without that sound. This is so strange :/. Thanks you anyway

3
General / Weird Noise
« on: August 15, 2012, 06:02:30 am »
Im experiencing some weird noise from what i think its the video card, when i run this example code. It changes when i move the mouse, and stops when im clicking the tittle bar (pausing the app) and starts again when i stop doing it. It also does this running the "Window" example and the "Win32" example. Other SFML2 examples like Pong or the opengl one runs well, the problem is with the others. Its very annoying.

My Specs:
XFX Radeon HD6870
AMD Phenom 955
4 gb Ram


#include <SFML/Graphics.hpp>

int main()
{
  // Create the main window
     sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
     sf::Texture texture;
     if (!texture.loadFromFile("vol.jpg"))
         return EXIT_FAILURE;

     sf::Sprite sprite(texture);

     // Start the game loop
     while (window.isOpen())
     {
         // Process events
         sf::Event event;
         while (window.pollEvent(event))
         {
             // Close window : exit
             if (event.type == sf::Event::Closed)
                 window.close();
         }

         // Clear screen
         window.clear();

        // Draw the sprite
         window.draw(sprite);
         // Update the window
         window.display();
     }

     return EXIT_SUCCESS;
 }


 

Pages: [1]