Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes for rock compatibility
  • Loading branch information
Amos Wenger committed Apr 23, 2012
1 parent 4e01f2b commit 60e0ee1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions openal.ooc
Expand Up @@ -64,7 +64,7 @@ alBufferi: extern func (UInt, UInt, Int)
alGetBufferi: extern func (UInt, UInt, Int*)

// buffer operations
alBufferData: extern func (UInt, UInt, Pointer, SizeT, SizeT)
alBufferData: extern func (ALuint, ALformat, Char*, ALsizei, ALsizei)


//
Expand Down Expand Up @@ -144,7 +144,15 @@ AL_BITS: extern UInt
AL_CHANNELS: extern UInt

// buffer format
AL_FORMAT_MONO8: extern UInt
AL_FORMAT_MONO16: extern UInt
AL_FORMAT_STEREO8: extern UInt
AL_FORMAT_STEREO16: extern UInt
ALformat: enum {
mono8 : extern(AL_FORMAT_MONO8)
mono16 : extern(AL_FORMAT_MONO16)
stereo8 : extern(AL_FORMAT_STEREO8)
stereo16 : extern(AL_FORMAT_STEREO16)
}

ALsizei: cover from Int
ALint: cover from Int
ALuint: cover from UInt


0 comments on commit 60e0ee1

Please sign in to comment.