Rough in pcm alaw support. Untested.
This commit is contained in:
parent
80461cb135
commit
4949159b88
|
@ -298,6 +298,14 @@ int main(int argc, char *argv[]) {
|
|||
session->GetMediaSessionId(), xop::channel_1, audioFifoPath);
|
||||
audioSource->setFrequency(monitor->GetAudioFrequency());
|
||||
audioSource->setChannels(monitor->GetAudioChannels());
|
||||
} else if (std::string::npos != audioFifoPath.find("pcm_alaw")) {
|
||||
Debug(1, "Adding G711A source at %dHz %d channels",
|
||||
monitor->GetAudioFrequency(), monitor->GetAudioChannels());
|
||||
session->AddSource(xop::channel_1, xop::G711ASource::CreateNew());
|
||||
audioSource = new ADTS_ZoneMinderFifoSource(rtspServer,
|
||||
session->GetMediaSessionId(), xop::channel_1, audioFifoPath);
|
||||
audioSource->setFrequency(monitor->GetAudioFrequency());
|
||||
audioSource->setChannels(monitor->GetAudioChannels());
|
||||
} else {
|
||||
Warning("Unknown format in %s", audioFifoPath.c_str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue