Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Sound/Soundbuffer Problem  (Read 3167 times)

0 Members and 1 Guest are viewing this topic.

Holgi69

  • Newbie
  • *
  • Posts: 2
    • View Profile
Sound/Soundbuffer Problem
« 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...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Sound/Soundbuffer Problem
« Reply #1 on: September 13, 2016, 07:25:01 am »
SFML.Net uses CSFML, so you must have the CSFML DLLs as well.
Laurent Gomila - SFML developer

Holgi69

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Sound/Soundbuffer Problem
« Reply #2 on: September 13, 2016, 10:25:11 pm »
Thanks a lot, that did it. And shame on me, just found it in the documentation.