You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a (temporary) replacement for GKVoiceChatService, so I feed the output stream with samples collected from microphone manually whenever it has space available.
But I can't see how can I set [TDAudioFileStream basicDescription], in the current code I just can't figure out how it is initialized to a given format.
I have the AudioStreamBasicDescription of every CMSampleBuffer I got from AVCaptureSession, but can't see exactly how to inject this information into the processing (otherwise the buffers just traversing fine as I simply NSLogged out).
If I'm right, the underlying audio queue also gets the format from TDAudioFileStream.
Can you give me some hint on this?
The text was updated successfully, but these errors were encountered:
Ahh, I suppose I have to mimic an audio file header, and send it as the first packet. A bit hurts that you did not answered anyway. Feels like anti-socail coding. :)
As AudioFileStreamParseBytes documentation says:
Streamed audio file data is expected to be passed to the parser in the same sequence in which it appears in the audio file, from the beginning of the audio file stream, without gaps.
Hi, great piece of work!
I'm working on a (temporary) replacement for
GKVoiceChatService
, so I feed the output stream with samples collected from microphone manually whenever it has space available.But I can't see how can I set [TDAudioFileStream basicDescription], in the current code I just can't figure out how it is initialized to a given format.
I have the
AudioStreamBasicDescription
of everyCMSampleBuffer
I got fromAVCaptureSession
, but can't see exactly how to inject this information into the processing (otherwise the buffers just traversing fine as I simply NSLogged out).If I'm right, the underlying audio queue also gets the format from
TDAudioFileStream
.Can you give me some hint on this?
The text was updated successfully, but these errors were encountered: