Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. A Car Horn for my Robot

A Car Horn for my Robot

Scheduled Pinned Locked Moved C#
tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sebogawa
    wrote on last edited by
    #1

    Im trying to implement a car horn sound clip into my robot. When I press the right bumper of my xbox 360 controller, a car horn should sound and if I hold it down, it should continue the sound untill i let go, like a real car horn. If i loop the sound it will just beep very fast...any ideas as how to accomplish a relaistic car horn sound?

    K S 2 Replies Last reply
    0
    • S sebogawa

      Im trying to implement a car horn sound clip into my robot. When I press the right bumper of my xbox 360 controller, a car horn should sound and if I hold it down, it should continue the sound untill i let go, like a real car horn. If i loop the sound it will just beep very fast...any ideas as how to accomplish a relaistic car horn sound?

      K Offline
      K Offline
      Khaniya
      wrote on last edited by
      #2

      I think you should have to use delay in between. but it will not very useful when you press continue. bacause sound clip somthing like increasing/decreasing. in short try to make use of different sound clip in different scenario. :)

      Life's Like a mirror. Smile at it & it smiles back at you.- P Pilgrim So Smile Please

      1 Reply Last reply
      0
      • S sebogawa

        Im trying to implement a car horn sound clip into my robot. When I press the right bumper of my xbox 360 controller, a car horn should sound and if I hold it down, it should continue the sound untill i let go, like a real car horn. If i loop the sound it will just beep very fast...any ideas as how to accomplish a relaistic car horn sound?

        S Offline
        S Offline
        Som Shekhar
        wrote on last edited by
        #3

        This is usually achieved well in flash games. I have seen these such sounds there. Or, you could use a really long file. say 5 minutes. Now, noone is going to honk that long.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups