mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
#757 Implements Broadcastify Calls API audio broadcaster and resolves audio streaming error introduced with #5 (#773)
Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
@@ -35,7 +35,7 @@ import javafx.util.Callback;
|
||||
public class ConfiguredBroadcast
|
||||
{
|
||||
private BroadcastConfiguration mBroadcastConfiguration;
|
||||
private AudioBroadcaster mAudioBroadcaster;
|
||||
private AbstractAudioBroadcaster mAudioBroadcaster;
|
||||
private ObjectProperty<BroadcastState> mBroadcastState = new SimpleObjectProperty<>();
|
||||
|
||||
/**
|
||||
@@ -93,7 +93,7 @@ public class ConfiguredBroadcast
|
||||
* Sets the audio broadcaster
|
||||
* @param audioBroadcaster to use for this configuration
|
||||
*/
|
||||
public void setAudioBroadcaster(AudioBroadcaster audioBroadcaster)
|
||||
public void setAudioBroadcaster(AbstractAudioBroadcaster audioBroadcaster)
|
||||
{
|
||||
mBroadcastState.unbind();
|
||||
mAudioBroadcaster = audioBroadcaster;
|
||||
@@ -126,11 +126,19 @@ public class ConfiguredBroadcast
|
||||
/**
|
||||
* Optional audio broadcaster created from the configuration
|
||||
*/
|
||||
public AudioBroadcaster getAudioBroadcaster()
|
||||
public AbstractAudioBroadcaster getAudioBroadcaster()
|
||||
{
|
||||
return mAudioBroadcaster;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if this configured broadcast has a non-null audio broadcaster assigned
|
||||
*/
|
||||
public boolean hasAudioBroadcaster()
|
||||
{
|
||||
return mAudioBroadcaster != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an observable property extractor for use with observable lists to detect changes internal to this object.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user