Sha256: 6d1498dc741a9155c5f4967482e93738230cd499cc2826159f88094d201a3573

Contents?: true

Size: 904 Bytes

Versions: 2

Compression:

Stored size: 904 Bytes

Contents

#pragma once

#include <Gosu/Audio.hpp>
#include <Gosu/Platform.hpp>
#ifdef GOSU_IS_IPHONE
// Ignore OpenAL deprecation warnings. If macOS stops shipping OpenAL, it's more likely that we bundle our own version
// of it than that we switch to another audio API.
#define OPENAL_DEPRECATED
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#else
#include <AL/al.h>
#include <AL/alc.h>
#endif

namespace Gosu
{
    void al_initialize();
    bool al_initialized();

    // Will initialize OpenAL if necessary.
    ALCdevice* al_device();
    // Will initialize OpenAL if necessary.
    ALCcontext* al_context();

    const int NO_CHANNEL = -1;

    // Returns an expired Channel if no channel is free.
    // Will initialize OpenAL if necessary.
    Channel allocate_channel();

    bool channel_expired(int channel, int token);
    ALuint al_source_for_channel(int channel);
    ALuint al_source_for_songs();
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gosu-1.4.1 src/AudioImpl.hpp
gosu-1.4.0 src/AudioImpl.hpp