UE4仅支持16位.wav文件

UE4仅支持16位.wav文件?

找了下源码看了下,确实只有16bit的

ALuint FALAudioDevice::GetInternalFormat( int NumChannels )
{
    ALuint InternalFormat = 0;

    switch( NumChannels )
    {
    case 0:
    case 3:
    case 5:
        break;
    case 1:
        InternalFormat = AL_FORMAT_MONO16;
        break;
    case 2:
        InternalFormat = AL_FORMAT_STEREO16;
        break;
#if PLATFORM_LINUX
    case 4:
        InternalFormat = Surround40Format;
        break;
    case 6:
        InternalFormat = Surround51Format;
        break;
    case 7:
        InternalFormat = Surround61Format;
        break;
    case 8:
        InternalFormat = Surround71Format;
        break;
#endif
    }

    return( InternalFormat );
}

 

posted on 2022-02-02 12:39  c_dragon  阅读(132)  评论(0编辑  收藏  举报

导航