Skip to content

Audio output loopback as an audio track for LavaPlayer

Notifications You must be signed in to change notification settings

sedmelluq/lavaplayer-loopback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LavaPlayer Loopback - Audio output loopback as an audio track for LavaPlayer

This project implements an audio source manager for LavaPlayer which provides a track mirroring the audio going to the primary audio device on Windows.

Maven package

  • Repository: jcenter
  • Artifact: com.sedmelluq:lavaplayer-loopback:1.0.3

Using in Gradle:

repositories {
  jcenter()
}

dependencies {
  compile 'com.sedmelluq:lavaplayer-loopback:1.0.3'
}

Using in Maven:

<repositories>
  <repository>
    <id>central</id>
    <name>bintray</name>
    <url>http://jcenter.bintray.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>com.sedmelluq</groupId>
    <artifactId>lavaplayer-loopback</artifactId>
    <version>1.0.3</version>
  </dependency>
</dependencies>

Usage

To register the source:

playerManager.registerSourceManager(new LoopbackAudioSourceManager());

Then it can be loaded with:

playerManager.loadItem("loopback", ...);

An alternative way is to simply create the track directly:

LoopbackAudioSourceManager loopbackSource = new LoopbackAudioSourceManager();
LoopbackAudioTrack loopbackTrack = new LoopbackAudioTrack(loopbackSource);

About

Audio output loopback as an audio track for LavaPlayer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published