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

Pages: [1]
1
Audio / Re: Problem playing old voc file
« on: December 18, 2018, 02:11:34 pm »
VOC is an extension for creative voice files. But no matter, It seems I googled an old documentation link. From the version 2.2 documentation:
Quote
bool sf::SoundBuffer::loadFromFile    (    const std::string &     filename   )    

Load the sound buffer from a file.

Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.

Apparently file format support has been more limited in recent versions. I will write the code to convert to wav myself. Should not be to difficult. Thanks for waking me up :)

2
Audio / Problem playing old voc file
« on: December 18, 2018, 12:28:35 pm »
I'm trying to play a voc file from an old dos game I'm trying to convert to c# code (mostly fun programming exercise). I'm using the c# bindings of sfml, but I think the problem is more general to the audio library.

I can play ordinary wav files fine. but when I try to play the voc file I get an error "Failed to load sound buffer from file". Which is a rather generic error. All my other test files are in the same folder.

Both adobe audition and vlc play the voc sound file without problems. its mono and about 6250hz.

I also tried loading the voc data as samples (should no do that it has formatting blocks in there) and created a buffer from those samples as mono and 6250 samplerate. Does not sound pretty, but works. So its not the channel count or samplerate.

I'm guessing whatever is used for loading a voc file has a problem. Or maybe its me :). Anybody here that can help me?

3
DotNet / SFML.net audio crash problem
« on: December 03, 2018, 09:09:14 pm »
Hello,

I have been making my first steps using SFML.net. I started with some baby steps and after a little effort I have found a combination of dll's (csfml/sfml) that seems to work... mostly :(.

I can display graphics and input seems to work fine and such. However I cannot get the audio part to do anything good. Whatever I do I seem to get an error: The program '[17952] dotnet.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'. But only if I use the audio classes.

Some information:
I use the sfml.net bindings as compiled from github by me.
I use the csfml 2.5 dlls from https://ci.appveyor.com/project/eXpl0it3r/csfml/build/artifacts
I use sfml dlls (2.5.1) from https://www.sfml-dev.org/download/sfml/2.5.1/
I use .net core 2.1/Visutl studio 2017/Windows 10.

The following code gives the error. Not much to that.
using SFML.Audio;
using System;

namespace Test.Core
{
    class Program
    {
        static void Main(string[] args)
        {
            SoundBuffer s = new SoundBuffer(".\\Alarm01.wav");
        }
    }
}

I have the same error on music. At the moment I'm using 64-bit dll with the any-cpu config, which works for graphics. I tried using x86 config with 32-bit dlls. But then it crashes out with no error at all. no exceptions, no nothing.

I might me missing something obvious here, but for the moment the forum or issue list did not provide me with an answer I could use.

Any help appreciated.

Pages: [1]