Play sound in a different frequency
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