Skip to content
Snippets Groups Projects
Commit 33f2113e authored by Lyubomir Marinov's avatar Lyubomir Marinov
Browse files

Merge GitHub pull request #36 'Remove condition for S16LE sample format'.

parents 6065f503 31b6c597
No related branches found
No related tags found
No related merge requests found
......@@ -483,11 +483,6 @@ private void sinkInfoListCallback(
List<CaptureDeviceInfo2> deviceList,
List<Format> formatList)
{
int sampleSpecFormat = PA.sink_info_get_sample_spec_format(sinkInfo);
if (sampleSpecFormat != PA.SAMPLE_S16LE)
return;
String description = PA.sink_info_get_description(sinkInfo);
String name = PA.sink_info_get_name(sinkInfo);
......@@ -517,12 +512,6 @@ private void sourceInfoListCallback(
if (monitorOfSink != PA.INVALID_INDEX)
return;
int sampleSpecFormat
= PA.source_info_get_sample_spec_format(sourceInfo);
if (sampleSpecFormat != PA.SAMPLE_S16LE)
return;
int channels = PA.source_info_get_sample_spec_channels(sourceInfo);
int rate = PA.source_info_get_sample_spec_rate(sourceInfo);
List<Format> sourceInfoFormatList = new LinkedList<Format>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment