Skip to content

Samples and Sources should be separate #7

@monokrome

Description

@monokrome

A sample is a specific sound, while a source is a description of where/how the sound is being emitted. This project initially kept the source and sample together within the same object, but there are noticeable performance gains available when using them as separate objects.

The most notable gain would be that multiple sources using the same sound file don't need to load the sound file multiple times. If we have 10 of the same monster, for instance - they are currently all loading their sound files separately instead of sharing the same resources.

Furthermore, as per issue #5 we also would benefit from caching these sounds outside of IOpenALSample for another performance gain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions