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.


Topics - BlastRock

Pages: [1]
1
Window / Window doesn't have an alpha channel
« on: August 10, 2012, 08:08:07 am »
Hi !

I have a problem with the window creation with SFML. Here's how a create my window :
  sf::Window(sf::VideoMode(640, 480, 32),
      "OpenGL", sf::Style::Default,
      sf::ContextSettings(32, 0, 0, 2, 1)),

Even if I create my window with 32 bpp, it seems like the window does not have an alpha channel. I checked with gDEBugger which tells me that GL_ALPHA_BITS is 0. The consequence is that when I do a glReadPixels, I can't get the alpha channel.

Btw, blending with GL_BLEND works fine and I'm using SFML2 (revision 5706111) on Linux.

Any help on that?

2
Audio / Problems with sf::Music
« on: May 01, 2010, 08:37:24 pm »
Hi,

I got some huge problems with sf::Music. I tried using the code given in the SFML Audio tutorial and I encoded an ogg file with oggenc.

The result is that the program uses 100% of my CPU. I tried commenting the line Music.Play(), it doesn't change anything, the process still uses 100% of my cpu.
I have another problem that may be related, the music stops playing after a while (sometime it happens just a few seconds after it started) but it seems that Music.GetStatus() still returns Playing. Also, the program won't exit, even if I wait until the "end" of the music. I never managed to have the file played until the end.

Here is the output of the test :
g++ music.cpp -lsfml-audio -lsfml-system && ./a.out
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
music.ogg :
 278.733 sec
 44100 samples / sec
 2 channels
Playing...

I don't think the bt_audio things are related to my problem.

I'm using Ubuntu 9.10 with SFML 1.6. Any help would be appreciated.

Pages: [1]