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 - VUT

Pages: [1]
1
Audio / SFML 2.0 SoundBuffer
« on: April 17, 2011, 01:35:24 pm »
There is an example with audio.hpp and I have read again the whole doc

     SoundBuffer buffer;
     buffer.LoadFromFile("Shot3.wav");
     Sound sound;
     sound.SetBuffer(buffer);

     sound.Play();

 it is my fault   , thanks. :oops:

2
Audio / SFML 2.0 SoundBuffer
« on: April 16, 2011, 11:31:47 pm »
sure

Code: [Select]


#include <iostream>
#include <stdio.h>
#include <SFML/Graphics.hpp>
#include <SFML/Graphics/Text.hpp>
#include <SFML/Audio/Sound.hpp>


using namespace std;
using namespace sf;

int main()
{
    char w;
    //
    SoundBuffer buffer;
    buffer.LoadFromFile("Shot3.wav");
    Sound sound(buffer);

    cout << "Hello world!" << endl;

    sound.Play();

    do
    {
        w = getchar();

    }
    while (w!= 'e');

    sound.Stop();

    return 0;
}

3
Audio / SFML 2.0 SoundBuffer
« on: April 16, 2011, 09:59:41 pm »
hello ,


I compiled  SounBuffer's example  found on DOC sfml 2.0
unfortunately compiler return this message:

Code: [Select]

error: aggregate ‘sf::SoundBuffer buffer’ has incomplete type and cannot be defined


I found the same example on forum.
Can you help me ? thanks

4
General / SFML 2.0 RenderWindow
« on: April 15, 2011, 10:17:06 am »
Hello , thanks for your cool lib

Im able to compile my program with SFML 1.6.
with SFML 2.0 I cant compile it anymore becouse renderwindow doesn't
find GetEvent member

Code: [Select]

error: ‘class sf::RenderWindow’ has no member named ‘GetEvent’


can you help me ? thanks :roll:

Pages: [1]
anything