YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.client.PlayerSession.Audio Interface Reference

What the app does with the stream; the calls come from the session's thread. More...

Inheritance diagram for de.yaacc.sendspin.client.PlayerSession.Audio:
Inheritance graph
Collaboration diagram for de.yaacc.sendspin.client.PlayerSession.Audio:
Collaboration graph

Public Member Functions

void start (String codec, int sampleRate, int channels, int bitDepth, byte[] codecHeader)
 A stream starts in this format (the session checked that it is one the player offered; codecHeader is null for PCM).
 
void chunk (long serverTimestampMicros, byte[] pcm)
 One chunk: the audio and the time it has to be heard, on the server's clock.
 
void clear (Long fromTimestamp)
 Drops what is buffered (fromTimestamp: only what is stamped later; null: everything).
 
void end ()
 The stream ends (a pause or a stop): what is buffered is dropped.
 

Detailed Description

What the app does with the stream; the calls come from the session's thread.

Member Function Documentation

◆ chunk()

void de.yaacc.sendspin.client.PlayerSession.Audio.chunk ( long serverTimestampMicros,
byte[] pcm )

One chunk: the audio and the time it has to be heard, on the server's clock.

Implemented in de.yaacc.sendspin.player.SendspinAudioEngine.

◆ clear()

void de.yaacc.sendspin.client.PlayerSession.Audio.clear ( Long fromTimestamp)

Drops what is buffered (fromTimestamp: only what is stamped later; null: everything).

Implemented in de.yaacc.sendspin.player.SendspinAudioEngine.

◆ end()

void de.yaacc.sendspin.client.PlayerSession.Audio.end ( )

The stream ends (a pause or a stop): what is buffered is dropped.

Implemented in de.yaacc.sendspin.player.SendspinAudioEngine.

◆ start()

void de.yaacc.sendspin.client.PlayerSession.Audio.start ( String codec,
int sampleRate,
int channels,
int bitDepth,
byte[] codecHeader )

A stream starts in this format (the session checked that it is one the player offered; codecHeader is null for PCM).

Exceptions
IllegalArgumentExceptionif the codec header is not one the player can play (the session ends)

Implemented in de.yaacc.sendspin.player.SendspinAudioEngine.


The documentation for this interface was generated from the following file: