Questions tagged [avaudioplayernode]

97 questions
0
votes
1 answer

AVAudioEngine sound recording changes tonality

I have few AVAudioPlayerNodes for each sound user can play. Each player node is connected to its own AVAudioMixerNode to change volume. All of these mixers are connected to one AVAudioMixerNode (I named it soundsMixerNode) which is connected to the…
Valentin Shamardin
  • 3,371
  • 3
  • 30
  • 43
0
votes
0 answers

How to read an AVAudioFile into the same AVAudioPCMBuffer multiple times?

EDIT: I was able to prevent readIntoBuffer from returning false by adding audioFileB.framePosition = 0; at the end of my for loop. However, now it looks like bufferB only contains audio from the final readIntoBuffer call (my incomplete loop). Does…
WongWray
  • 1,685
  • 1
  • 18
  • 20
0
votes
1 answer

How to cancel or remove echo/repeated sound with AVAudioEngine?

I am using the AVAudioEngine for audio streaming. But when I speak any word into the mic, it repeats multiple times, just like echo effect. I want when I speak, it sounds only one time, not multiple times. I want to cancel the echo or extra…
Saurabh Jain
  • 1,660
  • 10
  • 28
0
votes
1 answer

Method PlayAtTime AVAudioPlayerNode IOS Xamarin doesn't work

I want to play sound at specific time, I used Method PlayAtTime on AVAudioPlayerNode this is my code: private AVAudioUnitReverb reverb; private AVAudioEngine engine; private AVAudioFile file; private AVAudioPlayerNode audioPlayerNode; public…
0
votes
1 answer

Swift 3: Quickly playing sounds on AVAudioPlayerNode

I'm making a basic game and I'm trying to make hit sounds for it. I've got them to play at different pitches with help from Rhythmic Fistman, but now I have a new problem - it lags if I try playing them very quickly. This may not seem like a big…
MysteryPancake
  • 1,125
  • 1
  • 13
  • 36
0
votes
2 answers

AVAudioFile can not read file from document directory

NSArray * paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString * documentsDirectory = [paths objectAtIndex:0]; NSString *filePath = [NSString stringWithFormat:@"%@/audio.mp3",documentsDirectory]; NSURL…
0
votes
0 answers

How can i save file using AVAudioPlayerNode?

I make some effects to audio, using avaudioplayernode. And then i want to save the result. I try to do like this: Output = engine.outputNode; AudioStreamBasicDescription asbd; memset(&asbd, 0, sizeof(asbd)); …
Ray
  • 51
  • 5
1 2 3 4 5 6
7