Movatterモバイル変換


[0]ホーム

URL:


C Board


  1. Getting started with C or C++ |C Tutorial |C++ Tutorial |C and C++ FAQ |Get a compiler |Fixes for common problems

Thread:pc speaker sound and chickens...

  1. 11-25-2001#1
    Linguistic Engineer...doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459

    pc speaker sound and chickens...

    Code:
    /* Emits a 7-Hz tone for 10 seconds.     True story: 7 Hz is the resonant     frequency of a chicken's skull cavity.     This was determined empirically in     Australia, where a new factory      generating 7-Hz tones was located too     close to a chicken ranch: When the     factory started up, all the chickens     died.      Your PC may not be able to emit a 7-Hz tone. */#include <dos.h>int main(void){   sound(7);   delay(10000);   nosound();   return 0;}
    i got this example from the BC45 help... i've used this before and am familiar with it... however can we adjust the intensity of the signal? thank you...

    [i'd thought it'd make a good funny... that, and i don't wanna wake my folks when i'm pulling an all nighter... y'know, 2 AM in tomorrow...]
    hasafraggin shizigishin oppashigger...

  2. 11-25-2001#2
    It's full of starsadrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    7 Hz is below the threshold of human hearing, it is a subsonic frequency. Your parents won't hear it, but put it at enough power through a ss woofer and they will feel it!

  3. 11-25-2001#3
    Linguistic Engineer...doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    yeah i do have a background in the physics of sound so... but the idea was whether or not i could control the amplitude of the signal via a library function, as the range is checked by the sound () function... thanks just the same...
    hasafraggin shizigishin oppashigger...

Quick NavigationC++ ProgrammingTop
«Previous Thread|Next Thread»
Popular pagesRecent additionssubscribe to a feed
All times are GMT -6. The time now is07:24 AM.
Powered byvBulletin® Version 4.2.5
Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
Search Engine Optimisation provided byDragonByte SEO v2.0.40 (Pro) -vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.

[8]ページ先頭

©2009-2025 Movatter.jp