SFML / SFML.Net

Official binding of SFML for .Net languages

Home Page:https://www.sfml-dev.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Failed to load sound buffer: unsupported number of channels

joreg opened this issue · comments

commented

hello,

i'm getting the following error when using the SoundBufferRecorder on a raspberry pi 3b:

Failed to load sound buffer (unsupported number of channels: 2126894056)
Unhandled exception. SFML.LoadingFailedException: Failed to load sound buffer from memory
   at SFML.Audio.SoundBuffer..ctor(Int16[] samples, UInt32 channelCount, UInt32 sampleRate)
   at SFML.Audio.SoundBufferRecorder.OnStop()

odd thing: the same app runs on windows without that problem.

i even explicitly set the channel count of the SoundRecorder to 1 before starting recording.

any ideas?

What version of SFML.Net and CSFML are you using?

commented

right, so this happens with SFML.NET 2.5.0 and for CSFML i have these installed:

grafik
(not sure how to read that version number. is that 2.5 or 2.5.1?)

commented

@eXpl0it3r any thoughts what i could test?

commented

progress: turns out it works if i build SFML.Audio.dll from latest sources. just the current nuget (2.5.0) is broken.

looks like the 2.5.0 nuget is over 3 years old. is there a reason there is no newer release?

Good to hear. Not exactly sure which part cause the failure. We did fix some DLLImport mismatches, so maybe one of those caused the issue on your side.

Been meaning to publish a new CSFML version and then update the SFML.Net version, but it takes time to generate all the necessary binaries. Hopefully will get around to it soon.

With the new 2.5.1 version published, I'll assume this issue has been resolved and as such I'll close the issue.
If you still have trouble with the latest SFML.Net version, feel free to reopen this issue.