MacOSX just makes noise

hi there,

i tried https://joal-demos.dev.java.net/devmaster/lesson1.html and 2.
joal just makes noises. it sounds a bit like the file i try to play but it’s mainly noise.

OpenAL.framework version 1.0.12 – posted April 21, 2004
joal todays download (binary dist)
mac os x 10.3.5

do i need to change the lessons for macosx?

Sounds like a endian issue?

i uses my ‘new mail’-sound. it works in mail.app so i thought it should work in joal as well. (and i tried the Footsteps.wav from the example)

does wav have any endiness at all?

could anyone point me to a soundfile that works on mac os?

[quote]does wav have any endiness at all?
[/quote]
Of course it does, if you are using the typical 16-bit samples then it must have a particular byte order. And being a format popular on Intel platforms I would have to guess that it uses the little endian format required by the ancient 4 to 8-bit calculator chips that all intel chips from that point on have are based on :P. All the reasonable processors in the world today use big endian because it just makes more sense :P. So on Mac with the PowerPC you have big endian values typically. Thus I suspect that the audio APIs on Mac might work natively with big endian waveforms.

with some soundplayer, for example quicktime, you can get information about the sound s ‘endian-ness’.

if you use 8bit sound :frowning: you don t have any endian issues.

still i would also be interested in solving this problem. the ‘wav’ format, as far as i know, always ‘little endian’ thus wouldn t play correctly on ‘big endian’ machines. i m not enough into ‘OpenAL’ but is there any easy way to load for example ‘AIFF’ files which is a ‘big endian’ format with something similar to ‘alutLoadWAVFile’? is the a tutorial for that?