Fmod播放的采样率在哪里设置,默认的采样率是多少

fmod播放时候的采样率怎么设置,默认的是多少?

手机平台(例如:iOS,Android),默认的采样率是24KHz,任何其他平台默认的采样率是48KHz。若想设置采样率,请查看以下网址:

https://fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system_setsoftwareformat

Fmode播放一个wav的音频,会出现错误信息,播放也是断断续续的,这是什么原因。

[LOG] SystemI::init : Initialize version=11008 (96768), maxchannels=10, flags=0x00000000
[LOG] SystemI::setOutputInternal : Setting output to ‘FMOD Core Audio Output’
[LOG] OutputCoreAudio::init : Hardware buffer size: 1024 samples, hardware sample rate: 48000Hz, hardware channels: 2
[LOG] OutputCoreAudio::init : Maximum hardware read size: 4096 samples, Software buffer size: 512 samples, Number of software buffers: 4.
[WRN] OutputCoreAudio::init : DSP buffer size * DSP num buffers is potentially too small.
[WRN] SystemI::init : Output requires a sample rate of 48000Hz, resampling will occur.
[LOG] Thread::initThread : Init FMOD stream thread. Priority: 2, Stack Size: 65536, Semaphore: No, Sleep Time: 10, Looping: Yes.
[LOG] Thread::initThread : Init FMOD mixer thread. Priority: 1, Stack Size: 49152, Semaphore: Yes, Sleep Time: 0, Looping: Yes.
[LOG] SystemI::createSoundInternal : Create name=’/var/containers/Bundle/Application/5C6F781D-DA89-4DD7-8578-7119CEEC0C5B/AudioProgress.app/output666.wav’, mode=0x00000090
[ERR] CodecFSB5::readHeader : Header check failed. Not an FSB5
[ERR] CodecOggVorbis::openInternal : failed to open as ogg
[ERR] CodecMOD::openInternal : ‘M.K.’ etc ID check failed [???]
[ERR] CodecS3M::openInternal : ‘SCRM’ ID check failed [???]
[ERR] CodecXM::openInternal : ‘Extended Module: ’ ID check failed [caff]
[ERR] CodecIT::openInternal : ‘IMPM’ etc ID check failed [caff]
[ERR] CodecMIDI::openInternal : ‘HThd’ ID check failed [caff]
[LOG] SystemI::createSoundInternal : Stream: name=’(null)’, format=2, channels=2, frequency=16000, lengthbytes=344484, lengthpcm=86121, pcmblocksize=1, loopstart=0, loopend=0, mode=0x00000000, channelmask=0x00000000, channelorder=0, peakvolume=0.000000.
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1
[WRN] CodecAudioQueue::readInternal : AudioQueueOfflineRender didn’t return any data, retry 1

在 2019-06-18 08:41:34,“thuan via FMOD Questions” fmod@discoursemail.com 写道:

从错误信息看起来,你所使用的wav文件并非一般的wav文件。这可能导致平台内置解码机无法正确处理解码过程。 请尝试查看其他wav文件是否显示类似问题。

居然有汉语回复 赞啊