Visual basic .net insert an audio file

HomeForumsMonoBrick Communication LibraryVisual basic .net insert an audio file

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5400

    Hello all,

    I want to insert an audio file in “Microsoft Visual Studio 2013”, I managed to convert my file extension * .rsf chosen, the brick can read, but I can not insert my vb.net code. I put in resources, but I do not know how to recover it, here is my code, but it does not work :

     Private Async Sub BP_klaxon_Click(sender As Object, e As EventArgs) Handles BP_klaxon.Click
            Await _brick.DirectCommand.PlaySoundAsync(100, My.Computer.Network.DownloadFile(textBox1.Text, "myfile.rsf"))
    
            Await _brick.DirectCommand.PlaySoundAsync(100, "myfile.rsf")
    
        End Sub

    Help me please, it’s very important !
    Thank you in advance !
    Regards,
    Guillaume

    #5402
    Author Image
    Tcm0
    Participant

    I think that you have to upload the file to the mindstorms another way. Maybe you can use the official software or BricxCC.

    #5405
    Author Image
    Anders Søborg
    Keymaster

    Hi

    Don’t you want to upload the file instead of downloading it? Anyway make sure the file that you want to copy/send/upload to the brick is place in the same folder as the program that is executing.

    /Anders

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Posted in

Make a donation