• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Play sound in a different frequency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Play sound in a different frequency


  • Subject: Re: Play sound in a different frequency
  • From: Hugo Silva <email@hidden>
  • Date: Mon, 11 Apr 2011 16:41:00 +0100

On 11/04/11 16:35, David Rowland wrote:
The sound is defined by the file. A WAV file usually represents samples at a rate of 44.1 kHz, meaning that it can reproduce sounds up to 22.05 kHz. That is just above the range of most human hearing. However, the amplifier and speaker (headphones, transducer????) may not be able to create a sound at that frequency.

Why do you want to do this?

David



On Apr 11, 2011, at 3:03 AM, Hugo Silva wrote:

Hi,

I need to play a sound, but an ultrasound, that can't be listen by humans.. I have this code to play the sound:

AVAudioPlayer *myPlayer;
    NSMutableData *soundFileData;
    soundFileData = [NSMutableData dataWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"beep-1.wav" ofType:NULL]]];
    myPlayer = [[AVAudioPlayer alloc] initWithData:soundFileData error:NULL];
    //if repeatedly playing the same sound, reset the playback pointer
    if ([myPlayer currentTime] != 0) [myPlayer setCurrentTime:0];
    [myPlayer play];

This code plays a normal sound, that I can listen. How I can change the frequency to play sound but in a way that humans can't listen it?

Best regards,
Hugo Silva
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
I need to generate a ultra sound to detect positions...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Play sound in a different frequency
      • From: David Rowland <email@hidden>
References: 
 >Play sound in a different frequency (From: Hugo Silva <email@hidden>)
 >Re: Play sound in a different frequency (From: David Rowland <email@hidden>)

  • Prev by Date: Re: Play sound in a different frequency
  • Next by Date: Re: Univeral App Icon- Bug in iOS 4.3.1? - Resolved
  • Previous by thread: Re: Play sound in a different frequency
  • Next by thread: Re: Play sound in a different frequency
  • Index(es):
    • Date
    • Thread