Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46

    Referencing a file

    I want my application to play a mp3 file when it loads. I already added the mp3 to the application.



    then i tried:

    Code:
    My.computer.audio.play("song.mp3")
    and

    Code:
    IDKyet.my.computer.audio.play("song.mp3")
    but neither want to work. any suggestions?


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  2. #2
    Asians's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Asian world.
    Posts
    1,459
    Reputation
    34
    Thanks
    63
    My.computer.audio.play(LOCATION.NAME, background)

    Try this, with the location of the sound. D:

  3. #3
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    Quote Originally Posted by Asians View Post
    My.computer.audio.play(LOCATION.NAME, background)

    Try this, with the location of the sound. D:
    i'm trying to avoid that? i dont want the music file separate from the application, which is why i included it?


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  4. #4
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Add music file to resources then add this code
    Code:
    My.Computer.Audio.Play(My.Resources.song, AudioPlayMode.Background)
    -Rest in peace leechers-

    Your PM box is 100% full.

  5. #5
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    Quote Originally Posted by hejsan1 View Post
    Add music file to resources then add this code
    Code:
    My.Computer.Audio.Play(My.Resources.song, AudioPlayMode.Background)
    add it to the resource? if that's not the same as adding it to the solution, im lost :P. and do i just drop the extension?


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  6. #6
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy

    Here you go!



    Add Audio then add that code i said!
    -Rest in peace leechers-

    Your PM box is 100% full.

  7. #7
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    Quote Originally Posted by hejsan1 View Post


    Add Audio then add that code i said!
    yeah, just figured it out a sec ago. thanks XD

    *goddammit i should shoot myself*

    Edit: "error: the wave headder is corrupt", does it not like .mp3 files?
    Last edited by gwentravolta; 10-12-2009 at 01:48 PM.


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  8. #8
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by gwentravolta View Post
    yeah, just figured it out a sec ago. thanks XD

    *goddammit i should shoot myself*

    Edit: "error: the wave headder is corrupt"
    What do you mean, Explain....
    -Rest in peace leechers-

    Your PM box is 100% full.

  9. #9
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    Quote Originally Posted by hejsan1 View Post
    What do you mean, Explain....
    here's a pic. and dont b hatin for the song, it's beast

    Last edited by gwentravolta; 10-12-2009 at 01:53 PM.


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  10. #10
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Rename the file to a shorter name then edit he code...
    -Rest in peace leechers-

    Your PM box is 100% full.

  11. #11
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    Quote Originally Posted by hejsan1 View Post
    Rename the file to a shorter name then edit he code...
    renamed it to "boo" still didn't work. i think it just hates MP3 files


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  12. #12
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by gwentravolta View Post
    renamed it to "boo" still didn't work. i think it just hates MP3 files
    Did you add the files as audio?

    -Rest in peace leechers-

    Your PM box is 100% full.

  13. #13
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    Quote Originally Posted by hejsan1 View Post
    Did you add the files as audio?

    yes massa... message too short
    the only "audio" file it will accept is .wav. is there some "import" or something i can use to make it accept .mp3s?

    edit: Ahhh sound of success. seems like only .wav works. fine w/ me, i have a converter
    Last edited by gwentravolta; 10-12-2009 at 02:05 PM.


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  14. #14
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by gwentravolta View Post
    yes massa... message too short
    the only "audio" file it will accept is .wav. is there some "import" or something i can use to make it accept .mp3s?
    Easiest way, get a mp3 to waw converter.. Google it.

    That code doesn´t accept mp3......Idk why.
    Last edited by Zoom; 10-12-2009 at 02:10 PM.
    -Rest in peace leechers-

    Your PM box is 100% full.

  15. #15
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    If you want it to play when it loads, then either put it in a timer that's enabled, or put under Form1_Load
    I would test this but my internet is about to go off...
    If that's not what your talking about, then here:
    Try using .mp4 or .wav
    If I remember, I will post a tutorial on making a video converter when I get my internet back.

Page 1 of 2 12 LastLast

Similar Threads

  1. Invalid .iwd files referenced
    By shadoxfix in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 12-18-2010, 03:32 AM
  2. impure client detected. invalid iwd files referenced
    By allahakbr in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 08-03-2010, 12:21 AM
  3. error impure client detected invalid .IWD files referenced! need help
    By Topsnakebite in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 1
    Last Post: 04-26-2009, 12:59 PM
  4. File Scan here
    By Neogaidenx in forum Spammers Corner
    Replies: 4
    Last Post: 08-14-2008, 11:30 AM
  5. Free File Hosts
    By Paolo1993 in forum Spammers Corner
    Replies: 5
    Last Post: 04-12-2008, 08:33 PM

Tags for this Thread