is it possible to put libogg and libvorbis on IPhone?
Hello.
I'm trying to add sound support to my engine.
Till now I've managed to open and play Wav files using OpenAL.
I've read a tutorial on how to play OGG files with openAL, basically by using libogg and libvorbis
The problem is that when building the framework and adding it to my project the game crashes right after start, only boots if I remove the framework.
Is there any special way to compile frameworks for IPhone?
Hello.
I'm trying to add sound support to my engine.
Till now I've managed to open and play Wav files using OpenAL.
I've read a tutorial on how to play OGG files with openAL, basically by using libogg and libvorbis
The problem is that when building the framework and adding it to my project the game crashes right after start, only boots if I remove the framework.
Is there any special way to compile frameworks for IPhone?
Thanks. But actually I even thought someone manage to do solve the error I'm getting they don't explain how. Still trying to compile a framework to IPhone.
I asked there, let's hope someone answers.
I got the tremor branch to compile without the _ARM_ASSEM_ define and it works (although extreemly slow).
If you define _ARM_ASSEM_ you will get a load of errors because they used asm instead of __asm__. If you fix that it still won't compile floor0.c. No reason given, just "compiler failed with exit code 1" - very useful that. Didn't get any further than that.
I got the tremor branch to compile without the _ARM_ASSEM_ define and it works (although extreemly slow).
If you define _ARM_ASSEM_ you will get a load of errors because they used asm instead of __asm__. If you fix that it still won't compile floor0.c. No reason given, just "compiler failed with exit code 1" - very useful that. Didn't get any further than that.
I was able to build the tremor low mem branch successfully and it's working. I was able to play a 1.1 MB Ogg file till the end. I'm still loading all to the memory though, must do it streamable. Also only tested on the emulator, didn't had the chance to try with a real device.
What I did: dragged all .h and .c files to my project. DONT PUT THIS FILE ivorbisfile_example.c. After that all worked.
Finally got it working, but I'm not sure how. I was mucking around with the compiler settings and switched to LLVM_GCC4.2 and deselected the thumb option and it started compiling then (even though that makes no sense :shrug
As it happens the assembler only speeds it up a small bit.
A sound that loads in 70ms as WAV, will load in 206ms as OGG and 194ms as OGG with assembler enabled.
Finally got it working, but I'm not sure how. I was mucking around with the compiler settings and switched to LLVM_GCC4.2 and deselected the thumb option and it started compiling then (even though that makes no sense :shrug
As it happens the assembler only speeds it up a small bit.
A sound that loads in 70ms as WAV, will load in 206ms as OGG and 194ms as OGG with assembler enabled.
I am trying to get libogg and libvorbis compiled for iOS as well and having absolutely no luck. I've tried using the build_for_iphoneos script found here:
I am trying to get libogg and libvorbis compiled for iOS as well and having absolutely no luck. I've tried using the build_for_iphoneos script found here:
You need Vorbis tremor Tremor - XiphWiki. It's is written for ARM processors and is faster than the PC version. It's quite easy to build, just include the files (not the example files) into your xcode project and change the "__arm__" to "_arm_".
P.S. Tremolo is meant to be faster, but uses an assembly syntax that isn't compatible with xcode.
You need Vorbis tremor Tremor - XiphWiki. It's is written for ARM processors and is faster than the PC version. It's quite easy to build, just include the files (not the example files) into your xcode project and change the "__arm__" to "_arm_".
P.S. Tremolo is meant to be faster, but uses an assembly syntax that isn't compatible with xcode.
I checked that out. Added it to my Xcode project and remove the 2 example files, win32 folder, debian and doc folders, but get errors on the #include <ogg/ogg.h> files.
But that said, I actually realized I need the full (floating point) version of Ogg+Vorbis. Are you able to compile that?
I've used libogg/libvorbis before in my games, but I replaced the music files later by mp3 to take advantage of hardware decoding on the iPhones.
Can't help you with compilation problems, but if you search for it on google theres a website that contains lots of pre compiled libraries for iOS, including those two (I'm not at home so I don't have the link right now though)
I've used libogg/libvorbis before in my games, but I replaced the music files later by mp3 to take advantage of hardware decoding on the iPhones.
Can't help you with compilation problems, but if you search for it on google theres a website that contains lots of pre compiled libraries for iOS, including those two (I'm not at home so I don't have the link right now though)
If you could post that link, I would greatly appreciate it! Haven't had any luck on a few google searches trying to find it. :/