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

Pages: [1]
1
Audio / Re: Unsupported File
« on: February 23, 2017, 01:24:18 pm »
Its 3300 milliseconds. I guess i can feel the difference between 3300 microseconds ans 3300 milliseconds.

But nvm i hope i will find a way to fix it



2
Audio / Re: Unsupported File
« on: February 18, 2017, 08:59:41 pm »
@Laurent
I dont really get what you mean. Do i use the clock function of c++ wrong?

But i guess it's pretty off topic.

It takes a lot of time to create the SoundBuffer for me.
Any ideas?

3
Audio / Re: Unsupported File
« on: February 18, 2017, 03:44:01 pm »
It's just to count the time, so i know how long it takes to create a SoundBuffer.

4
Audio / Re: Unsupported File
« on: February 18, 2017, 03:01:43 pm »
Hey,
i'm using now .ogg files and its working. (btw. i'm using the newest version of SFML, i just thought, that i have to use the libsndfile, because of some old threads :p)

But i got a new problem. If i create a SoundBuffer, it takes 3300ms to create it.
I guess thats not how it suppose to be. 

        clock_t zeit1, zeit2;
        zeit1 = clock();

        sf::SoundBuffer soundBuffer;

        zeit2 = clock();
        std::cout << "time: : " << (zeit2 - zeit1) << "\n"; //3300ms

 

I dont even load any sound into it anymore. :/

5
Audio / Unsupported File
« on: February 17, 2017, 05:16:12 pm »
Hey,
i tried to play a file but its printing me, that my file is a invalid or unsupported file.
I'm tried .mp3 and .wav but it isnt working.

I also move already the libsndfile-1dll.dll and openal32.dll in the ordner with the .exe.
Is this right? or do i have to make something else to play sounds?

6
Graphics / Background image
« on: January 09, 2017, 08:51:23 am »
Is it possible to draw a fixed image as a background? Or do i have to update always the Position of the background?

7
System / MouseLeft executed
« on: January 07, 2017, 11:47:45 pm »
Hey,
i'm printing something, if i click on the left mouse button.
But if i press the key 'D' the left mouse button is executing.

if (event.mouseButton.button == sf::Mouse::Left) {
            std::cout << "MouseClick" << std::endl;
            
         }

If i click 'D' it prints in the console MouseClick....

Whats the reason?

Pages: [1]
anything