root/trunk/libfreebob/src/libfreebobavc/avc_definitions.cpp

Revision 125, 1.5 kB (checked in by wagi, 18 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /* avc_defintions.cpp
2  * Copyright (C) 2005 by Daniel Wagner
3  *
4  * This file is part of FreeBob.
5  *
6  * FreeBob is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * FreeBob is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FreeBob; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18  * MA 02111-1307 USA.
19  */
20
21 #include "avc_definitions.h"
22
23 std::ostream& operator<<( std::ostream& stream, ESamplingFrequency freq )
24 {
25     char* str;
26     switch ( freq ) {
27     case eSF_22050Hz:
28         str = "22050";
29         break;
30     case eSF_24000Hz:
31         str = "24000";
32         break;
33     case eSF_32000Hz:
34         str = "32000";
35         break;
36     case eSF_44100Hz:
37         str = "44100";
38         break;
39     case eSF_48000Hz:
40         str = "48000";
41         break;
42     case eSF_88200Hz:
43         str = "88200";
44         break;
45     case eSF_96000Hz:
46         str = "96000";
47         break;
48     case eSF_176400Hz:
49         str = "176400";
50         break;
51     case eSF_192000Hz:
52         str = "192000";
53         break;
54     case eSF_DontCare:
55     default:
56         str = "unknown";
57     }
58     return stream << str;
59 };
Note: See TracBrowser for help on using the browser.