Re: [OpenSIPStack] Can not list my audio devices
Brought to you by:
joegenbaclor
From: Ilian J. C. P. <ip...@so...> - 2008-05-12 03:01:31
|
Hi, Before calling anything ( probably in your main() ), put a "PSound sound( "dummy-file" );" line. This is just a dummy line to load OPAL's sound plugin. Regards, Ilian Claudio Miceli wrote: > Hi, > > I am using the following code in order to list my audio devices, but it did > not work. Am I doing something wrong or forgetting something? > > Thanks in advance. > > Claudio Miceli de Farias > > PSoundChannel::Directions dir; > PStringArray namesPlay, namesRecord; > cout << "\n"; > cout << "List of play devices\n"; > > dir = PSoundChannel::Player; > namesPlay = PSoundChannel::GetDeviceNames(dir); > > for (PINDEX i = 0; i < namesPlay.GetSize(); i++) > cout << " \"" << namesPlay[i] << "\"\n"; > > cout << "The default play device is \"" << > PSoundChannel::GetDefaultDevice(dir) << "\"\n"; > > cout << "\n"; > cout << "List of Record devices\n"; > > dir = PSoundChannel::Recorder; > namesRecord = PSoundChannel::GetDeviceNames(dir); > for (PINDEX i = 0; i < namesRecord.GetSize(); i++) > cout << " \"" << namesRecord[i] << "\"\n"; > > cout << "The default record device is \"" << > PSoundChannel::GetDefaultDevice(dir) << "\"\n"; > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > |