~ubuntu-branches/ubuntu/quantal/linphone/quantal

« back to all changes in this revision

Viewing changes to mediastreamer2/tests/echo.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-03-18 07:29:23 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090318072923-tcioxk5hqw2h3h0p
Tags: 3.0.0-3
Fix "spurious gnome-applets" Removed Build-Depends: (Closes: #520133)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        MSSndCard *card;
36
36
        MSTicker *ticker;
37
37
        char *card_id=NULL;
 
38
        ortp_init();
 
39
        ortp_set_log_level_mask(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
38
40
        ms_init();
39
41
        
40
42
        signal(SIGINT,stop);
43
45
                card_id=argv[1];
44
46
 
45
47
        if (card_id!=NULL)
 
48
          {
46
49
                card=ms_snd_card_manager_get_card(ms_snd_card_manager_get(),card_id);
 
50
#ifdef __linux
 
51
                if (card==NULL)
 
52
                  card = ms_alsa_card_new_custom(card_id, card_id);
 
53
#endif
 
54
          }
47
55
        else card=ms_snd_card_manager_get_default_card(ms_snd_card_manager_get());
 
56
 
48
57
        if (card==NULL){
49
58
                ms_error("No card.");
50
59
                return -1;