forked from libgdx/libgdx
-
Notifications
You must be signed in to change notification settings - Fork 0
Gdx audio
nooone edited this page Nov 9, 2013
·
3 revisions
Gdx-audio is an extension offering a lower-level API for audio. Features are:
- Decoders for mp3, ogg Vorbis and wav, using Mpg123, Xiph Tremor
- KissFFT and Java FFT by Damien Di Fede for comparison
- SoundTouch for pitch shifting, time stretching and playback rate modification
It is being distributed with every release in the extensions folder. To use the extension add the gdx-audio.jar and gdx-audio-natives.jar to your desktop project. For your android project add the gdx-audio.jar and copy the libgdx-audio.so files to your libs/armeabi and libs/armeabi-v7a folders.
For usage examples see:
- Mpg123Test, shows how to decode an mp3 with the Mpg123Decoder class
- VorbisTest, shows how to decode an ogg with the VorbisDecoder class
- WavTest, shows how to decode an wav with the WavDecoder class
- SoundTouchTest, shows how to apply pitch shifting to a PCM stream
Caveat: The vorbis and mp3 decoder can only decode files stored on the external storage. There might be the possibility to work around that limitation in the future. For most practical purposes it shouldn’t be too limiting.
-
Developer's Guide
- Introduction
- Goals & Features
- Community & Support
- Contributing
- Games Built with Libgdx
- Prerequisites
- Gradle Project Setup, Running, Debugging and Packaging
- Project Setup, Running & Debugging
- Third Party Services
- Working from Source
- Using libgdx with other JVM languages
- The Application Framework
- A Simple Game
- File Handling
- Networking
- Preferences
- Input Handling
- Memory Management
- Audio
-
Graphics
- Configuration & Querying Graphics ??
- Fullscreen & VSync
- Continuous & Non-Continuous Rendering
- Clearing the Screen
- Take a Screenshot
- OpenGL ES Support * Configuration & Querying OpenGL ?? * Direct Access ?? * Utility Classes * Rendering Shapes * Textures & TextureRegions * Meshes * Shaders * Frame Buffer Objects
- 2D Graphics * SpriteBatch, TextureRegions, and Sprite * 2D Animation * Clipping, with the use of ScissorStack * Orthographic camera * Mapping Touch Coordinates ?? * Viewports * NinePatches * Bitmap Fonts * Distance field fonts * Using TextureAtlases * Pixmaps * Packing Atlases Offline * Packing Atlases at Runtime * 2D Particle Effects * Tile Maps * scene2d * scene2d.ui * Skin
- 3D Graphics * Quick Start * Models * Material and environment * 3D animations and skinning * Importing Blender models in LibGDX * Perspective Camera ?? * Picking ??
- Managing Your Assets
- Utilities
-
Math Utilities
- Interpolation
- Vectors, Matrices, Quaternions
- Circles, Planes, Rays, etc.
- Path interface & Splines
- Bounding Volumes ??
- Intersection & Overlap Testing ??
- Physics
- Tools
- Extensions
- Deploying your Application
- Building Libgdx ??
- Known Issues
- Articles
- Deprecated (May be outdated)