Sha256: b3dfd04d10047633a9fad254a301e9dec5dbda9528ead74a5951f655eed97f69

Contents?: true

Size: 745 Bytes

Versions: 15

Compression:

Stored size: 745 Bytes

Contents

#pragma once

#include <Gosu/Audio.hpp>
#include <Gosu/Platform.hpp>
#ifdef GOSU_IS_MAC
#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();
    void al_shutdown();
    
    // 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

15 entries across 15 versions & 1 rubygems

Version Path
gosu-0.15.2 src/AudioImpl.hpp
gosu-0.15.1 src/AudioImpl.hpp
gosu-0.15.0 src/AudioImpl.hpp
gosu-0.14.6.pre1 src/AudioImpl.hpp
gosu-0.14.5 src/AudioImpl.hpp
gosu-0.14.4 src/AudioImpl.hpp
gosu-0.14.4.pre2 src/AudioImpl.hpp
gosu-0.14.3.pre1 src/AudioImpl.hpp
gosu-0.14.3 src/AudioImpl.hpp
gosu-0.14.0 src/AudioImpl.hpp
gosu-0.14.0.pre2 src/AudioImpl.hpp
gosu-0.13.3 src/AudioImpl.hpp
gosu-0.13.2 src/AudioImpl.hpp
gosu-0.13.1 src/AudioImpl.hpp
gosu-0.13.0 src/AudioImpl.hpp