How To Install SDL_sound on CentOS 7

In this tutorial we learn how to install SDL_sound on CentOS 7. SDL_sound is Library handling decoding of several popular sound file formats

Introduction

In this tutorial we learn how to install SDL_sound on CentOS 7.

What is SDL_sound

SDL_sound is a library that handles the decoding of several popular sound file formats, such as .WAV and .OGG. It is meant to make the programmer’s sound playback tasks simpler. The programmer gives SDL_sound a filename, or feeds it data directly from one of many sources, and then reads the decoded waveform data back at her leisure. If resource constraints are a concern, SDL_sound can process sound data in programmer-specified blocks. Alternately, SDL_sound can decode a whole sound file and hand back a single pointer to the whole waveform. SDL_sound can also handle sample rate, audio format, and channel conversion on-the-fly and behind-the-scenes, if the programmer desires.

We can use yum or dnf to install SDL_sound on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install SDL_sound.

Install SDL_sound on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install SDL_sound using yum by running the following command:

sudo yum -y install SDL_sound

Install SDL_sound on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install SDL_sound using dnf by running the following command:

sudo dnf -y install SDL_sound

How To Uninstall SDL_sound on CentOS 7

To uninstall only the SDL_sound package we can use the following command:

sudo dnf remove SDL_sound

References

Summary

In this tutorial we learn how to install SDL_sound on CentOS 7 using yum and dnf.