Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Rework audio #16

wants to merge 5 commits into from

Conversation

JayFoxRox
Copy link
Owner

@JayFoxRox JayFoxRox commented Dec 8, 2017

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:

  • Test AL_SOFT_deferred_updates
  • Figure out why some sounds are silent
  • Disable audio when a stream event is created. Better than hearing garbage all the time >.<

com/a3d.c Outdated
API(A3D_DISABLE_SPLASHSCREEN) = 0x00000080,
API(A3D_REVERB) = 0x00000100,
API(A3D_GEOMETRIC_REVERB) = 0x00000200,
API(A3D_DISABLE_FOCUS_MUTE) = 0x00000400
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugly tabs

@CLAassistant
Copy link

CLAassistant commented Dec 23, 2017

CLA assistant check
All committers have signed the CLA.

API(A3DSTATUS_BUFFERLOST) = 0x00000002,
API(A3DSTATUS_LOOPING) = 0x00000004,
API(A3DSTATUS_WAITING_FOR_FLUSH) = 0x00001000
};
Copy link
Owner Author

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);
Copy link
Owner Author

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;
Copy link
Owner Author

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
};
Copy link
Owner Author

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
Copy link
Owner Author

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");
}
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants