Skip to Main Content
Mastering LibGDX Game Development
book

Mastering LibGDX Game Development

by Patrick Hoey
November 2015
Beginner to intermediate content levelBeginner to intermediate
420 pages
9h 2m
English
Packt Publishing
Content preview from Mastering LibGDX Game Development

Sound and music

The first item to note for this section is how the audio resources are managed within the LibGDX framework. As explained in the previous chapters, the implementation of the Application interface for the desktop is LwjglApplication, which is part of the LibGDX backend package called LWJGL (com.badlogic.gdx.backends.lwjgl). LWJGL not only includes OpenGL support for graphics, but also audio support via OpenAL.

OpenAL was developed with a 3D environment in mind, and so velocity, position, direction, and intensity are all parameters supported by this API. These parameters allow more naturally sounding audio as the player moves through their environment. Under the covers, the actual audio buffers contain audio data in raw PCM format, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Libgdx Game Development

Learning Libgdx Game Development

Andreas Oehlke
Libgdx Cross-platform Game Development Cookbook

Libgdx Cross-platform Game Development Cookbook

David Saltares Márquez, Alberto Cejas Sánchez
Learning LibGDX Game Development - Second Edition

Learning LibGDX Game Development - Second Edition

Suryakumar Balakrishnan Nair, Andreas Oehlke

Publisher Resources

ISBN: 9781785289361Supplemental Content