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

Pages: [1] 2
1
Audio / thanx for posting
« on: July 19, 2011, 08:08:08 pm »
Quote from: "Ripensis"
I finished the program, below you have the source code (maybe someone will find it useful).



Hi, just to let you know: The code is very helpful! Thanx for posting it!!!!!  :D

2
Audio / delay in Sound.Play() (Windows XP)
« on: June 11, 2010, 04:44:19 pm »
Quote from: "Laurent"
Do you use the OpenAL DLL provided by SFML?

Are you sure that you really use SFML2 (did you have to change something in your source code)?


yep, I really do have to change a lot of stuff (for now I commented the matter irrelevant things out), so I am sure, that I do use SFML2.0

Updating the OpenAL DLL reduced the constant delay we measure to ~89ms.

3
Audio / delay in Sound.Play() (Windows XP)
« on: June 11, 2010, 02:16:40 pm »
Quote from: katrin
Quote from: "Laurent"
Quote
Maybe you're still using an SFML 1.x version, because both 1.x and 2.0 exist on the repository. SFML 2 is located under /branches/sfml2 while SFML 1.x (currently 1.7) is under /trunk.


That seems plausible, I compiled 1.7 then. I'll try the other and run the test again.
Thanx!!


Okay, I did compile SFML2.0 correctly now, but the problem is the same: We still have a constant delay of ~186ms from calling Sound.Play() until the sound actually starts  :cry: .

4
Audio / delay in Sound.Play() (Windows XP)
« on: June 11, 2010, 10:52:29 am »
Quote from: Laurent
Quote
Maybe you're still using an SFML 1.x version, because both 1.x and 2.0 exist on the repository. SFML 2 is located under /branches/sfml2 while SFML 1.x (currently 1.7) is under /trunk.


That seems plausible, I compiled 1.7 then. I'll try the other and run the test again.
Thanx!!

5
Audio / delay in Sound.Play() (Windows XP)
« on: June 11, 2010, 10:10:38 am »
Quote from: "Laurent"
Which revision of SFML 2 are you using? On which OS?


SFML yesterdays SVN version, so I think 2.0 (sorry for such beginners statement)
Windows XP
Code::Blocks with mingcc4.4

6
Audio / delay in Sound.Play() (Windows XP)
« on: June 11, 2010, 09:26:18 am »
Quote from: "shahn"
Yay, it works!

With the sfml2 svn snapshot there is no notable delay.


Unfortunately I can't share the joy. We are using SFML for audio experiments in psychology and recently came along the same problem of the constant delay. In SFML 2.0 the delay is the same as in 1.4 and 1.6 - a constant ~186ms. We checked it with a voice-key.

The timing is extremly crucial to our experiments do you have any idea how to avoid the delay?

Here is my the test loop. The voice-key is activated over the parallel port:

 
Code: [Select]


for( int i = 0 ; i < 10 ; i++ ) {
        cout << "After each tone start voicekey- reaction time is measured and should be 0ms gemessen." << endl;
        Clock.Reset() ;
        if( !( Stimulus.GetStatus() == sf::Sound::Playing ) ) {
            Stimulus.Play();
        }
        do {
            taste = ReadTaste() ; // read out parallel port informationen
        } while( taste == 255  ) ; // while voice-key is not activated
        rt = Clock.GetElapsedTime()*1000.0f ;
        WaitUntilMS( Clock, 1000 ) ;
        cout << rt << endl;
    }
    WaitForMS( 1000 ) ;



I'd be happy for any suggestions!

7
General / SFML 1.6. and iostream
« on: May 25, 2010, 02:20:31 pm »
Hi,

I've searched the forum but either with the wrong key-words or the wrong problem :-). So here is my problem:

I would want to move from SFML 1.4 to 1.6 and experience a problem with the following little program:

Code: [Select]


#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <cstdlib>
#include <iostream>

using namespace std;

int main()
{
    cout << "hello world" << endl;

    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");

    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }


    return EXIT_SUCCESS;

}



Using Code::Blocks 8.02 and static linking with
Mingw gcc4.4 and SFML 1.4 -> everything is fine!
Mingw gcc4.4 and SFML1.6 -> program as is crashes!
What works:
1. If I comment out #include<iostream> and the output-to-console-line

2. If I leave iostream and the output to the console but comment out the window-application loop

Is there any known problem with SFML and iostream?

I appreciate any help!

8
Window / set mouse cursor to position
« on: June 08, 2009, 04:04:17 pm »
:oops: i aktually thought of something like this ... but i obviously looked at the wrong place in the documentation  ...

sorry to bother but thanx for your reply!

9
Window / set mouse cursor to position
« on: June 08, 2009, 02:30:30 pm »
hi

in my current programm, i need the mouse cursor to be visible at a certain point of the programm - no prob, just set Window.ShowMouse( true ) :D . so far so good but i aktually want the mouse cursor to appear at a defined position.

i know how to *get* the mouse cursor position but is there any way to *set* the mouse cursor position???

any help appreciated

10
Graphics / svn: Image.LoadFromFile and Image.Create crashes
« on: November 21, 2008, 02:07:44 pm »
great ... ist seems to solve more things than expected, e.g. the weird font stuff, too.

thanx again wizardofoz & laurent  :D  :D
you truly made a lot of people happy

11
Graphics / svn: Image.LoadFromFile and Image.Create crashes
« on: November 18, 2008, 01:39:14 pm »
I had these problems - programms working with one graphic card (S3 VIA Chrome9 HC IGP) and somehow crashing with another (NVIDIA GeForce4 Ti4200, Matrox G550)) (everything else same) - as well.

Even though the here mentioned problems are far beyond my programming knowledge and your solution seems to concern images, is it possible that these strange font problems http://www.sfml-dev.org/forum/viewtopic.php?t=704 might be solved as well by that?!?
I know they sound weired. But I could always get a programm running on all the older pc's when I change the font to arial size 100.

I will hopefully belong to the group of happy people as soon as you fixed it - thanx for your effort  :D

12
Audio / sf::SoundBufferRecorder problem
« on: November 02, 2008, 03:38:58 pm »
Quote from: "Laurent"
I fixed it, it should work fine now.


Thanx!!!!!  :D

13
Audio / sf::SoundBufferRecorder problem
« on: October 30, 2008, 03:56:58 pm »
thanx for your effort!!  :D

dunno if it's useful for you, but I also tried to save the recorded stuff within the loop with Recorder.GetBuffer(). That too led to "all files are first record" (same size, same content).

14
Audio / sf::SoundBufferRecorder problem
« on: October 30, 2008, 09:06:24 am »
I just came upon a problem with the sf::SoundBufferRecorder. I am trying to use it in a loop just like this:
Code: [Select]
sf::SoundBufferRecorder Recorder;
vector< sf::SoundBuffer> RecBuffer(n);

for (i=0; i<n; i++) {

     \\do something
     Recorder.Start() ;
     \\ Wait for something
     Recorder.Stop();

     RecBuffer[i]=Recorder.GetBuffer() ;
}


That does not work, because when saving the content of the RecBuffer, all file have the same size and content, namly the first input.

So what I did, I createt the sf::SoundBufferRecorder as an array and changed the loop accordingly. That works fine, but is it the right way?!
By the way, creating it as a vector (like the sf::SoundBuffer) instead of an array it gives me an error, that's why I am unsure about the array solution.

May be I did not properly understand the functionality of the sf::SoundBufferRecorder?!? Could anybody help?! I need to record stuff in a loop (experimental trials) and save it as file.

Oh, yeah, I'm using SFML 1.3 with XP SP2.

thanx

15
Window / no game loop: display() problems
« on: October 10, 2008, 05:36:40 pm »
Quote from: "Laurent"
This problem might be solved in the current sources ; if you can, I advise you to try the SVN version.


okay, i'll try ... but just for the sake of correctness (since that goes beyond, what i usually can do  :)  ) i would be done with compiling the sfml-[] release dll_win32 and copy the *.a and *.dll files to the corresponding places?!

thanks

Pages: [1] 2