VB Sound einbinden

  • VB.NET

Es gibt 3 Antworten in diesem Thema. Der letzte Beitrag () ist von Radinator.

    VB Sound einbinden

    Servus

    Ich hätte da mal eine frage .
    Wie kann ich ohne DLL oder zb mp3 im ordner eine Wav einbinden.
    Ich habe bereits unter "Projektmappen-Explorer->Doppelklick auf My Project-> Ressourcen " eine Wav eingebunden .
    Nun habe ich es mit diesem Code probiert

    Quellcode

    1. Public Class Form1
    2. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    3. My.Computer.Audio.Play("boost.wav", AudioPlayMode.Background)
    4. Timer1.Start()
    5. Timer2.Start()
    6. End Sub


    Jedocht kommt dann eine fehlermeldung das kein pfad da sei :/

    Suche Hilfe
    Mfg
    Mit ressource is gemeint ​My.Computer.Resources
    In general (across programming languages), a pointer is a number that represents a physical location in memory. A nullpointer is (almost always) one that points to 0, and is widely recognized as "not pointing to anything". Since systems have different amounts of supported memory, it doesn't always take the same number of bytes to hold that number, so we call a "native size integer" one that can hold a pointer on any particular system. - Sam Harwell