Skip to content

OpenAL support #784

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

feliwir
Copy link

@feliwir feliwir commented Apr 29, 2025

No description provided.

@feliwir feliwir added Major Severity: Minor < Major < Critical < Blocker Build Anything related to building, compiling ZeroHour Relates to Zero Hour Platform Work towards platform support, such as Linux, MacOS labels Apr 29, 2025
@OmniBlade OmniBlade modified the milestones: Linux support, x64 support Apr 29, 2025
@feliwir feliwir force-pushed the openal-support branch 3 times, most recently from b2c6d57 to 8d58e1d Compare May 6, 2025 07:54
Comment on lines 28 to 51
// union
// {
HSAMPLE m_sample;
H3DSAMPLE m_3DSample;
HSTREAM m_stream;
// };

PlayingAudioType m_type;
volatile PlayingStatus m_status; // This member is adjusted by another running thread.
AudioEventRTS *m_audioEventRTS;
void *m_file; // The file that was opened to play this
Bool m_requestStop;
Bool m_cleanupAudioEventRTS;
Int m_framesFaded;

PlayingAudio() :
m_type(PAT_INVALID),
m_audioEventRTS(NULL),
m_requestStop(false),
m_cleanupAudioEventRTS(true),
m_sample(0),
m_3DSample(0),
m_stream(0),
m_framesFaded(0)
{ }
};
Copy link

Choose a reason for hiding this comment

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

Yeah this all changed when i merged generals and zero hour, i reverted the changes zero hour brought in and went with the original generals way of doing it by using the union again. I then initialise m_sample(NULL) and dropped m_3DSample and m_stream from the initialiser list. They are all just pointers.

Copy link
Author

Choose a reason for hiding this comment

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

Alright, will adapt this. Thanks for the heads up

@feliwir feliwir force-pushed the openal-support branch 2 times, most recently from c3b0cbf to feeb1a8 Compare May 6, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Anything related to building, compiling Major Severity: Minor < Major < Critical < Blocker Platform Work towards platform support, such as Linux, MacOS ZeroHour Relates to Zero Hour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants