Jazz2::Resources::GenericSoundResource struct

Shared sound resource.

Constructors, destructors, conversion operators

GenericSoundResource(std::unique_ptr<Stream> stream, StringView filename) noexcept
Creates a new instance from a stream.

Public variables

AudioBuffer Buffer
Audio buffer.
GenericSoundResourceFlags Flags
Resource flags.

Function documentation

Jazz2::Resources::GenericSoundResource::GenericSoundResource(std::unique_ptr<Stream> stream, StringView filename) noexcept

Creates a new instance from a stream.

Parameters
stream Stream containing the sound data
filename File name used to detect the audio format