mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Initial commit
added libraries: opus flac libsndfile updated: libvorbis libogg openal - Everything works as expected for now. Bare in mind libsndfile needed the check for whether or not it could find the xiph libraries removed in order for this to work.
This commit is contained in:
parent
05a083ca6f
commit
a745fc3757
1954 changed files with 431332 additions and 21037 deletions
|
|
@ -301,23 +301,16 @@ bool WinMMPlayback::reset()
|
|||
return false;
|
||||
}
|
||||
|
||||
uint chanmask{};
|
||||
if(mFormat.nChannels >= 2)
|
||||
{
|
||||
mDevice->FmtChans = DevFmtStereo;
|
||||
chanmask = SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT;
|
||||
}
|
||||
else if(mFormat.nChannels == 1)
|
||||
{
|
||||
mDevice->FmtChans = DevFmtMono;
|
||||
chanmask = SPEAKER_FRONT_CENTER;
|
||||
}
|
||||
else
|
||||
{
|
||||
ERR("Unhandled channel count: %d\n", mFormat.nChannels);
|
||||
return false;
|
||||
}
|
||||
setChannelOrderFromWFXMask(chanmask);
|
||||
setDefaultWFXChannelOrder();
|
||||
|
||||
uint BufferSize{mDevice->UpdateSize * mFormat.nChannels * mDevice->bytesFromFmt()};
|
||||
|
||||
|
|
@ -476,6 +469,8 @@ void WinMMCapture::open(const char *name)
|
|||
case DevFmtX51:
|
||||
case DevFmtX61:
|
||||
case DevFmtX71:
|
||||
case DevFmtX714:
|
||||
case DevFmtX3D71:
|
||||
case DevFmtAmbi3D:
|
||||
throw al::backend_exception{al::backend_error::DeviceError, "%s capture not supported",
|
||||
DevFmtChannelsString(mDevice->FmtChans)};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue