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