-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework audio #16
base: master
Are you sure you want to change the base?
Rework audio #16
Conversation
12028ff
to
6b7bf14
Compare
com/a3d.c
Outdated
API(A3D_DISABLE_SPLASHSCREEN) = 0x00000080, | ||
API(A3D_REVERB) = 0x00000100, | ||
API(A3D_GEOMETRIC_REVERB) = 0x00000200, | ||
API(A3D_DISABLE_FOCUS_MUTE) = 0x00000400 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugly tabs
6b7bf14
to
7e8b8f1
Compare
API(A3DSTATUS_BUFFERLOST) = 0x00000002, | ||
API(A3DSTATUS_LOOPING) = 0x00000004, | ||
API(A3DSTATUS_WAITING_FOR_FLUSH) = 0x00001000 | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
header
API(DWORD) dwMaxSampleRate; | ||
API(DWORD) dwMax2DBuffers; | ||
API(DWORD) dwMax3DBuffers; | ||
} API(A3DCAPS_HARDWARE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
header
API(WAVEFORMATEX) fmt; | ||
Address data; | ||
uint32_t event_offset; | ||
uint32_t event_handle; | ||
} A3DSOURCE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
header
API(A3D_REVERB) = 0x00000100, | ||
API(A3D_GEOMETRIC_REVERB) = 0x00000200, | ||
API(A3D_DISABLE_FOCUS_MUTE) = 0x00000400 | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
header
printf("AL_SOFT_deferred_updates not present, using fallback\n"); | ||
} | ||
|
||
// Stop updating, so we must force IA3d4::Flush |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wording sucks
_DeferUpdatesSOFT = alc_DeferUpdatesSOFT; | ||
_ProcessUpdatesSOFT = alc_ProcessUpdatesSOFT; | ||
printf("AL_SOFT_deferred_updates not present, using fallback\n"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert that the functionpointers have been set now
Here I attempted to add some more audio functionality and I (mostly) failed hard.
Somehow gain values are too low, audio still doesn't pause during menu and various other bugs exist.
Fortunately the audio subsytem can be deactivated in the options, so this is not too critical.
DuplicateSource
is absolutely horrible. It should - to my understanding - copy all flags). However this is still a lot better than what's in master currently. I'll create a new issue about this after merge.It also doesn't differentiate between native and 3D sources, which is another big issue.
SetPanValues
therefore can't be implemented.Also missing
SetEq
, Doppler stuff and the big one: audio streaming.FIXME: