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

Pages: [1]
1
Audio / Wav doesn't play in Linux
« on: July 12, 2015, 12:12:12 pm »
This is pretty strange, i have 4 sounds effects in wav. In windows plays well, but in linux, 2 sounds effects don't play:
"Failed to open sound file "./Sonido/Menu_mover.wav" (format no supported)"
"Failed to open sound file "./Sonido/Menu_sonido.wav" (format no supported)"

Sounds:
https://dl.dropboxusercontent.com/u/69551225/Sounds.tar.gz

const std::string carpeta = "./Sonido/";
menu_mover.loadFromFile(carpeta+"Menu_mover.wav");
menu_enter.loadFromFile(carpeta+"Menu_sonido.wav");
comida.loadFromFile(carpeta+"Comida.wav");
muerte.loadFromFile(carpeta+"Muerte.wav");

I don't understand nothing. The whole proyect is here (contains binary of windows/linux for test):
https://dl.dropboxusercontent.com/u/69551225/Snake.tar.gz


2
General / SFML doesn´t work
« on: March 24, 2013, 11:13:52 am »
I am tryng install at CodeBlocks (Windows):

- First, i download SDK 2.0 from here:
http://www.sfml-dev.org/download.php
- Copy folders "lib" and include to Mingw folder´s.
- Create a emply project, i go to build options and add link library:



- Enter macro SFML_STATIC:



Add one file to project and one sample code:

#include <SFML/Window.hpp>

int main()
{
    sf::Window window(sf::VideoMode(800, 600), "My window");

    // run the program as long as the window is open
    while (window.isOpen())
    {
        // check all the window's events that were triggered since the last iteration of the loop
        sf::Event event;
        while (window.pollEvent(event))
        {
            // "close requested" event: we close the window
            if (event.type == sf::Event::Closed)
                window.close();
        }
    }

    return 0;
}

Compile great. But when i execute:



Test now with dinamyc lib, delete macro STATIC and compile. Copy DLL to the software folder´s. I have another  error:



*_*

Pages: [1]