Hi All, I'm looking into resampling of audio and have few questions. Can somebody help me in understanding what are the capabilities of the Helix audio resampling ?
Will audio system resample based on device's capabilities ? For E.g.. If a clip's sampling rate is 32KHz and if device does not support 32KHz, will the samples be resampled ? I noticed an array z_anValidSampleRates in hxaudsess.cpp. Are these the sampling rates supported ? I tried removing a sampling rate from this array and tried to play a clip of the same removed sampling rate, expecting the audio device to be opened on resampled rate, but audio device was opened on the clip's sample rate. And also the code on CHXAudioSession::GetDeviceFormat() (hxaudsess.cpp) creates a table of supported combination of sample rates and channels for the device. The tables first entry is always the clips exact properties except when "AudioDeviceSamplesPerSec" is added to the config file. When "AudioDeviceSamplesPerSec" is set on config file, the audio device is opened for the specified sampling rate rather than the clip's sampling rate. Where does the audio session check against the audio device properties (channels, sample rate) ? (Is there some validation done for mono, stereo property of the audio device and appropriate conversion ?) Thanks, Rajesh. _______________________________________________ Audio-dev mailing list Audio-dev@helixcommunity.org http://lists.helixcommunity.org/mailman/listinfo/audio-dev