https://github.com/jdsherbert/simple-fmod-audio-player
Simple FMOD Audio Player written with C++
https://github.com/jdsherbert/simple-fmod-audio-player
audio-player cpp fmod fmod-api fmod-studio
Last synced: 5 months ago
JSON representation
Simple FMOD Audio Player written with C++
- Host: GitHub
- URL: https://github.com/jdsherbert/simple-fmod-audio-player
- Owner: JDSherbert
- License: mit
- Created: 2023-10-14T01:00:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-14T01:22:08.000Z (over 2 years ago)
- Last Synced: 2025-04-02T18:51:00.536Z (about 1 year ago)
- Topics: audio-player, cpp, fmod, fmod-api, fmod-studio
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Simple FMOD Audio Player
-----------------------------------------------------------------------
-----------------------------------------------------------------------
## Overview
This project is a simple audio player implemented in C++ using the FMOD library. FMOD is a powerful and easy-to-use audio engine, enabling developers to create immersive audio experiences in their applications.
### Prerequisites
Before you can run this audio player, you need to have the FMOD library installed and properly configured in your development environment. You can download FMOD from the official FMOD website and follow the installation instructions provided in the documentation.
Get FMOD here: https://www.fmod.com/
### How to Use
1. Clone the Repository
Clone this repository to your local machine using Git: `git clone https://github.com/your-username/fmod-audio-player.git`
2. Build the Project
Compile the C++ source files using a C++ compiler (e.g., g++, Visual Studio, Xcode). Make sure to link your project with the FMOD library to resolve the dependencies.
Example (on Unix-based systems using g++): `g++ -o audio_player audio_player.cpp main.cpp -lfmod`
3. Run the Audio Player
4. Run the compiled executable: `./audio_player`
5. Enjoy Your Music
The audio player will load and play the audio files specified in the playlist array in the main.cpp file. You can customize the playlist by modifying the paths to your desired audio files.
### Class Overview
AudioPlayer Class
The AudioPlayer class encapsulates the FMOD functionality and provides a convenient interface for audio playback. It contains the following methods:
AudioPlayer(): Constructor that initializes the FMOD system.
~AudioPlayer(): Destructor that releases FMOD resources.
void Play(const char* audioFile): Plays the specified audio file.
void Stop(): Stops the currently playing audio.
### License
This project is licensed under the MIT License - see the LICENSE file for details.
-----------------------------------------------------------------------