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 - s.baus

Pages: [1] 2 3
1
Audio / Re: Using SoundBuffer to split audio files?
« on: February 24, 2018, 03:58:32 pm »
Thanks for your response, this helps me really a lot, since I didn't know, how the samples are structured.

Does SoundBuffer recognize in which file format it should save on the file extension, or is there something I have to keep in mind? Since I think wave, ogg, flac are not all the same?! :)

2
Audio / Using SoundBuffer to split audio files?
« on: February 24, 2018, 01:17:29 pm »
Hello everybody,
I use SFML successfully inside my project for audio playback and like it very much. I use the C# binding and now have the task to split an audio file into little files (one large file about 2 hours into files of some minutes). Since I need a plattform independent framework (my project is build with mono/gtk-sharp,etc.) and didn't find any valuable framework I thought of using SFML for this task. So I took a look inside and found the SoundBuffer class, which already has the SaveToFile method and the internal handling for different file formats (the audio file can be ogg/wave/flac/mp3 (I know, it is not supported by SFML, wrote a wrapper myself)). The splitting will be done from time x to time y. How can I find out, where the samples of SoundBuffer belong to, meaning, which time they stand for?

Do you think this task can be achieved with this approach?
Thanks for respones.
Sven

3
C / CSFML for Linux 2.4
« on: December 31, 2017, 01:38:16 pm »
Hello everybody,
I would like to update the SFML Binding for .Net and read on the forum that I just need to update the CSFML binding. Since I use SFML on Windows and Linux I went to the download page, but couldn't find the download for Linux for Version 2.4. Are the Links missing?

Thanks for the response
Sven

4
DotNet / Re: SFML.NET 2.4 Update
« on: October 30, 2017, 11:24:09 am »
Hello,

thanks for the effort porting it to 2.4. May I ask, when the release will be published on the download pages?

Thanks
Sven

5
DotNet / Waiting for SFML.Net 2.3
« on: May 22, 2015, 08:21:26 am »
Hello together,

since SFML 2.3 was released, when will there be a release 2.3 of SFML.Net? Thanks for your answers :).

Greetings
Sven

6
C / Re: Problem building CSFML Master on linux
« on: April 14, 2015, 10:59:41 am »
I'll try my best xD.

[ 46%] Building CXX object src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o                                                                  
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:0:
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:54:26: Error: conflicting returnvalue for  »virtual unsigned int sfShapeImpl::getPointCount() const« specified
     virtual unsigned int getPointCount() const
                          ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:32:0,
                 from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:
/usr/local/include/SFML/Graphics/Shape.hpp:196:25: Error:   »virtual std::size_t sf::Shape::getPointCount() const« will be overwritten
     virtual std::size_t getPointCount() const = 0;
                         ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:0:
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:87:25: Error: Field »sfShape::This« can not be declared from abstract type »sfShapeImpl«
     sfShapeImpl         This;
                         ^
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:41:7: Warning:   the following virtual functions are only in »sfShapeImpl«:
 class sfShapeImpl : public sf::Shape
       ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:32:0,
                 from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:
/usr/local/include/SFML/Graphics/Shape.hpp:213:22: Anmerkung:   virtual sf::Vector2f sf::Shape::getPoint(std::size_t) const
     virtual Vector2f getPoint(std::size_t index) const = 0;
                      ^
make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o] Fehler 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Fehler 2
make: *** [all] Fehler 2
[root@localhost CSFML-master

7
C / Problem building CSFML Master on linux
« on: April 14, 2015, 10:00:42 am »
Hello,
I'm currently trying to build the CSFML master branch on linux. But I get the following error:

[ 46%] Building CXX object src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o                                                                  
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:0:
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:54:26: Fehler: in Konflikt stehenden Rückgabetyp für »virtual unsigned int sfShapeImpl::getPointCount() const« angegeben
     virtual unsigned int getPointCount() const
                          ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:32:0,
                 from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:
/usr/local/include/SFML/Graphics/Shape.hpp:196:25: Fehler:   »virtual std::size_t sf::Shape::getPointCount() const« wird überschrieben
     virtual std::size_t getPointCount() const = 0;
                         ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:0:
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:87:25: Fehler: Feld »sfShape::This« kann nicht als vom abstrakten Typ »sfShapeImpl« deklariert werden
     sfShapeImpl         This;
                         ^
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:41:7: Anmerkung:   denn die folgenden virtuellen Funktionen sind rein innerhalb »sfShapeImpl«:
 class sfShapeImpl : public sf::Shape
       ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:32:0,
                 from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:
/usr/local/include/SFML/Graphics/Shape.hpp:213:22: Anmerkung:   virtual sf::Vector2f sf::Shape::getPoint(std::size_t) const
     virtual Vector2f getPoint(std::size_t index) const = 0;
                      ^
make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o] Fehler 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Fehler 2
make: *** [all] Fehler 2
[root@localhost CSFML-master

Anyone ideas, why it fails? Thanks for your help.

8
DotNet / Re: Performanceproblems with 2.2?
« on: March 30, 2015, 01:07:57 pm »
Well, whats the problem then? I'm not familiar with cmake.

9
DotNet / Re: Performanceproblems with 2.2?
« on: March 30, 2015, 11:28:19 am »
I tried a build myself, SFML just got installed nice, but I can't get CSFML to build properly:

Quote
[root@localhost CSFML-master]# cmake .
CMake Error at src/SFML/CMakeLists.txt:26 (find_package):
  By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "SFML", but
  CMake did not find one.

  Could not find a package configuration file provided by "SFML" (requested
  version 2) with any of the following names:

    SFMLConfig.cmake
    sfml-config.cmake

  Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set
  "SFML_DIR" to a directory containing one of the above files.  If "SFML"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/sven/Downloads/CSFML-master/CMakeFiles/CMakeOutput.log".

How do I set the SFML_DIR variable?

10
DotNet / Re: Performanceproblems with 2.2?
« on: March 26, 2015, 09:00:31 pm »
I just thought it would be easier to get a nightly build, than to build SFML myself, since I use the framework not to worry about underlying stuff.

If eXpl0it3r could do an update, that would be really nice.

11
DotNet / Re: Performanceproblems with 2.2?
« on: March 25, 2015, 03:48:04 pm »
There are nightly builds, but I don't know if they are recent enough.

I found this site (http://www.nightlybuilds.ch/) here, but the nightly builds are from january. Who is responsible for this site?
Since I use the bindings also on linux, what are the plans for a release 2.3?

If you are on linux why don't you just build it yourself then? It is super easy compared to windows.

Quote
git clone https://github.com/SFML/SFML.git
cd SFML
cmake .
make install
cd ..
git clone https://github.com/SFML/CSFML.git
cd CSFML
cmake .
make install

I tried this, but failed at the SFML build:
Quote
-- Could NOT find LIBXCB_ICCCM (missing:  LIBXCB_ICCCM_LIBRARY)
CMake Error at cmake/Modules/FindXCB.cmake:93 (message):
  xcb-icccm not found
Call Stack (most recent call first):
  src/SFML/Window/CMakeLists.txt:196 (find_package)

12
DotNet / Re: Performanceproblems with 2.2?
« on: March 20, 2015, 03:21:23 pm »
Since I use the bindings also on linux, what are the plans for a release 2.3? Or can you update the 2.2? release to work with the SFML master build?

13
DotNet / Re: Performanceproblems with 2.2?
« on: March 20, 2015, 08:00:40 am »
You could try with the latest SFML sources, now that we don't use libsndfile anymore.

Is it possible to get the SFML and CSFML compiled? I'm not able to build them myself, just managed to build the SFML.Net myself.

14
DotNet / Re: Performanceproblems with 2.2?
« on: March 19, 2015, 07:41:30 am »
Well, I'm not sure any more, if it has to do with the bindings, or is a problem of SFML itself. When I set a new music object with the ogg file from above it also hangs about 5 till 10 seconds. If I set the PlayingOffset more at the end, the thread stops longer than if I set the PlayingOffset more to the start. Seems like the stream seeking is a bit unperformant, but has anybody else problems with this?

15
DotNet / Re: Performanceproblems with 2.2?
« on: March 18, 2015, 03:53:33 pm »
I just did a retest with 2.1, i'm also facing the problem with this release :(. Sorry for bothering you. Just tested it with mp3 (I did myself), that works performant, but ogg has pour performance. Are there any plans to tweak the performance?

Pages: [1] 2 3