Skip to content

Where TDAudioFileStream gets audio format? #4

Open
@Geri-Borbas

Description

@Geri-Borbas

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 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions