Discussion:
Sound playback is muffled
keghn
2013-08-28 22:29:25 UTC
Permalink
Hello.
I ran you code on my linux machine and it work great.
I tested 16 bit 44100 stereo, 16bit 44100 mono, 22050 mono 16bit, and 8bit
22050 wav
files. My machine is a little enadian computer which most pc are. but i herd
apple use
big enadian to store there byte in memory.


/*
Compile as:

g++ wavvve.cpp -lalut -lopenal -o wavvve



#include <unistd.h>
#include <iostream>
#include <vector>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

using std::vector;

//#include <OpenAL/al.h>
//#include <OpenAL/alc.h>
#include <AL/al.h>
#include <AL/alc.h>

unsigned short ReadLE2(....................................etc...





--
View this message in context: http://openal.996291.n3.nabble.com/Sound-playback-is-muffled-tp2328p5574.html
Sent from the OpenAL - User mailing list archive at Nabble.com.

Loading...