• 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
Play sound in a different frequency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Play sound in a different frequency


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

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


  • Follow-Ups:
    • Re: Play sound in a different frequency
      • From: David Rowland <email@hidden>
  • Prev by Date: doc search types work oddly in Xcode 4
  • Next by Date: Sharing API docsets between Xcode 3 and 4
  • Previous by thread: doc search types work oddly in Xcode 4
  • Next by thread: Re: Play sound in a different frequency
  • Index(es):
    • Date
    • Thread