Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ce0a985f
Commit
ce0a985f
authored
Aug 03, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
faudio: Import upstream release 22.08.
parent
2dd90388
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
2 deletions
+64
-2
FAudio.h
libs/faudio/include/FAudio.h
+1
-1
FAudio_platform_win32.c
libs/faudio/src/FAudio_platform_win32.c
+1
-1
matrix_defaults.inl
libs/faudio/src/matrix_defaults.inl
+62
-0
No files found.
libs/faudio/include/FAudio.h
View file @
ce0a985f
...
...
@@ -485,7 +485,7 @@ extern FAudioGUID DATAFORMAT_SUBTYPE_IEEE_FLOAT;
#define FAUDIO_ABI_VERSION 0
#define FAUDIO_MAJOR_VERSION 22
#define FAUDIO_MINOR_VERSION
7
#define FAUDIO_MINOR_VERSION
8
#define FAUDIO_PATCH_VERSION 0
#define FAUDIO_COMPILED_VERSION ( \
...
...
libs/faudio/src/FAudio_platform_win32.c
View file @
ce0a985f
...
...
@@ -582,7 +582,7 @@ FAudioThread FAudio_PlatformCreateThread(
void
FAudio_PlatformWaitThread
(
FAudioThread
thread
,
int32_t
*
retval
)
{
WaitForSingleObject
(
thread
,
INFINITE
);
GetExitCodeThread
(
thread
,
(
DWORD
*
)
retval
);
if
(
retval
!=
NULL
)
GetExitCodeThread
(
thread
,
(
DWORD
*
)
retval
);
}
void
FAudio_PlatformThreadPriority
(
FAudioThreadPriority
priority
)
...
...
libs/faudio/src/matrix_defaults.inl
View file @
ce0a985f
/* This was generated by making 8 sources and 8 submixes, then assigning each
* submix to each voice and dumping the output matrix. Terrible, but it worked!
*/
/*
int main(int argc, char **argv)
{
CoInitialize(NULL);
IXAudio2 *engine;
XAudio2Create(&engine);
IXAudio2MasteringVoice *master;
engine->CreateMasteringVoice(&master);
FILE *fileOut = fopen("matrix_defaults.inl", "w");
for (int srcChans = 1; srcChans < 9; srcChans += 1)
{
fprintf(fileOut, "{\n");
for (int dstChans = 1; dstChans < 9; dstChans += 1)
{
IXAudio2SubmixVoice *submix;
engine->CreateSubmixVoice(&submix, dstChans, 48000);
XAUDIO2_SEND_DESCRIPTOR sendDesc;
sendDesc.Flags = 0;
sendDesc.pOutputVoice = submix;
XAUDIO2_VOICE_SENDS sends;
sends.SendCount = 1;
sends.pSends = &sendDesc;
WAVEFORMATEX fmt;
fmt.wFormatTag = 1;
fmt.nChannels = srcChans;
fmt.nSamplesPerSec = 48000;
fmt.wBitsPerSample = 16;
fmt.nBlockAlign = srcChans * (fmt.wBitsPerSample / 8);
fmt.nAvgBytesPerSec = fmt.nBlockAlign * fmt.nSamplesPerSec;
fmt.cbSize = 0;
IXAudio2SourceVoice *source;
engine->CreateSourceVoice(&source, &fmt, 0, 2.0f, NULL, &sends);
float matrix[8 * 8];
source->GetOutputMatrix(submix, srcChans, dstChans, matrix);
fprintf(fileOut, "\t{ ");
for (int i = 0; i < srcChans * dstChans; i += 1)
{
fprintf(fileOut, "%.9f%s ", matrix[i], (i == ((srcChans * dstChans) - 1)) ? "" : ",");
}
fprintf(fileOut, "}%s\n", (dstChans == 8) ? "" : ",");
source->DestroyVoice();
submix->DestroyVoice();
}
fprintf(fileOut, "}%s\n", (srcChans == 8) ? "" : ",");
}
fclose(fileOut);
master->DestroyVoice();
engine->Release();
CoUninitialize();
return 0;
}
*/
{
/* 1 x 1 */
{ 1.000000000f },
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment