Jump to content

Tocar ficheiros WAV


Tim§id€
 Share

Recommended Posts

Eu tenho uma função que é:

Public Sub PlayResource(ByVal strLocation As IO.Stream)
        Dim sound As New Media.SoundPlayer(strLocation)
        sound.Play()
    End Sub

Quando quero "tcar um som"...

 PlayResource(My.Resources.vader)

o vader=teu ficheiro

Espero que funcione....

Quando te pedirem peixe.... ensina-os a Pescar!!Hum..lálálálá!!

Link to comment
Share on other sites

Eu tenho uma função que é:

Public Sub PlayResource(ByVal strLocation As IO.Stream)
        Dim sound As New Media.SoundPlayer(strLocation)
        sound.Play()
    End Sub

Quando quero "tcar um som"...

 PlayResource(My.Resources.vader)

o vader=teu ficheiro

Espero que funcione....

Public Sub PlayResource(ByVal strLocation As IO.Stream)

        Dim sound As New Media.SoundPlayer(strLocation)

        sound.Play()

    End Sub

(esse codigo funciona)=Obrigado pela ajuda...

mas esse nao funciona(Quando quero "tcar um som"...

 PlayResource(My.Resources.vader)

)

Obrigado...

...º(>_<)º...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.