Questions tagged [openal]

OpenAL (Open Audio Library) is a cross-platform audio API that allows for efficient rendering of environmental, 3D positional audio.

OpenAL (Open Audio Library) is a cross-platform audio API that allows for efficient rendering of environmental, 3D positional audio.

OpenAL utilizes an extension mechanism in order to allow vendors to provide additional functionality.

It is often in games through extensions such as LWGJL.

594 questions
3
votes
1 answer

Play Multiple iPod Library Songs On iPhone At The Same Time With Pitch Bending & Other Effects

I have been going at this for the past two weeks and it is driving me crazy. I asked this question a couple of days ago (Extract iPod Library raw PCM samples and play with sound effects) and whilst the answer got me half way there I am still…
Dino
  • 566
  • 1
  • 7
  • 19
3
votes
2 answers

Capturing Audio Out

I want to capture all audio that is played to the user (all sounds together). Currently I'm working on Windows but it would be nice if the code was cross-platform (but not necessarily). Is it possible to do it with OpenAL? How? Code examples would…
Pijusn
  • 11,025
  • 7
  • 57
  • 76
3
votes
0 answers

Build go binary with static library

I'm trying to cross compile (from Arch Linux to Windows) a go binary with the openal library statically linked. I use MinGW to cross compile to Windows and to MinGW package I have install and intend to use to link the static libary is…
FanManPro
  • 1,076
  • 1
  • 13
  • 31
3
votes
1 answer

Functions of Open AL giving error of undefined reference while compiling with g++ in ubuntu

I am completely new to Open AL. So I started with installing Open AL library through command line sudo apt-get install libopenal-dev And also I installed alut installed with this command sudo apt-get install libalut0 libalut-dev Also I forked open…
Souravirus
  • 301
  • 2
  • 14
3
votes
2 answers

Programmatically playing MIDI with OpenAL and SF2

I can create a basic MIDI file from scratch verified using TiMidity++, and I know enough OpenAL to play a streamed source from a file. I'm just wondering if it's possible to create a program in C to play MIDI files by reading in a SF2 and MIDI file…
kaykun
  • 2,247
  • 2
  • 24
  • 37
3
votes
2 answers

Does Core Audio / OpenAL resample audio files?

I've noticed that if my audio files are in caf 11250Hz mono they perform worse than 44.1Khz mono. Tracing it with profiler I can see that for the low sample rate files one of the longest traces ends with LinearConverterInt32. This isn't present in…
Ian1971
  • 3,666
  • 7
  • 33
  • 61
3
votes
1 answer

How to record live audio input into file from microphone with openAL? (C++ code inside)

I have such code for doing echo of microphone with openAL on windows. I want to create some CapturedAudioData file to write all audio data captured during the loop. So its going to be like unformated PCM. And I need it to be filled up 25 times per…
Rella
  • 65,003
  • 109
  • 363
  • 636
3
votes
1 answer

Is there are rule in CMake that causes properties set in toolchain file to not persistent to CMakeLists?

I am trying to build OpenAL with the Android NDK. The license requires that the library be dynamically loaded. I receive the following message when attempting to build: CMake Warning (dev) at CMakeLists.txt:1032 (ADD_LIBRARY): ADD_LIBRARY called…
Sean Tasker
  • 69
  • 1
  • 5
3
votes
2 answers

OpenAL application crashes/hangs when I pass non-nullptr to `alBufferData()` from native code

I'm trying to play some sound on Android using OpenAL and C/C++. I'm using SDL framework. I keep getting mysterious crashes with alBufferData() even when my code is as simple as: ALuint buf, src; alGenBuffers(1, &buf); alGenSources(1, &src); uint8_t…
HolyBlackCat
  • 78,603
  • 9
  • 131
  • 207
3
votes
1 answer

How to create OpenAL Context in LWJGL 3

How can I create the OpenAL-Context in LWJGL3? I read, that you have to use "ALcontext", but that class doesn't exit in the current Release-Build. (LWJGL 3.0.0 build 90)
user4937236
3
votes
2 answers

How to play live audio on iOS?

I have an IPCamera that requires the use of a custom library for connecting and communication. I have the video all taken care of, but I also want to give the user the option to listen to the audio that is recorded by the camera. I receive the audio…
sadhi
  • 143
  • 3
  • 15
3
votes
1 answer

Loop streaming .ogg audio - OpenAL

I have problem looping a streamed ogg vorbis file. This is the code : fslStream_OGG::fslStream_OGG() { className = "fslSound"; iMemSize = 0; iLength = 0; bSourceRelative = false; bIsLooping = false; bForceStop = false; bActive = false; …
Bill Kotsias
  • 3,258
  • 6
  • 33
  • 60
3
votes
1 answer

g++ unable to link OpenAL Libraries

I have trouble compiling the following code #include #include #include int checkEnumerationSupport() { ALboolean enumeration; enumeration = alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT"); if…
Brian
  • 53
  • 6
3
votes
1 answer

Handling Device change in OpenAL

I'm trying to write an application using OpenTK.OpenAL to wrap openal, and I'm concerned about how I should handle a hypothetical situation where I unplug my default audio output device (such as headphones). When I try to open my default device, it…
cloud
  • 43
  • 2
  • 6
3
votes
0 answers

problems with vector destructor for vector of shared ptrs

I'm writing a sound manager for sound playback with openal. Each entity in the game is stored as a vector of shared pointers, each entitie have a private sound object. When each object is defined individually and not put inside the vector, it works…
victorious
  • 83
  • 1
  • 5