SFML community forums

Bindings - other languages => DotNet => Topic started by: Holgi69 on September 12, 2016, 10:26:53 pm

Title: Sound/Soundbuffer Problem
Post by: Holgi69 on September 12, 2016, 10:26:53 pm
Hi,

for an Arduino Project I'm looking for a simple and fast library to play multiple waves simultaneously, so I came to SFML.NET 2.2. I tried to play a wave-file with the following:

Imports SFML
Imports SFML.Audio
Imports SFML.System

Public Class Form1

    Public myBuffer As SoundBuffer = New SoundBuffer("path\c_violin.wav")

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim mySound As Sound = New Sound(myBuffer)
        mySound.Play()
    End Sub

End Class

It keeps telling me that a System.DllNotFoundException in sfmlnet-audio-2.dll has occured.
The following references were added to the project:
sfmlnet-audio-2.dll
sfmlnet-system-2.dll
sfmlnet-graphics-2.dll
sfmlnet-window-2.dll

Do you think I did something wrong? Thanks...
Title: Re: Sound/Soundbuffer Problem
Post by: Laurent on September 13, 2016, 07:25:01 am
SFML.Net uses CSFML, so you must have the CSFML DLLs as well.
Title: Re: Sound/Soundbuffer Problem
Post by: Holgi69 on September 13, 2016, 10:25:11 pm
Thanks a lot, that did it. And shame on me, just found it in the documentation.