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

Use hsThread for SoundBuffer preloading. #52

Merged
merged 3 commits into from Jul 23, 2011
Merged

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Jun 26, 2011

Rather than relying on non-portable CCritSect and pnUtils stuff, use existing hsThread classes for plSoundBuffer preloading.

As a side note, I don't know if this code ever worked, since the buffer was never removed from the original list when being added to the templist... I think that would be an infinite loop >.>

@zrax
Copy link
Member

zrax commented Jun 29, 2011

It appears you adjusted the file (or at least your additions) to use 2-space indentations... >.>

@dpogue
Copy link
Member Author

dpogue commented Jun 29, 2011

Those are tabs actually... blame Visual Studio (and then blame github for
rendering them as spaces)

On Tue, Jun 28, 2011 at 17:07, zrax <
reply@reply.github.com>wrote:

It appears you adjusted the file (or at least your additions) to use
2-space indentations... >.>

Reply to this email directly or view it on GitHub:
#52 (comment)

if(buffer->GetData())
for (int i = templist.GetCount(); i > 0; i--)
{
plSoundBuffer* buf = templist.Pop();
Copy link
Member

Choose a reason for hiding this comment

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

It seems you're tracking the list contents twice here (once with the decrementing index and once by actually popping an item)... Why not just throw away the for loop and use "while (templist.GetCount())" or something along those lines?

Deledrius added a commit that referenced this pull request Jul 23, 2011
Use hsThread for SoundBuffer preloading.
@Deledrius Deledrius merged commit b4d2553 into H-uru:master Jul 23, 2011
Deledrius added a commit to Deledrius/Plasma that referenced this pull request Dec 4, 2012
Use hsThread for SoundBuffer preloading.
Hoikas pushed a commit to Hoikas/Plasma that referenced this pull request Dec 4, 2012
Use hsThread for SoundBuffer preloading.
Hoikas pushed a commit to Hoikas/Plasma that referenced this pull request Dec 13, 2012
Use hsThread for SoundBuffer preloading.
zrax pushed a commit to zrax/Plasma that referenced this pull request Apr 24, 2020
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.

None yet

3 participants