Sha256: 8858baeba3ea97910d7f2a45b87986d4f79ac1c8a96d49dce6efa90911642cf0

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

#ifndef COREAUDIO_H
#define COREAUDIO_H 1

#include <ruby.h>

#include "extconf.h"

extern VALUE rb_mCoreAudio;
extern VALUE rb_mAudioFile;

extern void Init_coreaudio_audiofile(void);

/*-- Utility Macros --*/
#define CROPF(F) ((F) > 1.0 ? 1.0 : (((F) < -1.0) ? -1.0 : (F)))
#define FLOAT2SHORT(F) ((short)(CROPF(F)*0x7FFF))
#define SHORT2FLOAT(S) ((float)(S) / (float)32767.0)

/*-- prototypes for missing functions --*/

#ifndef HAVE_RB_ALLOC_TMP_BUFFER
extern void *rb_alloc_tmp_buffer(volatile VALUE *store, long len);
#endif

#ifndef HAVE_RB_FREE_TMP_BUFFER
extern void rb_free_tmp_buffer(volatile VALUE *store);
#endif


#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
coreaudio-0.0.3 ext/coreaudio.h