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

Pages: [1]
1
Audio / Re: SoundStream custom buffersize
« on: February 29, 2016, 01:09:55 am »
I know that tutorial, but it doesn't seem to helpful with my problem.

To give some more details which might help understand my problem: I'm developing a software for capturing 3DS equipped with capture boards. I already have the code working to read frames from the board and print them on screen. Now I've got the code running which gets the audio from the board - I get a few hundred samples per video-frame, raw 16bit stereo samples. I wrote a StreamSource which gets these samples and plays them just fine - but with a delay of about two seconds which I assume are the 2 seconds Laurent mentioned in the other thread - buffers. For this use case that delay is a no-go.

The tutorial doesn't seem to help me adjust the size of that buffers for my needs. Is there any way it can be done?

2
Audio / SoundStream custom buffersize
« on: February 29, 2016, 12:43:55 am »
So in this thread it is discussed, that SoundStreams always buffer 2 sec of the audio stream. For my use case this is way to much.
As the linked thread is a few months old, I'd like to ask if things have changed; is there an easy way of customizing the buffersize, maybe via the initialization? I'd love to stick to sfml-audio but I start believing I might have to switch to something lower level...

3
Window / Re: Icon not showing or flickering
« on: November 03, 2015, 02:58:43 pm »
It would be helpful if you posted here the minimal code that you mentioned so that it can be tested by others and it's much more likely that people would want to help solve your issue using the minimal code than your full project.

Thanks for you're reply! I don't have the code at hand, but it really was just a window creation followed by the setIcon and an empty loop. I'll post the exact code later, when I have it available.

I noticed that icon appears with 1-2 seconds delay after seticon call. Actually it shows default window icon for 1-2 seconds, although seticon was called before setvisible(true). So, may be it related to your issue

Yeah, sounds like it could be related.

4
Window / Icon not showing or flickering
« on: October 30, 2015, 09:46:13 pm »
Hi!

I followed this tutorial to get an icon for my sfml-project. https://github.com/SFML/SFML/wiki/Tutorial:-Create-and-Use-SetIcon
I integrated the call to window.setIcon into my code, just after creating the window, but that did not work - the window had the default icon of my operating system. When I moved the call into my main loop it kinda worked like expected except the icon flickers. every few seconds parts of the icon disappear or change colours.
I don't really see why this would happen. It's like something overrides the rendering of the icon, but I don't know what could do that.

I tried a minimal example where the main method only created a window and had an empty loop (only calling window.display) and tried calling window.setIcon before and inside of the main loop, which had the same result. Is this a bug in my version of sfml or something like this? I'm on gentoo linux and using sfml version 2.3.2.

Where should the call to setIcon be placed? Should it still work like in the tutorial?
You can find my code on https://github.com/Gotos/Cute3DSCapture

I hope you can help. Thanks in advance!

Pages: [1]