GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - feixiao/linux_audio_decoder_and_player: simple linux audio interface using ffmpeg and alsa

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
audio
audio
 
 
include
include
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
COPYING
COPYING
 
 
LICENSE
LICENSE
 
 
main.cpp
main.cpp
 
 
readme.md
readme.md
 
 

Repository files navigation

linux_audio_decoder_and_player

This is a small linux audio playback example using FFmpeg and alsa.

Compilation

This project use cmake to compil, make sure you have FFmpeg/libav and libasound installed. Default c++ version is c++17 but I think th other version would work fine.

cmake .
make
build/decode_and_play {path_to_audio_file}

Classes

Decoder

  • PcmReader: read pcm data from the file and pass data to player.
  • FFmpegDecoder: decode audio file and output pcm data to player.

Player

  • PcmDumper: Dump pcm data from the decoder to file.
  • AlsaPlayer: Play pcm data using alsa interface.

Tested format

  • wav
  • mp3
  • m4a
  • aiff

License

This library is released under the MIT License. All included dependencies have been released under identical or similarly permissive licenses. Please note though that FFmpeg, which you will need to build this library, is not released under MIT License. Depending on how you build it, it is either LGPL or GPL. So if you use the GPL-version of FFmpeg in your project, this library will be GPL too.

About

simple linux audio interface using ffmpeg and alsa

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.