IOS audio via HDMI - how to deal with a sampling rate of 48 kHz?

I was happily synthesizing audio (at 44.1khz) and sending it through the RemoteIO audio device. It occurred to me that my application sound was “distorted” when outputting via HDMI to a specific TV model. It seems to me that the problem is that this TV is looking for 48 kHz audio data.

Here are a few questions:

  • Does RemoteIO remove the sampling rate of any device it outputs to? If I send audio via HDMI to a device requiring 48 kHz, do my RemoteIO callback buffers become 48 kHz?

  • Is there some neat way to just make RemoteIO still think in terms of 44.1khz and be smart enough to independently perform any necessary conversions of the sample rate before transferring data to the device?

  • If RemoteIO really just refers to the device connected to it, then, apparently, I need to do some conversion of the sampling frequency between my synthesis engine and the remote IO. Is it better to do this AudioConverterConvertComplexBuffer?

+5
source share
2 answers

​​. , , render, . , .

+3

, Audio Queue API , DSP.

RemoteIO , iOS, , , .., RemoteIO .

+1

All Articles