0

In my app I am using OpenAl to trim the audio song, now how to convert alSourcePlay(source); to NSData?

Can any one help me please?

graver
  • 15,183
  • 4
  • 46
  • 62
naga
  • 35
  • 1
  • 7

1 Answers1

0

we can write the buffer data into NSDocumentDirectory using ExtAudioFileWrite then we will get the path of buffer we can use that path to convert into Nsdata

err = ExtAudioFileWrite(destinationFile, StartingFrameOffset, &theDataBuffer);
naga
  • 35
  • 1
  • 7