├── .gitignore ├── .gitmodules ├── .travis.yml ├── Doxyfile ├── IDZAQAudioPlayer.xcodeproj ├── project.pbxproj └── xcshareddata │ └── xcschemes │ └── IDZAQAudioPlayer.xcscheme ├── IDZAQAudioPlayer ├── Default-568h@2x.png ├── Default.png ├── Default@2x.png ├── IDZAQAudioPlayer-Info.plist ├── IDZAQAudioPlayer-Prefix.pch ├── IDZAQAudioPlayer.h ├── IDZAQAudioPlayer.m ├── IDZAQAudioPlayerAppDelegate.h ├── IDZAQAudioPlayerAppDelegate.m ├── IDZAudioDecoder.h ├── IDZAudioPlayer.h ├── IDZAudioPlayerViewController.h ├── IDZAudioPlayerViewController.m ├── IDZOggVorbisFileDecoder.h ├── IDZOggVorbisFileDecoder.mm ├── IDZTrace.h ├── Rondo_Alla_Turka.ogg ├── en.lproj │ ├── IDZAQAudioPlayerViewController.xib │ ├── IDZAudioPlayerViewController.xib │ └── InfoPlist.strings └── main.m ├── README.md └── travis_build /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | *.xcworkspace 13 | !default.xcworkspace 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | DerivedData 18 | .idea/ 19 | 20 | doc 21 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Frameworks/IDZPrecompiledOgg"] 2 | path = Frameworks/IDZPrecompiledOgg 3 | url = https://github.com/iosdevzone/IDZPrecompiledOgg 4 | [submodule "Frameworks/IDZPrecompiledVorbis"] 5 | path = Frameworks/IDZPrecompiledVorbis 6 | url = https://github.com/iosdevzone/IDZPrecompiledVorbis 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | osx_image: xcode9.2 2 | language: objective-c 3 | 4 | script: 5 | - ./travis_build 6 | -------------------------------------------------------------------------------- /Doxyfile: -------------------------------------------------------------------------------- 1 | # Doxyfile 1.8.2 2 | 3 | # This file describes the settings to be used by the documentation system 4 | # doxygen (www.doxygen.org) for a project 5 | # 6 | # All text after a hash (#) is considered a comment and will be ignored 7 | # The format is: 8 | # TAG = value [value, ...] 9 | # For lists items can also be appended using: 10 | # TAG += value [value, ...] 11 | # Values that contain spaces should be placed between quotes (" ") 12 | 13 | #--------------------------------------------------------------------------- 14 | # Project related configuration options 15 | #--------------------------------------------------------------------------- 16 | 17 | # This tag specifies the encoding used for all characters in the config file 18 | # that follow. The default is UTF-8 which is also the encoding used for all 19 | # text before the first occurrence of this tag. Doxygen uses libiconv (or the 20 | # iconv built into libc) for the transcoding. See 21 | # http://www.gnu.org/software/libiconv for the list of possible encodings. 22 | 23 | DOXYFILE_ENCODING = UTF-8 24 | 25 | # The PROJECT_NAME tag is a single word (or sequence of words) that should 26 | # identify the project. Note that if you do not use Doxywizard you need 27 | # to put quotes around the project name if it contains spaces. 28 | 29 | PROJECT_NAME = IDZAQAudioPlayer 30 | 31 | # The PROJECT_NUMBER tag can be used to enter a project or revision number. 32 | # This could be handy for archiving the generated documentation or 33 | # if some version control system is used. 34 | 35 | PROJECT_NUMBER = 36 | 37 | # Using the PROJECT_BRIEF tag one can provide an optional one line description 38 | # for a project that appears at the top of each page and should give viewer 39 | # a quick idea about the purpose of the project. Keep the description short. 40 | 41 | PROJECT_BRIEF = "An Audio Queue based audio player." 42 | 43 | # With the PROJECT_LOGO tag one can specify an logo or icon that is 44 | # included in the documentation. The maximum height of the logo should not 45 | # exceed 55 pixels and the maximum width should not exceed 200 pixels. 46 | # Doxygen will copy the logo to the output directory. 47 | 48 | PROJECT_LOGO = 49 | 50 | # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) 51 | # base path where the generated documentation will be put. 52 | # If a relative path is entered, it will be relative to the location 53 | # where doxygen was started. If left blank the current directory will be used. 54 | 55 | OUTPUT_DIRECTORY = /Users/idz/Documents/src/IDZAQAudioPlayer/doc 56 | 57 | # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 58 | # 4096 sub-directories (in 2 levels) under the output directory of each output 59 | # format and will distribute the generated files over these directories. 60 | # Enabling this option can be useful when feeding doxygen a huge amount of 61 | # source files, where putting all generated files in the same directory would 62 | # otherwise cause performance problems for the file system. 63 | 64 | CREATE_SUBDIRS = NO 65 | 66 | # The OUTPUT_LANGUAGE tag is used to specify the language in which all 67 | # documentation generated by doxygen is written. Doxygen will use this 68 | # information to generate all constant output in the proper language. 69 | # The default language is English, other supported languages are: 70 | # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, 71 | # Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, 72 | # Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English 73 | # messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, 74 | # Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, 75 | # Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. 76 | 77 | OUTPUT_LANGUAGE = English 78 | 79 | # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will 80 | # include brief member descriptions after the members that are listed in 81 | # the file and class documentation (similar to JavaDoc). 82 | # Set to NO to disable this. 83 | 84 | BRIEF_MEMBER_DESC = YES 85 | 86 | # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend 87 | # the brief description of a member or function before the detailed description. 88 | # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 89 | # brief descriptions will be completely suppressed. 90 | 91 | REPEAT_BRIEF = YES 92 | 93 | # This tag implements a quasi-intelligent brief description abbreviator 94 | # that is used to form the text in various listings. Each string 95 | # in this list, if found as the leading text of the brief description, will be 96 | # stripped from the text and the result after processing the whole list, is 97 | # used as the annotated text. Otherwise, the brief description is used as-is. 98 | # If left blank, the following values are used ("$name" is automatically 99 | # replaced with the name of the entity): "The $name class" "The $name widget" 100 | # "The $name file" "is" "provides" "specifies" "contains" 101 | # "represents" "a" "an" "the" 102 | 103 | ABBREVIATE_BRIEF = "The $name class" \ 104 | "The $name widget" \ 105 | "The $name file" \ 106 | is \ 107 | provides \ 108 | specifies \ 109 | contains \ 110 | represents \ 111 | a \ 112 | an \ 113 | the 114 | 115 | # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then 116 | # Doxygen will generate a detailed section even if there is only a brief 117 | # description. 118 | 119 | ALWAYS_DETAILED_SEC = NO 120 | 121 | # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all 122 | # inherited members of a class in the documentation of that class as if those 123 | # members were ordinary class members. Constructors, destructors and assignment 124 | # operators of the base classes will not be shown. 125 | 126 | INLINE_INHERITED_MEMB = NO 127 | 128 | # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full 129 | # path before files name in the file list and in the header files. If set 130 | # to NO the shortest path that makes the file name unique will be used. 131 | 132 | FULL_PATH_NAMES = YES 133 | 134 | # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag 135 | # can be used to strip a user-defined part of the path. Stripping is 136 | # only done if one of the specified strings matches the left-hand part of 137 | # the path. The tag can be used to show relative paths in the file list. 138 | # If left blank the directory from which doxygen is run is used as the 139 | # path to strip. Note that you specify absolute paths here, but also 140 | # relative paths, which will be relative from the directory where doxygen is 141 | # started. 142 | 143 | STRIP_FROM_PATH = 144 | 145 | # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of 146 | # the path mentioned in the documentation of a class, which tells 147 | # the reader which header file to include in order to use a class. 148 | # If left blank only the name of the header file containing the class 149 | # definition is used. Otherwise one should specify the include paths that 150 | # are normally passed to the compiler using the -I flag. 151 | 152 | STRIP_FROM_INC_PATH = 153 | 154 | # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter 155 | # (but less readable) file names. This can be useful if your file system 156 | # doesn't support long names like on DOS, Mac, or CD-ROM. 157 | 158 | SHORT_NAMES = NO 159 | 160 | # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen 161 | # will interpret the first line (until the first dot) of a JavaDoc-style 162 | # comment as the brief description. If set to NO, the JavaDoc 163 | # comments will behave just like regular Qt-style comments 164 | # (thus requiring an explicit @brief command for a brief description.) 165 | 166 | JAVADOC_AUTOBRIEF = NO 167 | 168 | # If the QT_AUTOBRIEF tag is set to YES then Doxygen will 169 | # interpret the first line (until the first dot) of a Qt-style 170 | # comment as the brief description. If set to NO, the comments 171 | # will behave just like regular Qt-style comments (thus requiring 172 | # an explicit \brief command for a brief description.) 173 | 174 | QT_AUTOBRIEF = NO 175 | 176 | # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen 177 | # treat a multi-line C++ special comment block (i.e. a block of //! or /// 178 | # comments) as a brief description. This used to be the default behaviour. 179 | # The new default is to treat a multi-line C++ comment block as a detailed 180 | # description. Set this tag to YES if you prefer the old behaviour instead. 181 | 182 | MULTILINE_CPP_IS_BRIEF = NO 183 | 184 | # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented 185 | # member inherits the documentation from any documented member that it 186 | # re-implements. 187 | 188 | INHERIT_DOCS = YES 189 | 190 | # If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce 191 | # a new page for each member. If set to NO, the documentation of a member will 192 | # be part of the file/class/namespace that contains it. 193 | 194 | SEPARATE_MEMBER_PAGES = NO 195 | 196 | # The TAB_SIZE tag can be used to set the number of spaces in a tab. 197 | # Doxygen uses this value to replace tabs by spaces in code fragments. 198 | 199 | TAB_SIZE = 4 200 | 201 | # This tag can be used to specify a number of aliases that acts 202 | # as commands in the documentation. An alias has the form "name=value". 203 | # For example adding "sideeffect=\par Side Effects:\n" will allow you to 204 | # put the command \sideeffect (or @sideeffect) in the documentation, which 205 | # will result in a user-defined paragraph with heading "Side Effects:". 206 | # You can put \n's in the value part of an alias to insert newlines. 207 | 208 | ALIASES = 209 | 210 | # This tag can be used to specify a number of word-keyword mappings (TCL only). 211 | # A mapping has the form "name=value". For example adding 212 | # "class=itcl::class" will allow you to use the command class in the 213 | # itcl::class meaning. 214 | 215 | TCL_SUBST = 216 | 217 | # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C 218 | # sources only. Doxygen will then generate output that is more tailored for C. 219 | # For instance, some of the names that are used will be different. The list 220 | # of all members will be omitted, etc. 221 | 222 | OPTIMIZE_OUTPUT_FOR_C = NO 223 | 224 | # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java 225 | # sources only. Doxygen will then generate output that is more tailored for 226 | # Java. For instance, namespaces will be presented as packages, qualified 227 | # scopes will look different, etc. 228 | 229 | OPTIMIZE_OUTPUT_JAVA = NO 230 | 231 | # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran 232 | # sources only. Doxygen will then generate output that is more tailored for 233 | # Fortran. 234 | 235 | OPTIMIZE_FOR_FORTRAN = NO 236 | 237 | # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL 238 | # sources. Doxygen will then generate output that is tailored for 239 | # VHDL. 240 | 241 | OPTIMIZE_OUTPUT_VHDL = NO 242 | 243 | # Doxygen selects the parser to use depending on the extension of the files it 244 | # parses. With this tag you can assign which parser to use for a given 245 | # extension. Doxygen has a built-in mapping, but you can override or extend it 246 | # using this tag. The format is ext=language, where ext is a file extension, 247 | # and language is one of the parsers supported by doxygen: IDL, Java, 248 | # Javascript, CSharp, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, 249 | # C++. For instance to make doxygen treat .inc files as Fortran files (default 250 | # is PHP), and .f files as C (default is Fortran), use: inc=Fortran f=C. Note 251 | # that for custom extensions you also need to set FILE_PATTERNS otherwise the 252 | # files are not read by doxygen. 253 | 254 | EXTENSION_MAPPING = 255 | 256 | # If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all 257 | # comments according to the Markdown format, which allows for more readable 258 | # documentation. See http://daringfireball.net/projects/markdown/ for details. 259 | # The output of markdown processing is further processed by doxygen, so you 260 | # can mix doxygen, HTML, and XML commands with Markdown formatting. 261 | # Disable only in case of backward compatibilities issues. 262 | 263 | MARKDOWN_SUPPORT = YES 264 | 265 | # When enabled doxygen tries to link words that correspond to documented classes, 266 | # or namespaces to their corresponding documentation. Such a link can be 267 | # prevented in individual cases by by putting a % sign in front of the word or 268 | # globally by setting AUTOLINK_SUPPORT to NO. 269 | 270 | AUTOLINK_SUPPORT = YES 271 | 272 | # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want 273 | # to include (a tag file for) the STL sources as input, then you should 274 | # set this tag to YES in order to let doxygen match functions declarations and 275 | # definitions whose arguments contain STL classes (e.g. func(std::string); v.s. 276 | # func(std::string) {}). This also makes the inheritance and collaboration 277 | # diagrams that involve STL classes more complete and accurate. 278 | 279 | BUILTIN_STL_SUPPORT = NO 280 | 281 | # If you use Microsoft's C++/CLI language, you should set this option to YES to 282 | # enable parsing support. 283 | 284 | CPP_CLI_SUPPORT = NO 285 | 286 | # Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. 287 | # Doxygen will parse them like normal C++ but will assume all classes use public 288 | # instead of private inheritance when no explicit protection keyword is present. 289 | 290 | SIP_SUPPORT = NO 291 | 292 | # For Microsoft's IDL there are propget and propput attributes to indicate 293 | # getter and setter methods for a property. Setting this option to YES (the 294 | # default) will make doxygen replace the get and set methods by a property in 295 | # the documentation. This will only work if the methods are indeed getting or 296 | # setting a simple type. If this is not the case, or you want to show the 297 | # methods anyway, you should set this option to NO. 298 | 299 | IDL_PROPERTY_SUPPORT = YES 300 | 301 | # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC 302 | # tag is set to YES, then doxygen will reuse the documentation of the first 303 | # member in the group (if any) for the other members of the group. By default 304 | # all members of a group must be documented explicitly. 305 | 306 | DISTRIBUTE_GROUP_DOC = NO 307 | 308 | # Set the SUBGROUPING tag to YES (the default) to allow class member groups of 309 | # the same type (for instance a group of public functions) to be put as a 310 | # subgroup of that type (e.g. under the Public Functions section). Set it to 311 | # NO to prevent subgrouping. Alternatively, this can be done per class using 312 | # the \nosubgrouping command. 313 | 314 | SUBGROUPING = YES 315 | 316 | # When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and 317 | # unions are shown inside the group in which they are included (e.g. using 318 | # @ingroup) instead of on a separate page (for HTML and Man pages) or 319 | # section (for LaTeX and RTF). 320 | 321 | INLINE_GROUPED_CLASSES = NO 322 | 323 | # When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and 324 | # unions with only public data fields will be shown inline in the documentation 325 | # of the scope in which they are defined (i.e. file, namespace, or group 326 | # documentation), provided this scope is documented. If set to NO (the default), 327 | # structs, classes, and unions are shown on a separate page (for HTML and Man 328 | # pages) or section (for LaTeX and RTF). 329 | 330 | INLINE_SIMPLE_STRUCTS = NO 331 | 332 | # When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum 333 | # is documented as struct, union, or enum with the name of the typedef. So 334 | # typedef struct TypeS {} TypeT, will appear in the documentation as a struct 335 | # with name TypeT. When disabled the typedef will appear as a member of a file, 336 | # namespace, or class. And the struct will be named TypeS. This can typically 337 | # be useful for C code in case the coding convention dictates that all compound 338 | # types are typedef'ed and only the typedef is referenced, never the tag name. 339 | 340 | TYPEDEF_HIDES_STRUCT = NO 341 | 342 | # The SYMBOL_CACHE_SIZE determines the size of the internal cache use to 343 | # determine which symbols to keep in memory and which to flush to disk. 344 | # When the cache is full, less often used symbols will be written to disk. 345 | # For small to medium size projects (<1000 input files) the default value is 346 | # probably good enough. For larger projects a too small cache size can cause 347 | # doxygen to be busy swapping symbols to and from disk most of the time 348 | # causing a significant performance penalty. 349 | # If the system has enough physical memory increasing the cache will improve the 350 | # performance by keeping more symbols in memory. Note that the value works on 351 | # a logarithmic scale so increasing the size by one will roughly double the 352 | # memory usage. The cache size is given by this formula: 353 | # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, 354 | # corresponding to a cache size of 2^16 = 65536 symbols. 355 | 356 | SYMBOL_CACHE_SIZE = 0 357 | 358 | # Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be 359 | # set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given 360 | # their name and scope. Since this can be an expensive process and often the 361 | # same symbol appear multiple times in the code, doxygen keeps a cache of 362 | # pre-resolved symbols. If the cache is too small doxygen will become slower. 363 | # If the cache is too large, memory is wasted. The cache size is given by this 364 | # formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, 365 | # corresponding to a cache size of 2^16 = 65536 symbols. 366 | 367 | LOOKUP_CACHE_SIZE = 0 368 | 369 | #--------------------------------------------------------------------------- 370 | # Build related configuration options 371 | #--------------------------------------------------------------------------- 372 | 373 | # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in 374 | # documentation are documented, even if no documentation was available. 375 | # Private class members and static file members will be hidden unless 376 | # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES 377 | 378 | EXTRACT_ALL = NO 379 | 380 | # If the EXTRACT_PRIVATE tag is set to YES all private members of a class 381 | # will be included in the documentation. 382 | 383 | EXTRACT_PRIVATE = NO 384 | 385 | # If the EXTRACT_PACKAGE tag is set to YES all members with package or internal 386 | # scope will be included in the documentation. 387 | 388 | EXTRACT_PACKAGE = NO 389 | 390 | # If the EXTRACT_STATIC tag is set to YES all static members of a file 391 | # will be included in the documentation. 392 | 393 | EXTRACT_STATIC = NO 394 | 395 | # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) 396 | # defined locally in source files will be included in the documentation. 397 | # If set to NO only classes defined in header files are included. 398 | 399 | EXTRACT_LOCAL_CLASSES = YES 400 | 401 | # This flag is only useful for Objective-C code. When set to YES local 402 | # methods, which are defined in the implementation section but not in 403 | # the interface are included in the documentation. 404 | # If set to NO (the default) only methods in the interface are included. 405 | 406 | EXTRACT_LOCAL_METHODS = NO 407 | 408 | # If this flag is set to YES, the members of anonymous namespaces will be 409 | # extracted and appear in the documentation as a namespace called 410 | # 'anonymous_namespace{file}', where file will be replaced with the base 411 | # name of the file that contains the anonymous namespace. By default 412 | # anonymous namespaces are hidden. 413 | 414 | EXTRACT_ANON_NSPACES = NO 415 | 416 | # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all 417 | # undocumented members of documented classes, files or namespaces. 418 | # If set to NO (the default) these members will be included in the 419 | # various overviews, but no documentation section is generated. 420 | # This option has no effect if EXTRACT_ALL is enabled. 421 | 422 | HIDE_UNDOC_MEMBERS = NO 423 | 424 | # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all 425 | # undocumented classes that are normally visible in the class hierarchy. 426 | # If set to NO (the default) these classes will be included in the various 427 | # overviews. This option has no effect if EXTRACT_ALL is enabled. 428 | 429 | HIDE_UNDOC_CLASSES = NO 430 | 431 | # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all 432 | # friend (class|struct|union) declarations. 433 | # If set to NO (the default) these declarations will be included in the 434 | # documentation. 435 | 436 | HIDE_FRIEND_COMPOUNDS = NO 437 | 438 | # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any 439 | # documentation blocks found inside the body of a function. 440 | # If set to NO (the default) these blocks will be appended to the 441 | # function's detailed documentation block. 442 | 443 | HIDE_IN_BODY_DOCS = NO 444 | 445 | # The INTERNAL_DOCS tag determines if documentation 446 | # that is typed after a \internal command is included. If the tag is set 447 | # to NO (the default) then the documentation will be excluded. 448 | # Set it to YES to include the internal documentation. 449 | 450 | INTERNAL_DOCS = NO 451 | 452 | # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate 453 | # file names in lower-case letters. If set to YES upper-case letters are also 454 | # allowed. This is useful if you have classes or files whose names only differ 455 | # in case and if your file system supports case sensitive file names. Windows 456 | # and Mac users are advised to set this option to NO. 457 | 458 | CASE_SENSE_NAMES = NO 459 | 460 | # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen 461 | # will show members with their full class and namespace scopes in the 462 | # documentation. If set to YES the scope will be hidden. 463 | 464 | HIDE_SCOPE_NAMES = NO 465 | 466 | # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen 467 | # will put a list of the files that are included by a file in the documentation 468 | # of that file. 469 | 470 | SHOW_INCLUDE_FILES = YES 471 | 472 | # If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen 473 | # will list include files with double quotes in the documentation 474 | # rather than with sharp brackets. 475 | 476 | FORCE_LOCAL_INCLUDES = NO 477 | 478 | # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] 479 | # is inserted in the documentation for inline members. 480 | 481 | INLINE_INFO = YES 482 | 483 | # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen 484 | # will sort the (detailed) documentation of file and class members 485 | # alphabetically by member name. If set to NO the members will appear in 486 | # declaration order. 487 | 488 | SORT_MEMBER_DOCS = YES 489 | 490 | # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the 491 | # brief documentation of file, namespace and class members alphabetically 492 | # by member name. If set to NO (the default) the members will appear in 493 | # declaration order. 494 | 495 | SORT_BRIEF_DOCS = NO 496 | 497 | # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen 498 | # will sort the (brief and detailed) documentation of class members so that 499 | # constructors and destructors are listed first. If set to NO (the default) 500 | # the constructors will appear in the respective orders defined by 501 | # SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. 502 | # This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO 503 | # and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. 504 | 505 | SORT_MEMBERS_CTORS_1ST = NO 506 | 507 | # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the 508 | # hierarchy of group names into alphabetical order. If set to NO (the default) 509 | # the group names will appear in their defined order. 510 | 511 | SORT_GROUP_NAMES = NO 512 | 513 | # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be 514 | # sorted by fully-qualified names, including namespaces. If set to 515 | # NO (the default), the class list will be sorted only by class name, 516 | # not including the namespace part. 517 | # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. 518 | # Note: This option applies only to the class list, not to the 519 | # alphabetical list. 520 | 521 | SORT_BY_SCOPE_NAME = NO 522 | 523 | # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to 524 | # do proper type resolution of all parameters of a function it will reject a 525 | # match between the prototype and the implementation of a member function even 526 | # if there is only one candidate or it is obvious which candidate to choose 527 | # by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen 528 | # will still accept a match between prototype and implementation in such cases. 529 | 530 | STRICT_PROTO_MATCHING = NO 531 | 532 | # The GENERATE_TODOLIST tag can be used to enable (YES) or 533 | # disable (NO) the todo list. This list is created by putting \todo 534 | # commands in the documentation. 535 | 536 | GENERATE_TODOLIST = YES 537 | 538 | # The GENERATE_TESTLIST tag can be used to enable (YES) or 539 | # disable (NO) the test list. This list is created by putting \test 540 | # commands in the documentation. 541 | 542 | GENERATE_TESTLIST = YES 543 | 544 | # The GENERATE_BUGLIST tag can be used to enable (YES) or 545 | # disable (NO) the bug list. This list is created by putting \bug 546 | # commands in the documentation. 547 | 548 | GENERATE_BUGLIST = YES 549 | 550 | # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or 551 | # disable (NO) the deprecated list. This list is created by putting 552 | # \deprecated commands in the documentation. 553 | 554 | GENERATE_DEPRECATEDLIST= YES 555 | 556 | # The ENABLED_SECTIONS tag can be used to enable conditional 557 | # documentation sections, marked by \if sectionname ... \endif. 558 | 559 | ENABLED_SECTIONS = 560 | 561 | # The MAX_INITIALIZER_LINES tag determines the maximum number of lines 562 | # the initial value of a variable or macro consists of for it to appear in 563 | # the documentation. If the initializer consists of more lines than specified 564 | # here it will be hidden. Use a value of 0 to hide initializers completely. 565 | # The appearance of the initializer of individual variables and macros in the 566 | # documentation can be controlled using \showinitializer or \hideinitializer 567 | # command in the documentation regardless of this setting. 568 | 569 | MAX_INITIALIZER_LINES = 30 570 | 571 | # Set the SHOW_USED_FILES tag to NO to disable the list of files generated 572 | # at the bottom of the documentation of classes and structs. If set to YES the 573 | # list will mention the files that were used to generate the documentation. 574 | 575 | SHOW_USED_FILES = YES 576 | 577 | # Set the SHOW_FILES tag to NO to disable the generation of the Files page. 578 | # This will remove the Files entry from the Quick Index and from the 579 | # Folder Tree View (if specified). The default is YES. 580 | 581 | SHOW_FILES = YES 582 | 583 | # Set the SHOW_NAMESPACES tag to NO to disable the generation of the 584 | # Namespaces page. This will remove the Namespaces entry from the Quick Index 585 | # and from the Folder Tree View (if specified). The default is YES. 586 | 587 | SHOW_NAMESPACES = YES 588 | 589 | # The FILE_VERSION_FILTER tag can be used to specify a program or script that 590 | # doxygen should invoke to get the current version for each file (typically from 591 | # the version control system). Doxygen will invoke the program by executing (via 592 | # popen()) the command , where is the value of 593 | # the FILE_VERSION_FILTER tag, and is the name of an input file 594 | # provided by doxygen. Whatever the program writes to standard output 595 | # is used as the file version. See the manual for examples. 596 | 597 | FILE_VERSION_FILTER = 598 | 599 | # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed 600 | # by doxygen. The layout file controls the global structure of the generated 601 | # output files in an output format independent way. To create the layout file 602 | # that represents doxygen's defaults, run doxygen with the -l option. 603 | # You can optionally specify a file name after the option, if omitted 604 | # DoxygenLayout.xml will be used as the name of the layout file. 605 | 606 | LAYOUT_FILE = 607 | 608 | # The CITE_BIB_FILES tag can be used to specify one or more bib files 609 | # containing the references data. This must be a list of .bib files. The 610 | # .bib extension is automatically appended if omitted. Using this command 611 | # requires the bibtex tool to be installed. See also 612 | # http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style 613 | # of the bibliography can be controlled using LATEX_BIB_STYLE. To use this 614 | # feature you need bibtex and perl available in the search path. 615 | 616 | CITE_BIB_FILES = 617 | 618 | #--------------------------------------------------------------------------- 619 | # configuration options related to warning and progress messages 620 | #--------------------------------------------------------------------------- 621 | 622 | # The QUIET tag can be used to turn on/off the messages that are generated 623 | # by doxygen. Possible values are YES and NO. If left blank NO is used. 624 | 625 | QUIET = YES 626 | 627 | # The WARNINGS tag can be used to turn on/off the warning messages that are 628 | # generated by doxygen. Possible values are YES and NO. If left blank 629 | # NO is used. 630 | 631 | WARNINGS = YES 632 | 633 | # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings 634 | # for undocumented members. If EXTRACT_ALL is set to YES then this flag will 635 | # automatically be disabled. 636 | 637 | WARN_IF_UNDOCUMENTED = YES 638 | 639 | # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for 640 | # potential errors in the documentation, such as not documenting some 641 | # parameters in a documented function, or documenting parameters that 642 | # don't exist or using markup commands wrongly. 643 | 644 | WARN_IF_DOC_ERROR = YES 645 | 646 | # The WARN_NO_PARAMDOC option can be enabled to get warnings for 647 | # functions that are documented, but have no documentation for their parameters 648 | # or return value. If set to NO (the default) doxygen will only warn about 649 | # wrong or incomplete parameter documentation, but not about the absence of 650 | # documentation. 651 | 652 | WARN_NO_PARAMDOC = NO 653 | 654 | # The WARN_FORMAT tag determines the format of the warning messages that 655 | # doxygen can produce. The string should contain the $file, $line, and $text 656 | # tags, which will be replaced by the file and line number from which the 657 | # warning originated and the warning text. Optionally the format may contain 658 | # $version, which will be replaced by the version of the file (if it could 659 | # be obtained via FILE_VERSION_FILTER) 660 | 661 | WARN_FORMAT = "$file:$line: $text" 662 | 663 | # The WARN_LOGFILE tag can be used to specify a file to which warning 664 | # and error messages should be written. If left blank the output is written 665 | # to stderr. 666 | 667 | WARN_LOGFILE = 668 | 669 | #--------------------------------------------------------------------------- 670 | # configuration options related to the input files 671 | #--------------------------------------------------------------------------- 672 | 673 | # The INPUT tag can be used to specify the files and/or directories that contain 674 | # documented source files. You may enter file names like "myfile.cpp" or 675 | # directories like "/usr/src/myproject". Separate the files or directories 676 | # with spaces. 677 | 678 | INPUT = /Users/idz/Documents/src/IDZAQAudioPlayer/IDZAQAudioPlayer 679 | 680 | # This tag can be used to specify the character encoding of the source files 681 | # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is 682 | # also the default input encoding. Doxygen uses libiconv (or the iconv built 683 | # into libc) for the transcoding. See http://www.gnu.org/software/libiconv for 684 | # the list of possible encodings. 685 | 686 | INPUT_ENCODING = UTF-8 687 | 688 | # If the value of the INPUT tag contains directories, you can use the 689 | # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 690 | # and *.h) to filter out the source-files in the directories. If left 691 | # blank the following patterns are tested: 692 | # *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh 693 | # *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py 694 | # *.f90 *.f *.for *.vhd *.vhdl 695 | 696 | FILE_PATTERNS = *.c \ 697 | *.cc \ 698 | *.cxx \ 699 | *.cpp \ 700 | *.c++ \ 701 | *.d \ 702 | *.java \ 703 | *.ii \ 704 | *.ixx \ 705 | *.ipp \ 706 | *.i++ \ 707 | *.inl \ 708 | *.h \ 709 | *.hh \ 710 | *.hxx \ 711 | *.hpp \ 712 | *.h++ \ 713 | *.idl \ 714 | *.odl \ 715 | *.cs \ 716 | *.php \ 717 | *.php3 \ 718 | *.inc \ 719 | *.m \ 720 | *.markdown \ 721 | *.md \ 722 | *.mm \ 723 | *.dox \ 724 | *.py \ 725 | *.f90 \ 726 | *.f \ 727 | *.for \ 728 | *.vhd \ 729 | *.vhdl 730 | 731 | # The RECURSIVE tag can be used to turn specify whether or not subdirectories 732 | # should be searched for input files as well. Possible values are YES and NO. 733 | # If left blank NO is used. 734 | 735 | RECURSIVE = YES 736 | 737 | # The EXCLUDE tag can be used to specify files and/or directories that should be 738 | # excluded from the INPUT source files. This way you can easily exclude a 739 | # subdirectory from a directory tree whose root is specified with the INPUT tag. 740 | # Note that relative paths are relative to the directory from which doxygen is 741 | # run. 742 | 743 | EXCLUDE = 744 | 745 | # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or 746 | # directories that are symbolic links (a Unix file system feature) are excluded 747 | # from the input. 748 | 749 | EXCLUDE_SYMLINKS = NO 750 | 751 | # If the value of the INPUT tag contains directories, you can use the 752 | # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude 753 | # certain files from those directories. Note that the wildcards are matched 754 | # against the file with absolute path, so to exclude all test directories 755 | # for example use the pattern */test/* 756 | 757 | EXCLUDE_PATTERNS = 758 | 759 | # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names 760 | # (namespaces, classes, functions, etc.) that should be excluded from the 761 | # output. The symbol name can be a fully qualified name, a word, or if the 762 | # wildcard * is used, a substring. Examples: ANamespace, AClass, 763 | # AClass::ANamespace, ANamespace::*Test 764 | 765 | EXCLUDE_SYMBOLS = 766 | 767 | # The EXAMPLE_PATH tag can be used to specify one or more files or 768 | # directories that contain example code fragments that are included (see 769 | # the \include command). 770 | 771 | EXAMPLE_PATH = 772 | 773 | # If the value of the EXAMPLE_PATH tag contains directories, you can use the 774 | # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 775 | # and *.h) to filter out the source-files in the directories. If left 776 | # blank all files are included. 777 | 778 | EXAMPLE_PATTERNS = * 779 | 780 | # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be 781 | # searched for input files to be used with the \include or \dontinclude 782 | # commands irrespective of the value of the RECURSIVE tag. 783 | # Possible values are YES and NO. If left blank NO is used. 784 | 785 | EXAMPLE_RECURSIVE = NO 786 | 787 | # The IMAGE_PATH tag can be used to specify one or more files or 788 | # directories that contain image that are included in the documentation (see 789 | # the \image command). 790 | 791 | IMAGE_PATH = 792 | 793 | # The INPUT_FILTER tag can be used to specify a program that doxygen should 794 | # invoke to filter for each input file. Doxygen will invoke the filter program 795 | # by executing (via popen()) the command , where 796 | # is the value of the INPUT_FILTER tag, and is the name of an 797 | # input file. Doxygen will then use the output that the filter program writes 798 | # to standard output. If FILTER_PATTERNS is specified, this tag will be 799 | # ignored. 800 | 801 | INPUT_FILTER = 802 | 803 | # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern 804 | # basis. Doxygen will compare the file name with each pattern and apply the 805 | # filter if there is a match. The filters are a list of the form: 806 | # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further 807 | # info on how filters are used. If FILTER_PATTERNS is empty or if 808 | # non of the patterns match the file name, INPUT_FILTER is applied. 809 | 810 | FILTER_PATTERNS = 811 | 812 | # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using 813 | # INPUT_FILTER) will be used to filter the input files when producing source 814 | # files to browse (i.e. when SOURCE_BROWSER is set to YES). 815 | 816 | FILTER_SOURCE_FILES = NO 817 | 818 | # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file 819 | # pattern. A pattern will override the setting for FILTER_PATTERN (if any) 820 | # and it is also possible to disable source filtering for a specific pattern 821 | # using *.ext= (so without naming a filter). This option only has effect when 822 | # FILTER_SOURCE_FILES is enabled. 823 | 824 | FILTER_SOURCE_PATTERNS = 825 | 826 | #--------------------------------------------------------------------------- 827 | # configuration options related to source browsing 828 | #--------------------------------------------------------------------------- 829 | 830 | # If the SOURCE_BROWSER tag is set to YES then a list of source files will 831 | # be generated. Documented entities will be cross-referenced with these sources. 832 | # Note: To get rid of all source code in the generated output, make sure also 833 | # VERBATIM_HEADERS is set to NO. 834 | 835 | SOURCE_BROWSER = YES 836 | 837 | # Setting the INLINE_SOURCES tag to YES will include the body 838 | # of functions and classes directly in the documentation. 839 | 840 | INLINE_SOURCES = NO 841 | 842 | # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct 843 | # doxygen to hide any special comment blocks from generated source code 844 | # fragments. Normal C, C++ and Fortran comments will always remain visible. 845 | 846 | STRIP_CODE_COMMENTS = YES 847 | 848 | # If the REFERENCED_BY_RELATION tag is set to YES 849 | # then for each documented function all documented 850 | # functions referencing it will be listed. 851 | 852 | REFERENCED_BY_RELATION = NO 853 | 854 | # If the REFERENCES_RELATION tag is set to YES 855 | # then for each documented function all documented entities 856 | # called/used by that function will be listed. 857 | 858 | REFERENCES_RELATION = NO 859 | 860 | # If the REFERENCES_LINK_SOURCE tag is set to YES (the default) 861 | # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from 862 | # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will 863 | # link to the source code. Otherwise they will link to the documentation. 864 | 865 | REFERENCES_LINK_SOURCE = YES 866 | 867 | # If the USE_HTAGS tag is set to YES then the references to source code 868 | # will point to the HTML generated by the htags(1) tool instead of doxygen 869 | # built-in source browser. The htags tool is part of GNU's global source 870 | # tagging system (see http://www.gnu.org/software/global/global.html). You 871 | # will need version 4.8.6 or higher. 872 | 873 | USE_HTAGS = NO 874 | 875 | # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen 876 | # will generate a verbatim copy of the header file for each class for 877 | # which an include is specified. Set to NO to disable this. 878 | 879 | VERBATIM_HEADERS = YES 880 | 881 | #--------------------------------------------------------------------------- 882 | # configuration options related to the alphabetical class index 883 | #--------------------------------------------------------------------------- 884 | 885 | # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index 886 | # of all compounds will be generated. Enable this if the project 887 | # contains a lot of classes, structs, unions or interfaces. 888 | 889 | ALPHABETICAL_INDEX = YES 890 | 891 | # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then 892 | # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns 893 | # in which this list will be split (can be a number in the range [1..20]) 894 | 895 | COLS_IN_ALPHA_INDEX = 5 896 | 897 | # In case all classes in a project start with a common prefix, all 898 | # classes will be put under the same header in the alphabetical index. 899 | # The IGNORE_PREFIX tag can be used to specify one or more prefixes that 900 | # should be ignored while generating the index headers. 901 | 902 | IGNORE_PREFIX = 903 | 904 | #--------------------------------------------------------------------------- 905 | # configuration options related to the HTML output 906 | #--------------------------------------------------------------------------- 907 | 908 | # If the GENERATE_HTML tag is set to YES (the default) Doxygen will 909 | # generate HTML output. 910 | 911 | GENERATE_HTML = YES 912 | 913 | # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. 914 | # If a relative path is entered the value of OUTPUT_DIRECTORY will be 915 | # put in front of it. If left blank `html' will be used as the default path. 916 | 917 | HTML_OUTPUT = html 918 | 919 | # The HTML_FILE_EXTENSION tag can be used to specify the file extension for 920 | # each generated HTML page (for example: .htm,.php,.asp). If it is left blank 921 | # doxygen will generate files with .html extension. 922 | 923 | HTML_FILE_EXTENSION = .html 924 | 925 | # The HTML_HEADER tag can be used to specify a personal HTML header for 926 | # each generated HTML page. If it is left blank doxygen will generate a 927 | # standard header. Note that when using a custom header you are responsible 928 | # for the proper inclusion of any scripts and style sheets that doxygen 929 | # needs, which is dependent on the configuration options used. 930 | # It is advised to generate a default header using "doxygen -w html 931 | # header.html footer.html stylesheet.css YourConfigFile" and then modify 932 | # that header. Note that the header is subject to change so you typically 933 | # have to redo this when upgrading to a newer version of doxygen or when 934 | # changing the value of configuration settings such as GENERATE_TREEVIEW! 935 | 936 | HTML_HEADER = 937 | 938 | # The HTML_FOOTER tag can be used to specify a personal HTML footer for 939 | # each generated HTML page. If it is left blank doxygen will generate a 940 | # standard footer. 941 | 942 | HTML_FOOTER = 943 | 944 | # The HTML_STYLESHEET tag can be used to specify a user-defined cascading 945 | # style sheet that is used by each HTML page. It can be used to 946 | # fine-tune the look of the HTML output. If left blank doxygen will 947 | # generate a default style sheet. Note that it is recommended to use 948 | # HTML_EXTRA_STYLESHEET instead of this one, as it is more robust and this 949 | # tag will in the future become obsolete. 950 | 951 | HTML_STYLESHEET = 952 | 953 | # The HTML_EXTRA_STYLESHEET tag can be used to specify an additional 954 | # user-defined cascading style sheet that is included after the standard 955 | # style sheets created by doxygen. Using this option one can overrule 956 | # certain style aspects. This is preferred over using HTML_STYLESHEET 957 | # since it does not replace the standard style sheet and is therefor more 958 | # robust against future updates. Doxygen will copy the style sheet file to 959 | # the output directory. 960 | 961 | HTML_EXTRA_STYLESHEET = 962 | 963 | # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or 964 | # other source files which should be copied to the HTML output directory. Note 965 | # that these files will be copied to the base HTML output directory. Use the 966 | # $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these 967 | # files. In the HTML_STYLESHEET file, use the file name only. Also note that 968 | # the files will be copied as-is; there are no commands or markers available. 969 | 970 | HTML_EXTRA_FILES = 971 | 972 | # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. 973 | # Doxygen will adjust the colors in the style sheet and background images 974 | # according to this color. Hue is specified as an angle on a colorwheel, 975 | # see http://en.wikipedia.org/wiki/Hue for more information. 976 | # For instance the value 0 represents red, 60 is yellow, 120 is green, 977 | # 180 is cyan, 240 is blue, 300 purple, and 360 is red again. 978 | # The allowed range is 0 to 359. 979 | 980 | HTML_COLORSTYLE_HUE = 220 981 | 982 | # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of 983 | # the colors in the HTML output. For a value of 0 the output will use 984 | # grayscales only. A value of 255 will produce the most vivid colors. 985 | 986 | HTML_COLORSTYLE_SAT = 100 987 | 988 | # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to 989 | # the luminance component of the colors in the HTML output. Values below 990 | # 100 gradually make the output lighter, whereas values above 100 make 991 | # the output darker. The value divided by 100 is the actual gamma applied, 992 | # so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, 993 | # and 100 does not change the gamma. 994 | 995 | HTML_COLORSTYLE_GAMMA = 80 996 | 997 | # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML 998 | # page will contain the date and time when the page was generated. Setting 999 | # this to NO can help when comparing the output of multiple runs. 1000 | 1001 | HTML_TIMESTAMP = YES 1002 | 1003 | # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML 1004 | # documentation will contain sections that can be hidden and shown after the 1005 | # page has loaded. 1006 | 1007 | HTML_DYNAMIC_SECTIONS = NO 1008 | 1009 | # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of 1010 | # entries shown in the various tree structured indices initially; the user 1011 | # can expand and collapse entries dynamically later on. Doxygen will expand 1012 | # the tree to such a level that at most the specified number of entries are 1013 | # visible (unless a fully collapsed tree already exceeds this amount). 1014 | # So setting the number of entries 1 will produce a full collapsed tree by 1015 | # default. 0 is a special value representing an infinite number of entries 1016 | # and will result in a full expanded tree by default. 1017 | 1018 | HTML_INDEX_NUM_ENTRIES = 100 1019 | 1020 | # If the GENERATE_DOCSET tag is set to YES, additional index files 1021 | # will be generated that can be used as input for Apple's Xcode 3 1022 | # integrated development environment, introduced with OSX 10.5 (Leopard). 1023 | # To create a documentation set, doxygen will generate a Makefile in the 1024 | # HTML output directory. Running make will produce the docset in that 1025 | # directory and running "make install" will install the docset in 1026 | # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find 1027 | # it at startup. 1028 | # See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html 1029 | # for more information. 1030 | 1031 | GENERATE_DOCSET = NO 1032 | 1033 | # When GENERATE_DOCSET tag is set to YES, this tag determines the name of the 1034 | # feed. A documentation feed provides an umbrella under which multiple 1035 | # documentation sets from a single provider (such as a company or product suite) 1036 | # can be grouped. 1037 | 1038 | DOCSET_FEEDNAME = "Doxygen generated docs" 1039 | 1040 | # When GENERATE_DOCSET tag is set to YES, this tag specifies a string that 1041 | # should uniquely identify the documentation set bundle. This should be a 1042 | # reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen 1043 | # will append .docset to the name. 1044 | 1045 | DOCSET_BUNDLE_ID = org.doxygen.Project 1046 | 1047 | # When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely 1048 | # identify the documentation publisher. This should be a reverse domain-name 1049 | # style string, e.g. com.mycompany.MyDocSet.documentation. 1050 | 1051 | DOCSET_PUBLISHER_ID = org.doxygen.Publisher 1052 | 1053 | # The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. 1054 | 1055 | DOCSET_PUBLISHER_NAME = Publisher 1056 | 1057 | # If the GENERATE_HTMLHELP tag is set to YES, additional index files 1058 | # will be generated that can be used as input for tools like the 1059 | # Microsoft HTML help workshop to generate a compiled HTML help file (.chm) 1060 | # of the generated HTML documentation. 1061 | 1062 | GENERATE_HTMLHELP = NO 1063 | 1064 | # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can 1065 | # be used to specify the file name of the resulting .chm file. You 1066 | # can add a path in front of the file if the result should not be 1067 | # written to the html output directory. 1068 | 1069 | CHM_FILE = 1070 | 1071 | # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can 1072 | # be used to specify the location (absolute path including file name) of 1073 | # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run 1074 | # the HTML help compiler on the generated index.hhp. 1075 | 1076 | HHC_LOCATION = 1077 | 1078 | # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag 1079 | # controls if a separate .chi index file is generated (YES) or that 1080 | # it should be included in the master .chm file (NO). 1081 | 1082 | GENERATE_CHI = NO 1083 | 1084 | # If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING 1085 | # is used to encode HtmlHelp index (hhk), content (hhc) and project file 1086 | # content. 1087 | 1088 | CHM_INDEX_ENCODING = 1089 | 1090 | # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag 1091 | # controls whether a binary table of contents is generated (YES) or a 1092 | # normal table of contents (NO) in the .chm file. 1093 | 1094 | BINARY_TOC = NO 1095 | 1096 | # The TOC_EXPAND flag can be set to YES to add extra items for group members 1097 | # to the contents of the HTML help documentation and to the tree view. 1098 | 1099 | TOC_EXPAND = NO 1100 | 1101 | # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and 1102 | # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated 1103 | # that can be used as input for Qt's qhelpgenerator to generate a 1104 | # Qt Compressed Help (.qch) of the generated HTML documentation. 1105 | 1106 | GENERATE_QHP = NO 1107 | 1108 | # If the QHG_LOCATION tag is specified, the QCH_FILE tag can 1109 | # be used to specify the file name of the resulting .qch file. 1110 | # The path specified is relative to the HTML output folder. 1111 | 1112 | QCH_FILE = 1113 | 1114 | # The QHP_NAMESPACE tag specifies the namespace to use when generating 1115 | # Qt Help Project output. For more information please see 1116 | # http://doc.trolltech.com/qthelpproject.html#namespace 1117 | 1118 | QHP_NAMESPACE = org.doxygen.Project 1119 | 1120 | # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating 1121 | # Qt Help Project output. For more information please see 1122 | # http://doc.trolltech.com/qthelpproject.html#virtual-folders 1123 | 1124 | QHP_VIRTUAL_FOLDER = doc 1125 | 1126 | # If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to 1127 | # add. For more information please see 1128 | # http://doc.trolltech.com/qthelpproject.html#custom-filters 1129 | 1130 | QHP_CUST_FILTER_NAME = 1131 | 1132 | # The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the 1133 | # custom filter to add. For more information please see 1134 | # 1135 | # Qt Help Project / Custom Filters. 1136 | 1137 | QHP_CUST_FILTER_ATTRS = 1138 | 1139 | # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this 1140 | # project's 1141 | # filter section matches. 1142 | # 1143 | # Qt Help Project / Filter Attributes. 1144 | 1145 | QHP_SECT_FILTER_ATTRS = 1146 | 1147 | # If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can 1148 | # be used to specify the location of Qt's qhelpgenerator. 1149 | # If non-empty doxygen will try to run qhelpgenerator on the generated 1150 | # .qhp file. 1151 | 1152 | QHG_LOCATION = 1153 | 1154 | # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files 1155 | # will be generated, which together with the HTML files, form an Eclipse help 1156 | # plugin. To install this plugin and make it available under the help contents 1157 | # menu in Eclipse, the contents of the directory containing the HTML and XML 1158 | # files needs to be copied into the plugins directory of eclipse. The name of 1159 | # the directory within the plugins directory should be the same as 1160 | # the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before 1161 | # the help appears. 1162 | 1163 | GENERATE_ECLIPSEHELP = NO 1164 | 1165 | # A unique identifier for the eclipse help plugin. When installing the plugin 1166 | # the directory name containing the HTML and XML files should also have 1167 | # this name. 1168 | 1169 | ECLIPSE_DOC_ID = org.doxygen.Project 1170 | 1171 | # The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) 1172 | # at top of each HTML page. The value NO (the default) enables the index and 1173 | # the value YES disables it. Since the tabs have the same information as the 1174 | # navigation tree you can set this option to NO if you already set 1175 | # GENERATE_TREEVIEW to YES. 1176 | 1177 | DISABLE_INDEX = NO 1178 | 1179 | # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index 1180 | # structure should be generated to display hierarchical information. 1181 | # If the tag value is set to YES, a side panel will be generated 1182 | # containing a tree-like index structure (just like the one that 1183 | # is generated for HTML Help). For this to work a browser that supports 1184 | # JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). 1185 | # Windows users are probably better off using the HTML help feature. 1186 | # Since the tree basically has the same information as the tab index you 1187 | # could consider to set DISABLE_INDEX to NO when enabling this option. 1188 | 1189 | GENERATE_TREEVIEW = YES 1190 | 1191 | # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values 1192 | # (range [0,1..20]) that doxygen will group on one line in the generated HTML 1193 | # documentation. Note that a value of 0 will completely suppress the enum 1194 | # values from appearing in the overview section. 1195 | 1196 | ENUM_VALUES_PER_LINE = 4 1197 | 1198 | # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be 1199 | # used to set the initial width (in pixels) of the frame in which the tree 1200 | # is shown. 1201 | 1202 | TREEVIEW_WIDTH = 250 1203 | 1204 | # When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open 1205 | # links to external symbols imported via tag files in a separate window. 1206 | 1207 | EXT_LINKS_IN_WINDOW = NO 1208 | 1209 | # Use this tag to change the font size of Latex formulas included 1210 | # as images in the HTML documentation. The default is 10. Note that 1211 | # when you change the font size after a successful doxygen run you need 1212 | # to manually remove any form_*.png images from the HTML output directory 1213 | # to force them to be regenerated. 1214 | 1215 | FORMULA_FONTSIZE = 10 1216 | 1217 | # Use the FORMULA_TRANPARENT tag to determine whether or not the images 1218 | # generated for formulas are transparent PNGs. Transparent PNGs are 1219 | # not supported properly for IE 6.0, but are supported on all modern browsers. 1220 | # Note that when changing this option you need to delete any form_*.png files 1221 | # in the HTML output before the changes have effect. 1222 | 1223 | FORMULA_TRANSPARENT = YES 1224 | 1225 | # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax 1226 | # (see http://www.mathjax.org) which uses client side Javascript for the 1227 | # rendering instead of using prerendered bitmaps. Use this if you do not 1228 | # have LaTeX installed or if you want to formulas look prettier in the HTML 1229 | # output. When enabled you may also need to install MathJax separately and 1230 | # configure the path to it using the MATHJAX_RELPATH option. 1231 | 1232 | USE_MATHJAX = NO 1233 | 1234 | # When MathJax is enabled you need to specify the location relative to the 1235 | # HTML output directory using the MATHJAX_RELPATH option. The destination 1236 | # directory should contain the MathJax.js script. For instance, if the mathjax 1237 | # directory is located at the same level as the HTML output directory, then 1238 | # MATHJAX_RELPATH should be ../mathjax. The default value points to 1239 | # the MathJax Content Delivery Network so you can quickly see the result without 1240 | # installing MathJax. However, it is strongly recommended to install a local 1241 | # copy of MathJax from http://www.mathjax.org before deployment. 1242 | 1243 | MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest 1244 | 1245 | # The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension 1246 | # names that should be enabled during MathJax rendering. 1247 | 1248 | MATHJAX_EXTENSIONS = 1249 | 1250 | # When the SEARCHENGINE tag is enabled doxygen will generate a search box 1251 | # for the HTML output. The underlying search engine uses javascript 1252 | # and DHTML and should work on any modern browser. Note that when using 1253 | # HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets 1254 | # (GENERATE_DOCSET) there is already a search function so this one should 1255 | # typically be disabled. For large projects the javascript based search engine 1256 | # can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. 1257 | 1258 | SEARCHENGINE = YES 1259 | 1260 | # When the SERVER_BASED_SEARCH tag is enabled the search engine will be 1261 | # implemented using a PHP enabled web server instead of at the web client 1262 | # using Javascript. Doxygen will generate the search PHP script and index 1263 | # file to put on the web server. The advantage of the server 1264 | # based approach is that it scales better to large projects and allows 1265 | # full text search. The disadvantages are that it is more difficult to setup 1266 | # and does not have live searching capabilities. 1267 | 1268 | SERVER_BASED_SEARCH = NO 1269 | 1270 | #--------------------------------------------------------------------------- 1271 | # configuration options related to the LaTeX output 1272 | #--------------------------------------------------------------------------- 1273 | 1274 | # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will 1275 | # generate Latex output. 1276 | 1277 | GENERATE_LATEX = NO 1278 | 1279 | # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. 1280 | # If a relative path is entered the value of OUTPUT_DIRECTORY will be 1281 | # put in front of it. If left blank `latex' will be used as the default path. 1282 | 1283 | LATEX_OUTPUT = latex 1284 | 1285 | # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be 1286 | # invoked. If left blank `latex' will be used as the default command name. 1287 | # Note that when enabling USE_PDFLATEX this option is only used for 1288 | # generating bitmaps for formulas in the HTML output, but not in the 1289 | # Makefile that is written to the output directory. 1290 | 1291 | LATEX_CMD_NAME = latex 1292 | 1293 | # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to 1294 | # generate index for LaTeX. If left blank `makeindex' will be used as the 1295 | # default command name. 1296 | 1297 | MAKEINDEX_CMD_NAME = makeindex 1298 | 1299 | # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact 1300 | # LaTeX documents. This may be useful for small projects and may help to 1301 | # save some trees in general. 1302 | 1303 | COMPACT_LATEX = NO 1304 | 1305 | # The PAPER_TYPE tag can be used to set the paper type that is used 1306 | # by the printer. Possible values are: a4, letter, legal and 1307 | # executive. If left blank a4wide will be used. 1308 | 1309 | PAPER_TYPE = a4 1310 | 1311 | # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX 1312 | # packages that should be included in the LaTeX output. 1313 | 1314 | EXTRA_PACKAGES = 1315 | 1316 | # The LATEX_HEADER tag can be used to specify a personal LaTeX header for 1317 | # the generated latex document. The header should contain everything until 1318 | # the first chapter. If it is left blank doxygen will generate a 1319 | # standard header. Notice: only use this tag if you know what you are doing! 1320 | 1321 | LATEX_HEADER = 1322 | 1323 | # The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for 1324 | # the generated latex document. The footer should contain everything after 1325 | # the last chapter. If it is left blank doxygen will generate a 1326 | # standard footer. Notice: only use this tag if you know what you are doing! 1327 | 1328 | LATEX_FOOTER = 1329 | 1330 | # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated 1331 | # is prepared for conversion to pdf (using ps2pdf). The pdf file will 1332 | # contain links (just like the HTML output) instead of page references 1333 | # This makes the output suitable for online browsing using a pdf viewer. 1334 | 1335 | PDF_HYPERLINKS = YES 1336 | 1337 | # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of 1338 | # plain latex in the generated Makefile. Set this option to YES to get a 1339 | # higher quality PDF documentation. 1340 | 1341 | USE_PDFLATEX = YES 1342 | 1343 | # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. 1344 | # command to the generated LaTeX files. This will instruct LaTeX to keep 1345 | # running if errors occur, instead of asking the user for help. 1346 | # This option is also used when generating formulas in HTML. 1347 | 1348 | LATEX_BATCHMODE = NO 1349 | 1350 | # If LATEX_HIDE_INDICES is set to YES then doxygen will not 1351 | # include the index chapters (such as File Index, Compound Index, etc.) 1352 | # in the output. 1353 | 1354 | LATEX_HIDE_INDICES = NO 1355 | 1356 | # If LATEX_SOURCE_CODE is set to YES then doxygen will include 1357 | # source code with syntax highlighting in the LaTeX output. 1358 | # Note that which sources are shown also depends on other settings 1359 | # such as SOURCE_BROWSER. 1360 | 1361 | LATEX_SOURCE_CODE = NO 1362 | 1363 | # The LATEX_BIB_STYLE tag can be used to specify the style to use for the 1364 | # bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See 1365 | # http://en.wikipedia.org/wiki/BibTeX for more info. 1366 | 1367 | LATEX_BIB_STYLE = plain 1368 | 1369 | #--------------------------------------------------------------------------- 1370 | # configuration options related to the RTF output 1371 | #--------------------------------------------------------------------------- 1372 | 1373 | # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output 1374 | # The RTF output is optimized for Word 97 and may not look very pretty with 1375 | # other RTF readers or editors. 1376 | 1377 | GENERATE_RTF = NO 1378 | 1379 | # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. 1380 | # If a relative path is entered the value of OUTPUT_DIRECTORY will be 1381 | # put in front of it. If left blank `rtf' will be used as the default path. 1382 | 1383 | RTF_OUTPUT = rtf 1384 | 1385 | # If the COMPACT_RTF tag is set to YES Doxygen generates more compact 1386 | # RTF documents. This may be useful for small projects and may help to 1387 | # save some trees in general. 1388 | 1389 | COMPACT_RTF = NO 1390 | 1391 | # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated 1392 | # will contain hyperlink fields. The RTF file will 1393 | # contain links (just like the HTML output) instead of page references. 1394 | # This makes the output suitable for online browsing using WORD or other 1395 | # programs which support those fields. 1396 | # Note: wordpad (write) and others do not support links. 1397 | 1398 | RTF_HYPERLINKS = NO 1399 | 1400 | # Load style sheet definitions from file. Syntax is similar to doxygen's 1401 | # config file, i.e. a series of assignments. You only have to provide 1402 | # replacements, missing definitions are set to their default value. 1403 | 1404 | RTF_STYLESHEET_FILE = 1405 | 1406 | # Set optional variables used in the generation of an rtf document. 1407 | # Syntax is similar to doxygen's config file. 1408 | 1409 | RTF_EXTENSIONS_FILE = 1410 | 1411 | #--------------------------------------------------------------------------- 1412 | # configuration options related to the man page output 1413 | #--------------------------------------------------------------------------- 1414 | 1415 | # If the GENERATE_MAN tag is set to YES (the default) Doxygen will 1416 | # generate man pages 1417 | 1418 | GENERATE_MAN = NO 1419 | 1420 | # The MAN_OUTPUT tag is used to specify where the man pages will be put. 1421 | # If a relative path is entered the value of OUTPUT_DIRECTORY will be 1422 | # put in front of it. If left blank `man' will be used as the default path. 1423 | 1424 | MAN_OUTPUT = man 1425 | 1426 | # The MAN_EXTENSION tag determines the extension that is added to 1427 | # the generated man pages (default is the subroutine's section .3) 1428 | 1429 | MAN_EXTENSION = .3 1430 | 1431 | # If the MAN_LINKS tag is set to YES and Doxygen generates man output, 1432 | # then it will generate one additional man file for each entity 1433 | # documented in the real man page(s). These additional files 1434 | # only source the real man page, but without them the man command 1435 | # would be unable to find the correct page. The default is NO. 1436 | 1437 | MAN_LINKS = NO 1438 | 1439 | #--------------------------------------------------------------------------- 1440 | # configuration options related to the XML output 1441 | #--------------------------------------------------------------------------- 1442 | 1443 | # If the GENERATE_XML tag is set to YES Doxygen will 1444 | # generate an XML file that captures the structure of 1445 | # the code including all documentation. 1446 | 1447 | GENERATE_XML = NO 1448 | 1449 | # The XML_OUTPUT tag is used to specify where the XML pages will be put. 1450 | # If a relative path is entered the value of OUTPUT_DIRECTORY will be 1451 | # put in front of it. If left blank `xml' will be used as the default path. 1452 | 1453 | XML_OUTPUT = xml 1454 | 1455 | # The XML_SCHEMA tag can be used to specify an XML schema, 1456 | # which can be used by a validating XML parser to check the 1457 | # syntax of the XML files. 1458 | 1459 | XML_SCHEMA = 1460 | 1461 | # The XML_DTD tag can be used to specify an XML DTD, 1462 | # which can be used by a validating XML parser to check the 1463 | # syntax of the XML files. 1464 | 1465 | XML_DTD = 1466 | 1467 | # If the XML_PROGRAMLISTING tag is set to YES Doxygen will 1468 | # dump the program listings (including syntax highlighting 1469 | # and cross-referencing information) to the XML output. Note that 1470 | # enabling this will significantly increase the size of the XML output. 1471 | 1472 | XML_PROGRAMLISTING = YES 1473 | 1474 | #--------------------------------------------------------------------------- 1475 | # configuration options for the AutoGen Definitions output 1476 | #--------------------------------------------------------------------------- 1477 | 1478 | # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will 1479 | # generate an AutoGen Definitions (see autogen.sf.net) file 1480 | # that captures the structure of the code including all 1481 | # documentation. Note that this feature is still experimental 1482 | # and incomplete at the moment. 1483 | 1484 | GENERATE_AUTOGEN_DEF = NO 1485 | 1486 | #--------------------------------------------------------------------------- 1487 | # configuration options related to the Perl module output 1488 | #--------------------------------------------------------------------------- 1489 | 1490 | # If the GENERATE_PERLMOD tag is set to YES Doxygen will 1491 | # generate a Perl module file that captures the structure of 1492 | # the code including all documentation. Note that this 1493 | # feature is still experimental and incomplete at the 1494 | # moment. 1495 | 1496 | GENERATE_PERLMOD = NO 1497 | 1498 | # If the PERLMOD_LATEX tag is set to YES Doxygen will generate 1499 | # the necessary Makefile rules, Perl scripts and LaTeX code to be able 1500 | # to generate PDF and DVI output from the Perl module output. 1501 | 1502 | PERLMOD_LATEX = NO 1503 | 1504 | # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be 1505 | # nicely formatted so it can be parsed by a human reader. This is useful 1506 | # if you want to understand what is going on. On the other hand, if this 1507 | # tag is set to NO the size of the Perl module output will be much smaller 1508 | # and Perl will parse it just the same. 1509 | 1510 | PERLMOD_PRETTY = YES 1511 | 1512 | # The names of the make variables in the generated doxyrules.make file 1513 | # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. 1514 | # This is useful so different doxyrules.make files included by the same 1515 | # Makefile don't overwrite each other's variables. 1516 | 1517 | PERLMOD_MAKEVAR_PREFIX = 1518 | 1519 | #--------------------------------------------------------------------------- 1520 | # Configuration options related to the preprocessor 1521 | #--------------------------------------------------------------------------- 1522 | 1523 | # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will 1524 | # evaluate all C-preprocessor directives found in the sources and include 1525 | # files. 1526 | 1527 | ENABLE_PREPROCESSING = YES 1528 | 1529 | # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro 1530 | # names in the source code. If set to NO (the default) only conditional 1531 | # compilation will be performed. Macro expansion can be done in a controlled 1532 | # way by setting EXPAND_ONLY_PREDEF to YES. 1533 | 1534 | MACRO_EXPANSION = NO 1535 | 1536 | # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES 1537 | # then the macro expansion is limited to the macros specified with the 1538 | # PREDEFINED and EXPAND_AS_DEFINED tags. 1539 | 1540 | EXPAND_ONLY_PREDEF = NO 1541 | 1542 | # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files 1543 | # pointed to by INCLUDE_PATH will be searched when a #include is found. 1544 | 1545 | SEARCH_INCLUDES = YES 1546 | 1547 | # The INCLUDE_PATH tag can be used to specify one or more directories that 1548 | # contain include files that are not input files but should be processed by 1549 | # the preprocessor. 1550 | 1551 | INCLUDE_PATH = 1552 | 1553 | # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard 1554 | # patterns (like *.h and *.hpp) to filter out the header-files in the 1555 | # directories. If left blank, the patterns specified with FILE_PATTERNS will 1556 | # be used. 1557 | 1558 | INCLUDE_FILE_PATTERNS = 1559 | 1560 | # The PREDEFINED tag can be used to specify one or more macro names that 1561 | # are defined before the preprocessor is started (similar to the -D option of 1562 | # gcc). The argument of the tag is a list of macros of the form: name 1563 | # or name=definition (no spaces). If the definition and the = are 1564 | # omitted =1 is assumed. To prevent a macro definition from being 1565 | # undefined via #undef or recursively expanded use the := operator 1566 | # instead of the = operator. 1567 | 1568 | PREDEFINED = 1569 | 1570 | # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then 1571 | # this tag can be used to specify a list of macro names that should be expanded. 1572 | # The macro definition that is found in the sources will be used. 1573 | # Use the PREDEFINED tag if you want to use a different macro definition that 1574 | # overrules the definition found in the source code. 1575 | 1576 | EXPAND_AS_DEFINED = 1577 | 1578 | # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then 1579 | # doxygen's preprocessor will remove all references to function-like macros 1580 | # that are alone on a line, have an all uppercase name, and do not end with a 1581 | # semicolon, because these will confuse the parser if not removed. 1582 | 1583 | SKIP_FUNCTION_MACROS = YES 1584 | 1585 | #--------------------------------------------------------------------------- 1586 | # Configuration::additions related to external references 1587 | #--------------------------------------------------------------------------- 1588 | 1589 | # The TAGFILES option can be used to specify one or more tagfiles. For each 1590 | # tag file the location of the external documentation should be added. The 1591 | # format of a tag file without this location is as follows: 1592 | # TAGFILES = file1 file2 ... 1593 | # Adding location for the tag files is done as follows: 1594 | # TAGFILES = file1=loc1 "file2 = loc2" ... 1595 | # where "loc1" and "loc2" can be relative or absolute paths 1596 | # or URLs. Note that each tag file must have a unique name (where the name does 1597 | # NOT include the path). If a tag file is not located in the directory in which 1598 | # doxygen is run, you must also specify the path to the tagfile here. 1599 | 1600 | TAGFILES = 1601 | 1602 | # When a file name is specified after GENERATE_TAGFILE, doxygen will create 1603 | # a tag file that is based on the input files it reads. 1604 | 1605 | GENERATE_TAGFILE = 1606 | 1607 | # If the ALLEXTERNALS tag is set to YES all external classes will be listed 1608 | # in the class index. If set to NO only the inherited external classes 1609 | # will be listed. 1610 | 1611 | ALLEXTERNALS = NO 1612 | 1613 | # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed 1614 | # in the modules index. If set to NO, only the current project's groups will 1615 | # be listed. 1616 | 1617 | EXTERNAL_GROUPS = YES 1618 | 1619 | # The PERL_PATH should be the absolute path and name of the perl script 1620 | # interpreter (i.e. the result of `which perl'). 1621 | 1622 | PERL_PATH = /usr/bin/perl 1623 | 1624 | #--------------------------------------------------------------------------- 1625 | # Configuration options related to the dot tool 1626 | #--------------------------------------------------------------------------- 1627 | 1628 | # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will 1629 | # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base 1630 | # or super classes. Setting the tag to NO turns the diagrams off. Note that 1631 | # this option also works with HAVE_DOT disabled, but it is recommended to 1632 | # install and use dot, since it yields more powerful graphs. 1633 | 1634 | CLASS_DIAGRAMS = YES 1635 | 1636 | # You can define message sequence charts within doxygen comments using the \msc 1637 | # command. Doxygen will then run the mscgen tool (see 1638 | # http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the 1639 | # documentation. The MSCGEN_PATH tag allows you to specify the directory where 1640 | # the mscgen tool resides. If left empty the tool is assumed to be found in the 1641 | # default search path. 1642 | 1643 | MSCGEN_PATH = 1644 | 1645 | # If set to YES, the inheritance and collaboration graphs will hide 1646 | # inheritance and usage relations if the target is undocumented 1647 | # or is not a class. 1648 | 1649 | HIDE_UNDOC_RELATIONS = YES 1650 | 1651 | # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is 1652 | # available from the path. This tool is part of Graphviz, a graph visualization 1653 | # toolkit from AT&T and Lucent Bell Labs. The other options in this section 1654 | # have no effect if this option is set to NO (the default) 1655 | 1656 | HAVE_DOT = NO 1657 | 1658 | # The DOT_NUM_THREADS specifies the number of dot invocations doxygen is 1659 | # allowed to run in parallel. When set to 0 (the default) doxygen will 1660 | # base this on the number of processors available in the system. You can set it 1661 | # explicitly to a value larger than 0 to get control over the balance 1662 | # between CPU load and processing speed. 1663 | 1664 | DOT_NUM_THREADS = 0 1665 | 1666 | # By default doxygen will use the Helvetica font for all dot files that 1667 | # doxygen generates. When you want a differently looking font you can specify 1668 | # the font name using DOT_FONTNAME. You need to make sure dot is able to find 1669 | # the font, which can be done by putting it in a standard location or by setting 1670 | # the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the 1671 | # directory containing the font. 1672 | 1673 | DOT_FONTNAME = Helvetica 1674 | 1675 | # The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. 1676 | # The default size is 10pt. 1677 | 1678 | DOT_FONTSIZE = 10 1679 | 1680 | # By default doxygen will tell dot to use the Helvetica font. 1681 | # If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to 1682 | # set the path where dot can find it. 1683 | 1684 | DOT_FONTPATH = 1685 | 1686 | # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen 1687 | # will generate a graph for each documented class showing the direct and 1688 | # indirect inheritance relations. Setting this tag to YES will force the 1689 | # CLASS_DIAGRAMS tag to NO. 1690 | 1691 | CLASS_GRAPH = YES 1692 | 1693 | # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen 1694 | # will generate a graph for each documented class showing the direct and 1695 | # indirect implementation dependencies (inheritance, containment, and 1696 | # class references variables) of the class with other documented classes. 1697 | 1698 | COLLABORATION_GRAPH = YES 1699 | 1700 | # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen 1701 | # will generate a graph for groups, showing the direct groups dependencies 1702 | 1703 | GROUP_GRAPHS = YES 1704 | 1705 | # If the UML_LOOK tag is set to YES doxygen will generate inheritance and 1706 | # collaboration diagrams in a style similar to the OMG's Unified Modeling 1707 | # Language. 1708 | 1709 | UML_LOOK = NO 1710 | 1711 | # If the UML_LOOK tag is enabled, the fields and methods are shown inside 1712 | # the class node. If there are many fields or methods and many nodes the 1713 | # graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS 1714 | # threshold limits the number of items for each type to make the size more 1715 | # managable. Set this to 0 for no limit. Note that the threshold may be 1716 | # exceeded by 50% before the limit is enforced. 1717 | 1718 | UML_LIMIT_NUM_FIELDS = 10 1719 | 1720 | # If set to YES, the inheritance and collaboration graphs will show the 1721 | # relations between templates and their instances. 1722 | 1723 | TEMPLATE_RELATIONS = NO 1724 | 1725 | # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT 1726 | # tags are set to YES then doxygen will generate a graph for each documented 1727 | # file showing the direct and indirect include dependencies of the file with 1728 | # other documented files. 1729 | 1730 | INCLUDE_GRAPH = YES 1731 | 1732 | # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and 1733 | # HAVE_DOT tags are set to YES then doxygen will generate a graph for each 1734 | # documented header file showing the documented files that directly or 1735 | # indirectly include this file. 1736 | 1737 | INCLUDED_BY_GRAPH = YES 1738 | 1739 | # If the CALL_GRAPH and HAVE_DOT options are set to YES then 1740 | # doxygen will generate a call dependency graph for every global function 1741 | # or class method. Note that enabling this option will significantly increase 1742 | # the time of a run. So in most cases it will be better to enable call graphs 1743 | # for selected functions only using the \callgraph command. 1744 | 1745 | CALL_GRAPH = NO 1746 | 1747 | # If the CALLER_GRAPH and HAVE_DOT tags are set to YES then 1748 | # doxygen will generate a caller dependency graph for every global function 1749 | # or class method. Note that enabling this option will significantly increase 1750 | # the time of a run. So in most cases it will be better to enable caller 1751 | # graphs for selected functions only using the \callergraph command. 1752 | 1753 | CALLER_GRAPH = NO 1754 | 1755 | # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen 1756 | # will generate a graphical hierarchy of all classes instead of a textual one. 1757 | 1758 | GRAPHICAL_HIERARCHY = YES 1759 | 1760 | # If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES 1761 | # then doxygen will show the dependencies a directory has on other directories 1762 | # in a graphical way. The dependency relations are determined by the #include 1763 | # relations between the files in the directories. 1764 | 1765 | DIRECTORY_GRAPH = YES 1766 | 1767 | # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images 1768 | # generated by dot. Possible values are svg, png, jpg, or gif. 1769 | # If left blank png will be used. If you choose svg you need to set 1770 | # HTML_FILE_EXTENSION to xhtml in order to make the SVG files 1771 | # visible in IE 9+ (other browsers do not have this requirement). 1772 | 1773 | DOT_IMAGE_FORMAT = png 1774 | 1775 | # If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to 1776 | # enable generation of interactive SVG images that allow zooming and panning. 1777 | # Note that this requires a modern browser other than Internet Explorer. 1778 | # Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you 1779 | # need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files 1780 | # visible. Older versions of IE do not have SVG support. 1781 | 1782 | INTERACTIVE_SVG = NO 1783 | 1784 | # The tag DOT_PATH can be used to specify the path where the dot tool can be 1785 | # found. If left blank, it is assumed the dot tool can be found in the path. 1786 | 1787 | DOT_PATH = 1788 | 1789 | # The DOTFILE_DIRS tag can be used to specify one or more directories that 1790 | # contain dot files that are included in the documentation (see the 1791 | # \dotfile command). 1792 | 1793 | DOTFILE_DIRS = 1794 | 1795 | # The MSCFILE_DIRS tag can be used to specify one or more directories that 1796 | # contain msc files that are included in the documentation (see the 1797 | # \mscfile command). 1798 | 1799 | MSCFILE_DIRS = 1800 | 1801 | # The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of 1802 | # nodes that will be shown in the graph. If the number of nodes in a graph 1803 | # becomes larger than this value, doxygen will truncate the graph, which is 1804 | # visualized by representing a node as a red box. Note that doxygen if the 1805 | # number of direct children of the root node in a graph is already larger than 1806 | # DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note 1807 | # that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. 1808 | 1809 | DOT_GRAPH_MAX_NODES = 50 1810 | 1811 | # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the 1812 | # graphs generated by dot. A depth value of 3 means that only nodes reachable 1813 | # from the root by following a path via at most 3 edges will be shown. Nodes 1814 | # that lay further from the root node will be omitted. Note that setting this 1815 | # option to 1 or 2 may greatly reduce the computation time needed for large 1816 | # code bases. Also note that the size of a graph can be further restricted by 1817 | # DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. 1818 | 1819 | MAX_DOT_GRAPH_DEPTH = 0 1820 | 1821 | # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent 1822 | # background. This is disabled by default, because dot on Windows does not 1823 | # seem to support this out of the box. Warning: Depending on the platform used, 1824 | # enabling this option may lead to badly anti-aliased labels on the edges of 1825 | # a graph (i.e. they become hard to read). 1826 | 1827 | DOT_TRANSPARENT = NO 1828 | 1829 | # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output 1830 | # files in one run (i.e. multiple -o and -T options on the command line). This 1831 | # makes dot run faster, but since only newer versions of dot (>1.8.10) 1832 | # support this, this feature is disabled by default. 1833 | 1834 | DOT_MULTI_TARGETS = NO 1835 | 1836 | # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will 1837 | # generate a legend page explaining the meaning of the various boxes and 1838 | # arrows in the dot generated graphs. 1839 | 1840 | GENERATE_LEGEND = YES 1841 | 1842 | # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will 1843 | # remove the intermediate dot files that are used to generate 1844 | # the various graphs. 1845 | 1846 | DOT_CLEANUP = YES 1847 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0C2E08C0170F833500450410 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C2E08BF170F833400450410 /* UIKit.framework */; }; 11 | 0C2E08C2170F833500450410 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C2E08C1170F833500450410 /* Foundation.framework */; }; 12 | 0C2E08C4170F833500450410 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C2E08C3170F833500450410 /* CoreGraphics.framework */; }; 13 | 0C2E08CA170F833500450410 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 0C2E08C8170F833500450410 /* InfoPlist.strings */; }; 14 | 0C2E08CC170F833500450410 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C2E08CB170F833500450410 /* main.m */; }; 15 | 0C2E08D0170F833500450410 /* IDZAQAudioPlayerAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C2E08CF170F833500450410 /* IDZAQAudioPlayerAppDelegate.m */; }; 16 | 0C2E08D2170F833500450410 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 0C2E08D1170F833500450410 /* Default.png */; }; 17 | 0C2E08D4170F833500450410 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0C2E08D3170F833500450410 /* Default@2x.png */; }; 18 | 0C2E08D6170F833500450410 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0C2E08D5170F833500450410 /* Default-568h@2x.png */; }; 19 | 0C2E08E5170F8EE900450410 /* IDZOggVorbisFileDecoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0C2E08E4170F8EE900450410 /* IDZOggVorbisFileDecoder.mm */; }; 20 | 0C2E08E8170F9D9000450410 /* IDZAudioPlayerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C2E08E7170F9D9000450410 /* IDZAudioPlayerViewController.m */; }; 21 | 0C2E08EB170F9DA200450410 /* IDZAudioPlayerViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0C2E08E9170F9DA100450410 /* IDZAudioPlayerViewController.xib */; }; 22 | 0C2E08F2170F9E3F00450410 /* IDZAQAudioPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C2E08F1170F9E3E00450410 /* IDZAQAudioPlayer.m */; }; 23 | 0C2E08F4170F9E8900450410 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C2E08F3170F9E8800450410 /* AudioToolbox.framework */; }; 24 | 0C2E08F6170F9FEE00450410 /* Rondo_Alla_Turka.ogg in Resources */ = {isa = PBXBuildFile; fileRef = 0C2E08F5170F9FEE00450410 /* Rondo_Alla_Turka.ogg */; }; 25 | 0C6C5B6519EA22B7007E3476 /* Vorbis.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C6C5B6419EA22B7007E3476 /* Vorbis.framework */; }; 26 | 0C6C5B6719EA22C2007E3476 /* Ogg.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C6C5B6619EA22C2007E3476 /* Ogg.framework */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 0C2E08BC170F833400450410 /* IDZAQAudioPlayer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IDZAQAudioPlayer.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 0C2E08BF170F833400450410 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 32 | 0C2E08C1170F833500450410 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 33 | 0C2E08C3170F833500450410 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 34 | 0C2E08C7170F833500450410 /* IDZAQAudioPlayer-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "IDZAQAudioPlayer-Info.plist"; sourceTree = ""; }; 35 | 0C2E08C9170F833500450410 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 36 | 0C2E08CB170F833500450410 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 37 | 0C2E08CD170F833500450410 /* IDZAQAudioPlayer-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "IDZAQAudioPlayer-Prefix.pch"; sourceTree = ""; }; 38 | 0C2E08CE170F833500450410 /* IDZAQAudioPlayerAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IDZAQAudioPlayerAppDelegate.h; sourceTree = ""; }; 39 | 0C2E08CF170F833500450410 /* IDZAQAudioPlayerAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = IDZAQAudioPlayerAppDelegate.m; sourceTree = ""; }; 40 | 0C2E08D1170F833500450410 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; 41 | 0C2E08D3170F833500450410 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; 42 | 0C2E08D5170F833500450410 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 43 | 0C2E08E2170F8EE800450410 /* IDZAudioDecoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDZAudioDecoder.h; sourceTree = ""; }; 44 | 0C2E08E3170F8EE800450410 /* IDZOggVorbisFileDecoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDZOggVorbisFileDecoder.h; sourceTree = ""; }; 45 | 0C2E08E4170F8EE900450410 /* IDZOggVorbisFileDecoder.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = IDZOggVorbisFileDecoder.mm; sourceTree = ""; }; 46 | 0C2E08E6170F9D9000450410 /* IDZAudioPlayerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDZAudioPlayerViewController.h; sourceTree = ""; }; 47 | 0C2E08E7170F9D9000450410 /* IDZAudioPlayerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IDZAudioPlayerViewController.m; sourceTree = ""; }; 48 | 0C2E08EA170F9DA200450410 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/IDZAudioPlayerViewController.xib; sourceTree = ""; }; 49 | 0C2E08F0170F9E3E00450410 /* IDZAQAudioPlayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IDZAQAudioPlayer.h; sourceTree = ""; }; 50 | 0C2E08F1170F9E3E00450410 /* IDZAQAudioPlayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IDZAQAudioPlayer.m; sourceTree = ""; }; 51 | 0C2E08F3170F9E8800450410 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; 52 | 0C2E08F5170F9FEE00450410 /* Rondo_Alla_Turka.ogg */ = {isa = PBXFileReference; lastKnownFileType = file; path = Rondo_Alla_Turka.ogg; sourceTree = ""; }; 53 | 0C2E08F7170FA0CE00450410 /* IDZAudioPlayer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IDZAudioPlayer.h; sourceTree = ""; }; 54 | 0C6C5B6419EA22B7007E3476 /* Vorbis.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Vorbis.framework; path = Frameworks/IDZPrecompiledVorbis/Vorbis.framework; sourceTree = ""; }; 55 | 0C6C5B6619EA22C2007E3476 /* Ogg.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Ogg.framework; path = Frameworks/IDZPrecompiledOgg/Ogg.framework; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 0C2E08B9170F833400450410 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 0C6C5B6719EA22C2007E3476 /* Ogg.framework in Frameworks */, 64 | 0C2E08F4170F9E8900450410 /* AudioToolbox.framework in Frameworks */, 65 | 0C6C5B6519EA22B7007E3476 /* Vorbis.framework in Frameworks */, 66 | 0C2E08C0170F833500450410 /* UIKit.framework in Frameworks */, 67 | 0C2E08C2170F833500450410 /* Foundation.framework in Frameworks */, 68 | 0C2E08C4170F833500450410 /* CoreGraphics.framework in Frameworks */, 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | /* End PBXFrameworksBuildPhase section */ 73 | 74 | /* Begin PBXGroup section */ 75 | 0C2E08B3170F833400450410 = { 76 | isa = PBXGroup; 77 | children = ( 78 | 0C2E08C5170F833500450410 /* IDZAQAudioPlayer */, 79 | 0C2E08BE170F833400450410 /* Frameworks */, 80 | 0C2E08BD170F833400450410 /* Products */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 0C2E08BD170F833400450410 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 0C2E08BC170F833400450410 /* IDZAQAudioPlayer.app */, 88 | ); 89 | name = Products; 90 | sourceTree = ""; 91 | }; 92 | 0C2E08BE170F833400450410 /* Frameworks */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 0C6C5B6619EA22C2007E3476 /* Ogg.framework */, 96 | 0C6C5B6419EA22B7007E3476 /* Vorbis.framework */, 97 | 0C2E08F3170F9E8800450410 /* AudioToolbox.framework */, 98 | 0C2E08BF170F833400450410 /* UIKit.framework */, 99 | 0C2E08C1170F833500450410 /* Foundation.framework */, 100 | 0C2E08C3170F833500450410 /* CoreGraphics.framework */, 101 | ); 102 | name = Frameworks; 103 | sourceTree = ""; 104 | }; 105 | 0C2E08C5170F833500450410 /* IDZAQAudioPlayer */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 0C2E08F7170FA0CE00450410 /* IDZAudioPlayer.h */, 109 | 0C2E08F0170F9E3E00450410 /* IDZAQAudioPlayer.h */, 110 | 0C2E08F1170F9E3E00450410 /* IDZAQAudioPlayer.m */, 111 | 0C2E08E9170F9DA100450410 /* IDZAudioPlayerViewController.xib */, 112 | 0C2E08E6170F9D9000450410 /* IDZAudioPlayerViewController.h */, 113 | 0C2E08E7170F9D9000450410 /* IDZAudioPlayerViewController.m */, 114 | 0C2E08CE170F833500450410 /* IDZAQAudioPlayerAppDelegate.h */, 115 | 0C2E08CF170F833500450410 /* IDZAQAudioPlayerAppDelegate.m */, 116 | 0C2E08E2170F8EE800450410 /* IDZAudioDecoder.h */, 117 | 0C2E08E3170F8EE800450410 /* IDZOggVorbisFileDecoder.h */, 118 | 0C2E08E4170F8EE900450410 /* IDZOggVorbisFileDecoder.mm */, 119 | 0C2E08C6170F833500450410 /* Supporting Files */, 120 | ); 121 | path = IDZAQAudioPlayer; 122 | sourceTree = ""; 123 | }; 124 | 0C2E08C6170F833500450410 /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 0C2E08F5170F9FEE00450410 /* Rondo_Alla_Turka.ogg */, 128 | 0C2E08C7170F833500450410 /* IDZAQAudioPlayer-Info.plist */, 129 | 0C2E08C8170F833500450410 /* InfoPlist.strings */, 130 | 0C2E08CB170F833500450410 /* main.m */, 131 | 0C2E08CD170F833500450410 /* IDZAQAudioPlayer-Prefix.pch */, 132 | 0C2E08D1170F833500450410 /* Default.png */, 133 | 0C2E08D3170F833500450410 /* Default@2x.png */, 134 | 0C2E08D5170F833500450410 /* Default-568h@2x.png */, 135 | ); 136 | name = "Supporting Files"; 137 | sourceTree = ""; 138 | }; 139 | /* End PBXGroup section */ 140 | 141 | /* Begin PBXNativeTarget section */ 142 | 0C2E08BB170F833400450410 /* IDZAQAudioPlayer */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 0C2E08DF170F833500450410 /* Build configuration list for PBXNativeTarget "IDZAQAudioPlayer" */; 145 | buildPhases = ( 146 | 0C2E08B8170F833400450410 /* Sources */, 147 | 0C2E08B9170F833400450410 /* Frameworks */, 148 | 0C2E08BA170F833400450410 /* Resources */, 149 | ); 150 | buildRules = ( 151 | ); 152 | dependencies = ( 153 | ); 154 | name = IDZAQAudioPlayer; 155 | productName = IDZAQAudioPlayer; 156 | productReference = 0C2E08BC170F833400450410 /* IDZAQAudioPlayer.app */; 157 | productType = "com.apple.product-type.application"; 158 | }; 159 | /* End PBXNativeTarget section */ 160 | 161 | /* Begin PBXProject section */ 162 | 0C2E08B4170F833400450410 /* Project object */ = { 163 | isa = PBXProject; 164 | attributes = { 165 | CLASSPREFIX = IDZAQAudioPlayer; 166 | LastUpgradeCheck = 0610; 167 | ORGANIZATIONNAME = iOSDeveloperZone.com; 168 | }; 169 | buildConfigurationList = 0C2E08B7170F833400450410 /* Build configuration list for PBXProject "IDZAQAudioPlayer" */; 170 | compatibilityVersion = "Xcode 3.2"; 171 | developmentRegion = English; 172 | hasScannedForEncodings = 0; 173 | knownRegions = ( 174 | en, 175 | ); 176 | mainGroup = 0C2E08B3170F833400450410; 177 | productRefGroup = 0C2E08BD170F833400450410 /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | 0C2E08BB170F833400450410 /* IDZAQAudioPlayer */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | 0C2E08BA170F833400450410 /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | 0C2E08CA170F833500450410 /* InfoPlist.strings in Resources */, 192 | 0C2E08D2170F833500450410 /* Default.png in Resources */, 193 | 0C2E08D4170F833500450410 /* Default@2x.png in Resources */, 194 | 0C2E08D6170F833500450410 /* Default-568h@2x.png in Resources */, 195 | 0C2E08EB170F9DA200450410 /* IDZAudioPlayerViewController.xib in Resources */, 196 | 0C2E08F6170F9FEE00450410 /* Rondo_Alla_Turka.ogg in Resources */, 197 | ); 198 | runOnlyForDeploymentPostprocessing = 0; 199 | }; 200 | /* End PBXResourcesBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 0C2E08B8170F833400450410 /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 0C2E08CC170F833500450410 /* main.m in Sources */, 208 | 0C2E08D0170F833500450410 /* IDZAQAudioPlayerAppDelegate.m in Sources */, 209 | 0C2E08E5170F8EE900450410 /* IDZOggVorbisFileDecoder.mm in Sources */, 210 | 0C2E08E8170F9D9000450410 /* IDZAudioPlayerViewController.m in Sources */, 211 | 0C2E08F2170F9E3F00450410 /* IDZAQAudioPlayer.m in Sources */, 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | /* End PBXSourcesBuildPhase section */ 216 | 217 | /* Begin PBXVariantGroup section */ 218 | 0C2E08C8170F833500450410 /* InfoPlist.strings */ = { 219 | isa = PBXVariantGroup; 220 | children = ( 221 | 0C2E08C9170F833500450410 /* en */, 222 | ); 223 | name = InfoPlist.strings; 224 | sourceTree = ""; 225 | }; 226 | 0C2E08E9170F9DA100450410 /* IDZAudioPlayerViewController.xib */ = { 227 | isa = PBXVariantGroup; 228 | children = ( 229 | 0C2E08EA170F9DA200450410 /* en */, 230 | ); 231 | name = IDZAudioPlayerViewController.xib; 232 | sourceTree = ""; 233 | }; 234 | /* End PBXVariantGroup section */ 235 | 236 | /* Begin XCBuildConfiguration section */ 237 | 0C2E08DD170F833500450410 /* Debug */ = { 238 | isa = XCBuildConfiguration; 239 | buildSettings = { 240 | ALWAYS_SEARCH_USER_PATHS = NO; 241 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 242 | CLANG_CXX_LIBRARY = "libc++"; 243 | CLANG_ENABLE_OBJC_ARC = YES; 244 | CLANG_WARN_CONSTANT_CONVERSION = YES; 245 | CLANG_WARN_EMPTY_BODY = YES; 246 | CLANG_WARN_ENUM_CONVERSION = YES; 247 | CLANG_WARN_INT_CONVERSION = YES; 248 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 249 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 250 | COPY_PHASE_STRIP = NO; 251 | GCC_C_LANGUAGE_STANDARD = gnu99; 252 | GCC_DYNAMIC_NO_PIC = NO; 253 | GCC_OPTIMIZATION_LEVEL = 0; 254 | GCC_PREPROCESSOR_DEFINITIONS = ( 255 | "DEBUG=1", 256 | "$(inherited)", 257 | ); 258 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 259 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 260 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 261 | GCC_WARN_UNUSED_VARIABLE = YES; 262 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 263 | ONLY_ACTIVE_ARCH = YES; 264 | SDKROOT = iphoneos; 265 | }; 266 | name = Debug; 267 | }; 268 | 0C2E08DE170F833500450410 /* Release */ = { 269 | isa = XCBuildConfiguration; 270 | buildSettings = { 271 | ALWAYS_SEARCH_USER_PATHS = NO; 272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 273 | CLANG_CXX_LIBRARY = "libc++"; 274 | CLANG_ENABLE_OBJC_ARC = YES; 275 | CLANG_WARN_CONSTANT_CONVERSION = YES; 276 | CLANG_WARN_EMPTY_BODY = YES; 277 | CLANG_WARN_ENUM_CONVERSION = YES; 278 | CLANG_WARN_INT_CONVERSION = YES; 279 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 280 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 281 | COPY_PHASE_STRIP = YES; 282 | GCC_C_LANGUAGE_STANDARD = gnu99; 283 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 284 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 285 | GCC_WARN_UNUSED_VARIABLE = YES; 286 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 287 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 288 | SDKROOT = iphoneos; 289 | VALIDATE_PRODUCT = YES; 290 | }; 291 | name = Release; 292 | }; 293 | 0C2E08E0170F833500450410 /* Debug */ = { 294 | isa = XCBuildConfiguration; 295 | buildSettings = { 296 | CODE_SIGN_IDENTITY = "iPhone Developer"; 297 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 298 | FRAMEWORK_SEARCH_PATHS = ( 299 | "$(inherited)", 300 | "\"$(SRCROOT)/Frameworks\"", 301 | "$(PROJECT_DIR)/Frameworks/IDZPrecompiledVorbis", 302 | "$(PROJECT_DIR)/Frameworks/IDZPrecompiledOgg", 303 | ); 304 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 305 | GCC_PREFIX_HEADER = "IDZAQAudioPlayer/IDZAQAudioPlayer-Prefix.pch"; 306 | INFOPLIST_FILE = "IDZAQAudioPlayer/IDZAQAudioPlayer-Info.plist"; 307 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 308 | PRODUCT_NAME = "$(TARGET_NAME)"; 309 | PROVISIONING_PROFILE = ""; 310 | WRAPPER_EXTENSION = app; 311 | }; 312 | name = Debug; 313 | }; 314 | 0C2E08E1170F833500450410 /* Release */ = { 315 | isa = XCBuildConfiguration; 316 | buildSettings = { 317 | CODE_SIGN_IDENTITY = "iPhone Developer"; 318 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 319 | FRAMEWORK_SEARCH_PATHS = ( 320 | "$(inherited)", 321 | "\"$(SRCROOT)/Frameworks\"", 322 | "$(PROJECT_DIR)/Frameworks/IDZPrecompiledVorbis", 323 | "$(PROJECT_DIR)/Frameworks/IDZPrecompiledOgg", 324 | ); 325 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 326 | GCC_PREFIX_HEADER = "IDZAQAudioPlayer/IDZAQAudioPlayer-Prefix.pch"; 327 | INFOPLIST_FILE = "IDZAQAudioPlayer/IDZAQAudioPlayer-Info.plist"; 328 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 329 | PRODUCT_NAME = "$(TARGET_NAME)"; 330 | PROVISIONING_PROFILE = ""; 331 | WRAPPER_EXTENSION = app; 332 | }; 333 | name = Release; 334 | }; 335 | /* End XCBuildConfiguration section */ 336 | 337 | /* Begin XCConfigurationList section */ 338 | 0C2E08B7170F833400450410 /* Build configuration list for PBXProject "IDZAQAudioPlayer" */ = { 339 | isa = XCConfigurationList; 340 | buildConfigurations = ( 341 | 0C2E08DD170F833500450410 /* Debug */, 342 | 0C2E08DE170F833500450410 /* Release */, 343 | ); 344 | defaultConfigurationIsVisible = 0; 345 | defaultConfigurationName = Release; 346 | }; 347 | 0C2E08DF170F833500450410 /* Build configuration list for PBXNativeTarget "IDZAQAudioPlayer" */ = { 348 | isa = XCConfigurationList; 349 | buildConfigurations = ( 350 | 0C2E08E0170F833500450410 /* Debug */, 351 | 0C2E08E1170F833500450410 /* Release */, 352 | ); 353 | defaultConfigurationIsVisible = 0; 354 | defaultConfigurationName = Release; 355 | }; 356 | /* End XCConfigurationList section */ 357 | }; 358 | rootObject = 0C2E08B4170F833400450410 /* Project object */; 359 | } 360 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer.xcodeproj/xcshareddata/xcschemes/IDZAQAudioPlayer.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 51 | 52 | 58 | 59 | 60 | 61 | 62 | 63 | 69 | 70 | 76 | 77 | 78 | 79 | 81 | 82 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosdevzone/IDZAQAudioPlayer/fafe2e6a4f02cfd38d1deb85814d1b7e0d7ebc68/IDZAQAudioPlayer/Default-568h@2x.png -------------------------------------------------------------------------------- /IDZAQAudioPlayer/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosdevzone/IDZAQAudioPlayer/fafe2e6a4f02cfd38d1deb85814d1b7e0d7ebc68/IDZAQAudioPlayer/Default.png -------------------------------------------------------------------------------- /IDZAQAudioPlayer/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosdevzone/IDZAQAudioPlayer/fafe2e6a4f02cfd38d1deb85814d1b7e0d7ebc68/IDZAQAudioPlayer/Default@2x.png -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAQAudioPlayer-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.iosdeveloperzone.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAQAudioPlayer-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'IDZAQAudioPlayer' target in the 'IDZAQAudioPlayer' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAQAudioPlayer.h: -------------------------------------------------------------------------------- 1 | // 2 | // IDZAQAudioPlayer.h 3 | // IDZAQAudioPlayer 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | #import 26 | #import "IDZAudioPlayer.h" 27 | #import "IDZAudioDecoder.h" 28 | /** 29 | * @brief An Audio Queue based audio player conforming to IDZAudioPlayer. 30 | * 31 | * This class plays audio data supplied by an object conforming to 32 | * the IDZAudioDecoder protocol, for example, the IDZOggVorbisFileDecoder 33 | * class can be used to play Ogg Vorbis files. 34 | */ 35 | @interface IDZAQAudioPlayer : NSObject 36 | /** 37 | * @brief Initialized the receiver to play audio from a specified decoder. 38 | * 39 | * @param decoder the decoder to obtain audio data from, must no be nil. 40 | * @param error will receive error information if not nil. 41 | * @return a pointer to the receiver or nil if an error occurs. 42 | */ 43 | - (id)initWithDecoder:(id)decoder error:(NSError**)error; 44 | /** 45 | * @brief Delegate notified when playback ends. 46 | */ 47 | @property(assign) id delegate; 48 | /** 49 | * @brief The current audio device time. 50 | */ 51 | @property(readonly) NSTimeInterval deviceCurrentTime; 52 | 53 | @end 54 | 55 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAQAudioPlayer.m: -------------------------------------------------------------------------------- 1 | // 2 | // IDZAQAudioPlayer.m 3 | // IDZAQAudioPlayer 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | #import 26 | 27 | #import "IDZAQAudioPlayer.h" 28 | #import "IDZAudioDecoder.h" 29 | #import "IDZTrace.h" 30 | 31 | /* 32 | * Apple uses 3 buffers in the AQPlayer example. We'll do the same. 33 | * See: http://developer.apple.com/library/ios/#samplecode/SpeakHere/Listings/Classes_AQPlayer_mm.html 34 | */ 35 | #define IDZ_BUFFER_COUNT 3 36 | 37 | 38 | typedef enum IDZAudioPlayStateTag 39 | { 40 | IDZAudioPlayerStateStopped, 41 | IDZAudioPlayerStatePrepared, 42 | IDZAudioPlayerStatePlaying, 43 | IDZAudioPlayerStatePaused, 44 | IDZAudioPlayerStateStopping 45 | 46 | } IDZAudioPlayerState; 47 | 48 | /** 49 | * @brief IDZAudioPlayer private internals. 50 | */ 51 | @interface IDZAQAudioPlayer () 52 | { 53 | @private 54 | AudioQueueRef mQueue; 55 | AudioQueueBufferRef mBuffers[IDZ_BUFFER_COUNT]; 56 | BOOL mStopping; 57 | NSTimeInterval mQueueStartTime; 58 | } 59 | /** 60 | * @brief Queries the value of the Audio Queue's kAudioQueueProperty_IsRunning property. 61 | */ 62 | - (UInt32)queryIsRunning; 63 | /** 64 | * @brief Reads data from the audio source and enqueues it on the audio queue. 65 | */ 66 | - (void)readBuffer:(AudioQueueBufferRef)buffer; 67 | /** 68 | * @brief Stops playback 69 | * @param immediate if YES playback stops immediately, otherwise playback stops after all enqueued buffers 70 | * have finished playing. 71 | */ 72 | - (BOOL)stop:(BOOL)immediate; 73 | /** 74 | * @brief YES if the player is playing, NO otherwise. 75 | */ 76 | @property (readwrite, getter=isPlaying) BOOL playing; 77 | /** 78 | * @brief The decoder associated with this player. 79 | */ 80 | @property (readonly, strong) id decoder; 81 | /** 82 | * @brief The current player state. 83 | */ 84 | @property (nonatomic, assign) IDZAudioPlayerState state; 85 | @end 86 | 87 | 88 | @implementation IDZAQAudioPlayer 89 | @dynamic currentTime; 90 | @dynamic numberOfChannels; 91 | @dynamic duration; 92 | @synthesize playing = mPlaying; 93 | @synthesize decoder = mDecoder; 94 | @synthesize state = mState; 95 | 96 | // MARK: - Static Callbacks 97 | static void IDZOutputCallback(void * inUserData, 98 | AudioQueueRef inAQ, 99 | AudioQueueBufferRef inCompleteAQBuffer) 100 | { 101 | IDZAQAudioPlayer* pPlayer = (__bridge IDZAQAudioPlayer*)inUserData; 102 | [pPlayer readBuffer:inCompleteAQBuffer]; 103 | } 104 | 105 | static void IDZPropertyListener(void* inUserData, 106 | AudioQueueRef inAQ, 107 | AudioQueuePropertyID inID) 108 | { 109 | IDZAQAudioPlayer* pPlayer = (__bridge IDZAQAudioPlayer*)inUserData; 110 | if(inID == kAudioQueueProperty_IsRunning) 111 | { 112 | UInt32 isRunning = [pPlayer queryIsRunning]; 113 | NSLog(@"isRunning = %u", (unsigned int)isRunning); 114 | BOOL bDidFinish = (pPlayer.playing && !isRunning); 115 | pPlayer.playing = isRunning ? YES : NO; 116 | if(bDidFinish) 117 | { 118 | [pPlayer.delegate audioPlayerDidFinishPlaying:pPlayer 119 | successfully:YES]; 120 | /* 121 | * To match AVPlayer's behavior we need to reset the file. 122 | */ 123 | pPlayer.currentTime = 0; 124 | } 125 | if(!isRunning) 126 | pPlayer.state = IDZAudioPlayerStateStopped; 127 | } 128 | 129 | } 130 | 131 | 132 | - (id)initWithDecoder:(id)decoder error:(NSError *__autoreleasing *)error 133 | { 134 | NSParameterAssert(decoder); 135 | if(self = [super init]) 136 | { 137 | mDecoder = decoder; 138 | AudioStreamBasicDescription dataFormat = decoder.dataFormat; 139 | OSStatus status = AudioQueueNewOutput(&dataFormat, IDZOutputCallback, 140 | (__bridge void*)self, 141 | CFRunLoopGetCurrent(), 142 | kCFRunLoopCommonModes, 143 | 0, 144 | &mQueue); 145 | NSAssert(status == noErr, @"Audio queue creation was successful."); 146 | AudioQueueSetParameter(mQueue, kAudioQueueParam_Volume, 1.0); 147 | status = AudioQueueAddPropertyListener(mQueue, kAudioQueueProperty_IsRunning, 148 | IDZPropertyListener, (__bridge void*)self); 149 | 150 | for(int i = 0; i < IDZ_BUFFER_COUNT; ++i) 151 | { 152 | UInt32 bufferSize = 128 * 1024; 153 | status = AudioQueueAllocateBuffer(mQueue, bufferSize, &mBuffers[i]); 154 | if(status != noErr) 155 | { 156 | if(*error) 157 | { 158 | *error = [NSError errorWithDomain:NSOSStatusErrorDomain code:status userInfo:nil]; 159 | } 160 | AudioQueueDispose(mQueue, true); 161 | mQueue = 0; 162 | return nil; 163 | } 164 | 165 | } 166 | } 167 | mState = IDZAudioPlayerStateStopped; 168 | mQueueStartTime = 0.0; 169 | return self; 170 | } 171 | 172 | - (BOOL)prepareToPlay 173 | { 174 | for(int i = 0; i < IDZ_BUFFER_COUNT; ++i) 175 | { 176 | [self readBuffer:mBuffers[i]]; 177 | } 178 | self.state = IDZAudioPlayerStatePrepared; 179 | return YES; 180 | } 181 | - (BOOL)play 182 | { 183 | switch(self.state) 184 | { 185 | case IDZAudioPlayerStatePlaying: 186 | return NO; 187 | case IDZAudioPlayerStatePaused: 188 | case IDZAudioPlayerStatePrepared: 189 | break; 190 | default: 191 | [self prepareToPlay]; 192 | } 193 | OSStatus osStatus = AudioQueueStart(mQueue, NULL); 194 | NSAssert(osStatus == noErr, @"AudioQueueStart failed"); 195 | self.state = IDZAudioPlayerStatePlaying; 196 | self.playing = YES; 197 | return (osStatus == noErr); 198 | 199 | } 200 | - (BOOL)pause 201 | { 202 | if(self.state != IDZAudioPlayerStatePlaying) return NO; 203 | OSStatus osStatus = AudioQueuePause(mQueue); 204 | NSAssert(osStatus == noErr, @"AudioQueuePause failed"); 205 | self.state = IDZAudioPlayerStatePaused; 206 | return (osStatus == noErr); 207 | 208 | 209 | } 210 | 211 | - (BOOL)stop 212 | { 213 | return [self stop:YES]; 214 | } 215 | 216 | - (BOOL)stop:(BOOL)immediate 217 | { 218 | self.state = IDZAudioPlayerStateStopping; 219 | OSStatus osStatus = AudioQueueStop(mQueue, immediate); 220 | 221 | NSAssert(osStatus == noErr, @"AudioQueueStop failed"); 222 | return (osStatus == noErr); 223 | } 224 | 225 | - (void)readBuffer:(AudioQueueBufferRef)buffer 226 | { 227 | if(self.state == IDZAudioPlayerStateStopping) 228 | return; 229 | 230 | NSAssert(self.decoder, @"self.decoder is valid."); 231 | if([self.decoder readBuffer:buffer]) 232 | { 233 | OSStatus status = AudioQueueEnqueueBuffer(mQueue, buffer, 0, 0); 234 | if(status != noErr) 235 | { 236 | NSLog(@"Error: %s status=%d", __PRETTY_FUNCTION__, (int)status); 237 | } 238 | } 239 | else 240 | { 241 | /* 242 | * Signal to the audio queue that we have run out of data, 243 | * but set the immediate flag to false so that playback of 244 | * currently enqueued buffers completes. 245 | */ 246 | self.state = IDZAudioPlayerStateStopping; 247 | Boolean immediate = false; 248 | AudioQueueStop(mQueue, immediate); 249 | } 250 | } 251 | 252 | // MARK: - Properties 253 | 254 | - (UInt32)queryIsRunning 255 | { 256 | UInt32 oRunning = 0; 257 | UInt32 ioSize = sizeof(oRunning); 258 | OSStatus result = AudioQueueGetProperty(mQueue, kAudioQueueProperty_IsRunning, &oRunning, &ioSize); 259 | return oRunning; 260 | } 261 | - (NSTimeInterval)duration 262 | { 263 | NSTimeInterval duration = mDecoder.duration; 264 | return duration; 265 | } 266 | 267 | - (NSTimeInterval)currentTime 268 | { 269 | 270 | AudioTimeStamp outTimeStamp; 271 | Boolean outTimelineDiscontinuity; 272 | /* 273 | * can fail with -66678 274 | */ 275 | OSStatus status = AudioQueueGetCurrentTime(mQueue, NULL, &outTimeStamp, &outTimelineDiscontinuity); 276 | NSTimeInterval currentTime; 277 | switch(status) 278 | { 279 | case noErr: 280 | currentTime = (NSTimeInterval)outTimeStamp.mSampleTime/self.decoder.dataFormat.mSampleRate + mQueueStartTime; 281 | break; 282 | case kAudioQueueErr_InvalidRunState: 283 | currentTime = 0.0; 284 | break; 285 | default: 286 | currentTime = -1.0; 287 | 288 | } 289 | return mQueueStartTime + currentTime; 290 | } 291 | 292 | - (void)setCurrentTime:(NSTimeInterval)currentTime 293 | { 294 | IDZAudioPlayerState previousState = self.state; 295 | switch(self.state) 296 | { 297 | case IDZAudioPlayerStatePlaying: 298 | [self stop:YES]; 299 | break; 300 | default: 301 | break; 302 | } 303 | [self.decoder seekToTime:currentTime error:nil]; 304 | mQueueStartTime = currentTime; 305 | switch(previousState) 306 | { 307 | case IDZAudioPlayerStatePrepared: 308 | [self prepareToPlay]; 309 | break; 310 | case IDZAudioPlayerStatePlaying: 311 | [self play]; 312 | break; 313 | default: 314 | break; 315 | } 316 | } 317 | 318 | - (NSUInteger)numberOfChannels 319 | { 320 | return self.decoder.dataFormat.mChannelsPerFrame; 321 | } 322 | 323 | 324 | - (void)setState:(IDZAudioPlayerState)state 325 | { 326 | switch(state) 327 | { 328 | case IDZAudioPlayerStatePaused: 329 | NSLog(@"IDZAudioPlayerStatePaused"); 330 | break; 331 | case IDZAudioPlayerStatePlaying: 332 | NSLog(@"IDZAudioPlayerStatePlaying"); 333 | break; 334 | case IDZAudioPlayerStatePrepared: 335 | NSLog(@"IDZAudioPlayerStatePrepared"); 336 | break; 337 | case IDZAudioPlayerStateStopped: 338 | NSLog(@"IDZAudioPlayerStateStopped"); 339 | break; 340 | case IDZAudioPlayerStateStopping: 341 | NSLog(@"IDZAudioPlayerStateStopping"); 342 | break; 343 | } 344 | mState = state; 345 | } 346 | @end 347 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAQAudioPlayerAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // IDZAQAudioPlayerAppDelegate.h 3 | // IDZAQAudioPlayer 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | /** 25 | * @file 26 | * @brief Xcode generated App Delegate header file. 27 | */ 28 | #import 29 | 30 | @class IDZAudioPlayerViewController; 31 | /** 32 | * @brief Xcode generate App Delegate class. 33 | */ 34 | @interface IDZAQAudioPlayerAppDelegate : UIResponder 35 | /** 36 | * @brief The application's window. 37 | */ 38 | @property (strong, nonatomic) UIWindow *window; 39 | /** 40 | * @brief The application's view controller. 41 | */ 42 | @property (strong, nonatomic) IDZAudioPlayerViewController *viewController; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAQAudioPlayerAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // IDZAQAudioPlayerAppDelegate.m 3 | // IDZAQAudioPlayer 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | /** 25 | * @file 26 | * @brief Xcode generated App Delegate implementation file. 27 | */ 28 | #import "IDZAQAudioPlayerAppDelegate.h" 29 | 30 | #import "IDZAudioPlayerViewController.h" 31 | 32 | @implementation IDZAQAudioPlayerAppDelegate 33 | 34 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 35 | { 36 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 37 | // Override point for customization after application launch. 38 | self.viewController = [[IDZAudioPlayerViewController alloc] initWithNibName:@"IDZAudioPlayerViewController" bundle:nil]; 39 | self.window.rootViewController = self.viewController; 40 | [self.window makeKeyAndVisible]; 41 | return YES; 42 | } 43 | 44 | - (void)applicationWillResignActive:(UIApplication *)application 45 | { 46 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 47 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 48 | } 49 | 50 | - (void)applicationDidEnterBackground:(UIApplication *)application 51 | { 52 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 53 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 54 | } 55 | 56 | - (void)applicationWillEnterForeground:(UIApplication *)application 57 | { 58 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 59 | } 60 | 61 | - (void)applicationDidBecomeActive:(UIApplication *)application 62 | { 63 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 64 | } 65 | 66 | - (void)applicationWillTerminate:(UIApplication *)application 67 | { 68 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 69 | } 70 | 71 | @end 72 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAudioDecoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // IDZAudioDecoder.h 3 | // IDZAudioPlayerDevelopment 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | /** 25 | * @file 26 | * @brief The required interface of an audio decoder. 27 | */ 28 | #import 29 | #import 30 | /** 31 | * @brief Required audio decoder methods and properties 32 | * 33 | * The IDZAQAudioPlayer can playback audio from a decoder that 34 | * implements these methods. IDZOggVorbisFileDecoder is a concrete 35 | * implementation that plays back Ogg Vorbis files. 36 | * 37 | * @see IDZOggVorbisFileDecoder 38 | */ 39 | @protocol IDZAudioDecoder 40 | @required 41 | /** 42 | * @brief Description of the audio format produced by this decoder. 43 | * 44 | * This must be one of the audio format supported by iOS. 45 | */ 46 | @property(readonly) AudioStreamBasicDescription dataFormat; 47 | /** 48 | * @brief The duration of the source in seconds. 49 | */ 50 | @property(readonly) NSTimeInterval duration; 51 | /** 52 | * @brief Fills an audio buffer with decoded audio data from the source. 53 | */ 54 | - (BOOL)readBuffer:(AudioQueueBufferRef)buffer; 55 | /** 56 | * @brief Seeks to a specified time in an audio source. 57 | * 58 | * @param timeInterval the time in seconds from the start of the source. 59 | * @param error if not nil will receive error information in case of an error. 60 | * @return YES if successful, NO if an error occurs. 61 | */ 62 | - (BOOL)seekToTime:(NSTimeInterval)timeInterval error:(NSError*__autoreleasing*)error; 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAudioPlayer.h: -------------------------------------------------------------------------------- 1 | // 2 | // IDZAudioPlayer.h 3 | // IDZAudioPlayer 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | #import 25 | 26 | 27 | @protocol IDZAudioPlayer; 28 | /** 29 | * @brief Receives notifications when playback ends. 30 | */ 31 | @protocol IDZAudioPlayerDelegate 32 | /** 33 | * @brief Called when playback ends. 34 | */ 35 | - (void)audioPlayerDidFinishPlaying:(id)player 36 | successfully:(BOOL)flag; 37 | /** 38 | * @brief Called when a decode error occurs. 39 | */ 40 | - (void)audioPlayerDecodeErrorDidOccur:(id)player 41 | error:(NSError *)error; 42 | @end 43 | 44 | /** 45 | * @brief Interface definition for an IDZAudioPlayer. 46 | * 47 | * This protocol defines the expected interface exposed by 48 | * an IDZAudioPlayer. 49 | * 50 | * @see IDZAQAudioPlayer 51 | */ 52 | @protocol IDZAudioPlayer 53 | 54 | /** 55 | * @brief Pre-queues buffers for faster response to #play 56 | */ 57 | - (BOOL)prepareToPlay; 58 | /** 59 | * @brief Begins playback. 60 | */ 61 | - (BOOL)play; 62 | /** 63 | * @brief Pauses playback. 64 | */ 65 | - (BOOL)pause; 66 | /** 67 | * @brief Stops playback. 68 | */ 69 | - (BOOL)stop; 70 | 71 | /* properties */ 72 | /** 73 | * @brief YES when the player is playing, NO otherwise. 74 | */ 75 | @property(readonly, getter=isPlaying) BOOL playing; 76 | /** 77 | * @brief Number of channels in the audio source. 78 | */ 79 | @property(readonly) NSUInteger numberOfChannels; 80 | /** 81 | * @brief Duration of the source in seconds. 82 | */ 83 | @property(readonly) NSTimeInterval duration; 84 | /** 85 | * @brief Delegate for notifications. 86 | */ 87 | @property(assign) id delegate; 88 | /** 89 | * @brief Current playback time in seconds. 90 | */ 91 | @property NSTimeInterval currentTime; 92 | /** 93 | * @brief Current audio device time in seconds. 94 | */ 95 | @property(readonly) NSTimeInterval deviceCurrentTime; 96 | 97 | @end 98 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAudioPlayerViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // IDZViewController.h 3 | // IDZAudoPlayer 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | #import 25 | #import "IDZAQAudioPlayer.h" 26 | 27 | /** 28 | * @brief A quick and dirty screen for controlling and testing an IDZAudioPlayer. 29 | */ 30 | @interface IDZAudioPlayerViewController : UIViewController 31 | /** 32 | * @brief Displays current playback time. 33 | */ 34 | @property (weak, nonatomic) IBOutlet UILabel *currentTimeLabel; 35 | /** 36 | * @brief Displays current audio device time. 37 | */ 38 | @property (weak, nonatomic) IBOutlet UILabel *deviceCurrentTimeLabel; 39 | /** 40 | * @brief Displays source duration. 41 | */ 42 | @property (weak, nonatomic) IBOutlet UILabel *durationLabel; 43 | /** 44 | * @brief Displays number of channels in source. 45 | */ 46 | @property (weak, nonatomic) IBOutlet UILabel *numberOfChannelsLabel; 47 | /** 48 | * @brief Displays YES if the player is playing, NO otherwise. 49 | */ 50 | @property (weak, nonatomic) IBOutlet UILabel *playingLabel; 51 | /** 52 | * @brief Slider label displaying current playback time. 53 | * @see currentTimeLabel 54 | */ 55 | @property (weak, nonatomic) IBOutlet UILabel *elapsedTimeLabel; 56 | /** 57 | * @brief Slider label displaying remaining playback time. 58 | */ 59 | @property (weak, nonatomic) IBOutlet UILabel *remainingTimeLabel; 60 | /** 61 | * @brief Slider intended to allow user to seek in source. 62 | */ 63 | @property (weak, nonatomic) IBOutlet UISlider *currentTimeSlider; 64 | /** 65 | * @brief Button that invokes #play: 66 | */ 67 | @property (weak, nonatomic) IBOutlet UIButton *playButton; 68 | /** 69 | * @brief Button that invokes #pause: 70 | */ 71 | @property (weak, nonatomic) IBOutlet UIButton *pauseButton; 72 | /** 73 | * @brief Button that invokes #stop: 74 | */ 75 | @property (weak, nonatomic) IBOutlet UIButton *stopButton; 76 | /** 77 | * @brief Begins playback. 78 | */ 79 | - (IBAction)play:(id)sender; 80 | /** 81 | * @brief Pauses playback. 82 | */ 83 | - (IBAction)pause:(id)sender; 84 | /** 85 | * @brief Stops playback. 86 | */ 87 | - (IBAction)stop:(id)sender; 88 | /** 89 | * @brief Updates the slider labels as the user drags its. 90 | */ 91 | - (IBAction)currentTimeSliderValueChanged:(id)sender; 92 | /** 93 | * @brief Seeks when the user releases the slider. 94 | */ 95 | - (IBAction)currentTimeSliderTouchUpInside:(id)sender; 96 | 97 | 98 | @end 99 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZAudioPlayerViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // IDZViewController.m 3 | // IDZAudoPlayerTutorial 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | #import "IDZAudioPlayerViewController.h" 25 | #import "IDZTrace.h" 26 | #import "IDZOggVorbisFileDecoder.h" 27 | 28 | 29 | 30 | /** 31 | * @brief IDZAudioPlayerViewController private internals. 32 | */ 33 | @interface IDZAudioPlayerViewController () 34 | /** 35 | * @brief The audio player being controlled. 36 | */ 37 | @property (nonatomic, strong) id player; 38 | /** 39 | * @brief The display update timer. 40 | */ 41 | @property (nonatomic, strong) NSTimer* timer; 42 | /** 43 | * @brief Starts the display update timer. 44 | */ 45 | - (void)startTimer; 46 | /** 47 | * @brief Updates the display to reflact the current player state. 48 | */ 49 | - (void)updateDisplay; 50 | /** 51 | * @brief Updates the slider labels based on the slider's current value. 52 | */ 53 | - (void)updateSliderLabels; 54 | 55 | //- (void)audioPlayerDidFinishPlaying:(id)player 56 | // successfully:(BOOL)flag; 57 | //- (void)audioPlayerDecodeErrorDidOccur:(id)player 58 | // error:(NSError *)error; 59 | 60 | @end 61 | 62 | @implementation IDZAudioPlayerViewController 63 | @synthesize currentTimeLabel = mCurrentTimeLabel; 64 | @synthesize deviceCurrentTimeLabel = mDeviceCurrentTimeLabel; 65 | @synthesize durationLabel = mDurationLabel; 66 | @synthesize numberOfChannelsLabel = mNumberOfChannels; 67 | @synthesize playingLabel = mPlayingLabel; 68 | @synthesize elapsedTimeLabel = mElapsedTimeLabel; 69 | @synthesize remainingTimeLabel = mRemainingTimeLabel; 70 | @synthesize currentTimeSlider = mCurrentTimeSlider; 71 | @synthesize playButton = mPlayingButton; 72 | @synthesize pauseButton = mPauseButton; 73 | @synthesize stopButton = mStopButton; 74 | @synthesize player = mPlayer; 75 | @synthesize timer = mTimer; 76 | 77 | 78 | #pragma mark - View Lifecycle 79 | 80 | - (void)viewDidLoad 81 | { 82 | [super viewDidLoad]; 83 | // Do any additional setup after loading the view, typically from a nib. 84 | 85 | NSError* error = nil; 86 | #if 1 // This plays the ogg file 87 | NSURL* oggUrl = [[NSBundle mainBundle] URLForResource:@"Rondo_Alla_Turka" withExtension:@".ogg"]; 88 | IDZOggVorbisFileDecoder* decoder = [[IDZOggVorbisFileDecoder alloc] initWithContentsOfURL:oggUrl error:&error]; 89 | NSLog(@"Ogg Vorbis file duration is %g", decoder.duration); 90 | self.player = [[IDZAQAudioPlayer alloc] initWithDecoder:decoder error:nil]; 91 | #else 92 | NSURL* url = [[NSBundle mainBundle] URLForResource:@"Rondo_Alla_Turka_Short" withExtension:@"aiff"]; 93 | NSAssert(url, @"URL is valid."); 94 | self.player = [[IDZAVAudioPlayer alloc] initWithContentsOfURL:url error:&error]; 95 | #endif 96 | if(!self.player) 97 | { 98 | NSLog(@"Error creating player: %@", error); 99 | } 100 | self.player.delegate = self; 101 | [self.player prepareToPlay]; 102 | // Fill in the labels that do not change 103 | self.durationLabel.text = [NSString stringWithFormat:@"%.02fs",self.player.duration]; 104 | self.numberOfChannelsLabel.text = [NSString stringWithFormat:@"%lu", (unsigned long)self.player.numberOfChannels]; 105 | self.currentTimeSlider.minimumValue = 0.0f; 106 | self.currentTimeSlider.maximumValue = self.player.duration; 107 | [self updateDisplay]; 108 | } 109 | 110 | - (void)viewDidUnload 111 | { 112 | [self setPauseButton:nil]; 113 | [self setPlayButton:nil]; 114 | [self setStopButton:nil]; 115 | [self setCurrentTimeLabel:nil]; 116 | [self setDeviceCurrentTimeLabel:nil]; 117 | [self setDurationLabel:nil]; 118 | [self setNumberOfChannelsLabel:nil]; 119 | [self setPlayingLabel:nil]; 120 | [self setElapsedTimeLabel:nil]; 121 | [self setRemainingTimeLabel:nil]; 122 | [self setCurrentTimeSlider:nil]; 123 | [super viewDidUnload]; 124 | // Release any retained subviews of the main view. 125 | } 126 | 127 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 128 | { 129 | return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); 130 | } 131 | 132 | #pragma mark - Actions 133 | 134 | - (IBAction)play:(id)sender { 135 | IDZTrace(); 136 | [self startTimer]; 137 | [self.player play]; 138 | 139 | } 140 | 141 | - (IBAction)pause:(id)sender { 142 | IDZTrace(); 143 | [self.player pause]; 144 | [self stopTimer]; 145 | [self updateDisplay]; 146 | } 147 | 148 | - (IBAction)stop:(id)sender { 149 | IDZTrace(); 150 | [self.player stop]; 151 | [self stopTimer]; 152 | self.player.currentTime = 0; 153 | //[self.player prepareToPlay]; 154 | [self updateDisplay]; 155 | } 156 | 157 | - (IBAction)currentTimeSliderValueChanged:(id)sender 158 | { 159 | if(self.timer) 160 | [self stopTimer]; 161 | [self updateSliderLabels]; 162 | 163 | } 164 | 165 | - (IBAction)currentTimeSliderTouchUpInside:(id)sender 166 | { 167 | float value = self.currentTimeSlider.value; 168 | self.player.currentTime = value; 169 | if(self.player.playing) 170 | [self startTimer]; 171 | } 172 | 173 | #pragma mark - Display Update 174 | - (void)updateDisplay 175 | { 176 | NSTimeInterval currentTime = self.player.currentTime; 177 | NSString* currentTimeString = [NSString stringWithFormat:@"%.02f", currentTime]; 178 | 179 | self.currentTimeSlider.value = currentTime; 180 | [self updateSliderLabels]; 181 | 182 | self.currentTimeLabel.text = currentTimeString; 183 | self.playingLabel.text = self.player.playing ? @"YES" : @"NO"; 184 | self.deviceCurrentTimeLabel.text = [NSString stringWithFormat:@"%.02f", self.player.deviceCurrentTime]; 185 | } 186 | 187 | - (void)updateSliderLabels 188 | { 189 | NSTimeInterval currentTime = self.currentTimeSlider.value; 190 | NSString* currentTimeString = [NSString stringWithFormat:@"%.02f", currentTime]; 191 | 192 | self.elapsedTimeLabel.text = currentTimeString; 193 | self.remainingTimeLabel.text = [NSString stringWithFormat:@"%.02f", self.player.duration - currentTime]; 194 | } 195 | 196 | #pragma mark - Timer 197 | - (void)startTimer 198 | { 199 | self.timer = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(timerFired:) userInfo:nil repeats:YES]; 200 | } 201 | 202 | - (void)timerFired:(NSTimer*)timer 203 | { 204 | [self updateDisplay]; 205 | } 206 | 207 | - (void)stopTimer 208 | { 209 | [self.timer invalidate]; 210 | self.timer = nil; 211 | [self updateDisplay]; 212 | } 213 | 214 | #pragma mark - IDZAudioPlayerDelegate 215 | - (void)audioPlayerDidFinishPlaying:(id)player successfully:(BOOL)flag 216 | { 217 | NSLog(@"%s successfully=%@", __PRETTY_FUNCTION__, flag ? @"YES" : @"NO"); 218 | [self stopTimer]; 219 | [self updateDisplay]; 220 | } 221 | 222 | - (void)audioPlayerDecodeErrorDidOccur:(id)player error:(NSError *)error 223 | { 224 | NSLog(@"%s error=%@", __PRETTY_FUNCTION__, error); 225 | [self stopTimer]; 226 | [self updateDisplay]; 227 | } 228 | 229 | @end 230 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZOggVorbisFileDecoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // IDZOggVorbisFileDecoder.h 3 | // IDZAudioDecoder 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | #import 26 | #import "IDZAudioDecoder.h" 27 | /** 28 | * @brief An Ogg Vorbis file decompressor conforming to IDZAudioDecoder. 29 | */ 30 | @interface IDZOggVorbisFileDecoder : NSObject 31 | /** 32 | * @brief Initializes the receiver with the contents of a file URL. 33 | * 34 | * @param url a file URL 35 | * @param error 36 | * @return a pointer to the receiver or nil if an error occurs 37 | */ 38 | - (id)initWithContentsOfURL:(NSURL*)url error:(NSError**)error; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZOggVorbisFileDecoder.mm: -------------------------------------------------------------------------------- 1 | // 2 | // IDZOggVorbisFileDecoder.m 3 | // IDZAudioDecoder 4 | // 5 | // Copyright (c) 2013 iOSDeveloperZone.com 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | #import 26 | 27 | #import "IDZOggVorbisFileDecoder.h" 28 | #import "IDZTrace.h" 29 | 30 | #define IDZ_BITS_PER_BYTE 8 31 | #define IDZ_BYTES_TO_BITS(bytes) ((bytes) * IDZ_BITS_PER_BYTE) 32 | #define IDZ_OGG_VORBIS_WORDSIZE 2 33 | 34 | /** 35 | * @brief IDZOggVorbisFileDecoder private internals. 36 | */ 37 | @interface IDZOggVorbisFileDecoder () 38 | { 39 | @private 40 | FILE* mpFile; 41 | OggVorbis_File mOggVorbisFile; 42 | } 43 | 44 | @end 45 | 46 | 47 | @implementation IDZOggVorbisFileDecoder 48 | @synthesize dataFormat = mDataFormat; 49 | 50 | - (id)initWithContentsOfURL:(NSURL*)url error:(NSError *__autoreleasing *)error 51 | { 52 | NSParameterAssert([url isFileURL]); 53 | if(self = [super init]) 54 | { 55 | NSString* path = [url path]; 56 | mpFile = fopen([path UTF8String], "r"); 57 | NSAssert(mpFile, @"fopen succeeded."); 58 | int iReturn = ov_open_callbacks(mpFile, &mOggVorbisFile, NULL, 0, OV_CALLBACKS_NOCLOSE); 59 | NSAssert(iReturn >= 0, @"ov_open_callbacks succeeded."); 60 | vorbis_info* pInfo = ov_info(&mOggVorbisFile, -1); 61 | int bytesPerChannel = IDZ_OGG_VORBIS_WORDSIZE; 62 | FillOutASBDForLPCM(mDataFormat, 63 | (Float64)pInfo->rate, // sample rate (fps) 64 | (UInt32)pInfo->channels, // channels per frame 65 | (UInt32)IDZ_BYTES_TO_BITS(bytesPerChannel), // valid bits per channel 66 | (UInt32)IDZ_BYTES_TO_BITS(bytesPerChannel), // total bits per channel 67 | false, // isFloat 68 | false); // isBigEndian 69 | 70 | } 71 | return self; 72 | } 73 | 74 | - (void)dealloc 75 | { 76 | ov_clear(&mOggVorbisFile); 77 | if(mpFile) 78 | { 79 | fclose(mpFile); 80 | mpFile = NULL; 81 | } 82 | } 83 | 84 | - (BOOL)readBuffer:(AudioQueueBufferRef)pBuffer 85 | { 86 | IDZTrace(); 87 | int bigEndian = 0; 88 | int wordSize = IDZ_OGG_VORBIS_WORDSIZE; 89 | int signedSamples = 1; 90 | int currentSection = -1; 91 | 92 | /* See: http://xiph.org/vorbis/doc/vorbisfile/ov_read.html */ 93 | UInt32 nTotalBytesRead = 0; 94 | long nBytesRead = 0; 95 | do 96 | { 97 | nBytesRead = ov_read(&mOggVorbisFile, 98 | (char*)pBuffer->mAudioData + nTotalBytesRead, 99 | (int)(pBuffer->mAudioDataBytesCapacity - nTotalBytesRead), 100 | bigEndian, wordSize, 101 | signedSamples, ¤tSection); 102 | if(nBytesRead <= 0) 103 | break; 104 | nTotalBytesRead += nBytesRead; 105 | } while(nTotalBytesRead < pBuffer->mAudioDataBytesCapacity); 106 | if(nTotalBytesRead == 0) 107 | return NO; 108 | if(nBytesRead < 0) 109 | { 110 | return NO; 111 | } 112 | pBuffer->mAudioDataByteSize = nTotalBytesRead; 113 | pBuffer->mPacketDescriptionCount = 0; 114 | return YES; 115 | 116 | } 117 | 118 | - (BOOL)seekToTime:(NSTimeInterval)time error:(NSError**)error 119 | { 120 | /* 121 | * Possible errors are OV_ENOSEEK, OV_EINVAL, OV_EREAD, OV_EFAULT, OV_EBADLINK 122 | * See: http://xiph.org/vorbis/doc/vorbisfile/ov_time_seek.html 123 | */ 124 | int iResult = ov_time_seek(&mOggVorbisFile, time); 125 | NSLog(@"ov_time_seek(%g) = %d", time, iResult); 126 | return (iResult == 0); 127 | } 128 | 129 | // MARK: - Dynamic Properties 130 | - (NSTimeInterval)duration 131 | { 132 | double duration = ov_time_total(&mOggVorbisFile, -1); 133 | return (NSTimeInterval)duration; 134 | } 135 | 136 | @end 137 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/IDZTrace.h: -------------------------------------------------------------------------------- 1 | // 2 | // IDZTrace.h 3 | // IDZAudioPlayerDevelopment 4 | // 5 | // Created by idz on 2/13/13. 6 | // Copyright (c) 2013 idz. All rights reserved. 7 | // 8 | 9 | #ifndef IDZAudioPlayerDevelopment_IDZTrace_h 10 | #define IDZAudioPlayerDevelopment_IDZTrace_h 11 | 12 | #define IDZTrace() NSLog(@"%s", __PRETTY_FUNCTION__) 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/Rondo_Alla_Turka.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosdevzone/IDZAQAudioPlayer/fafe2e6a4f02cfd38d1deb85814d1b7e0d7ebc68/IDZAQAudioPlayer/Rondo_Alla_Turka.ogg -------------------------------------------------------------------------------- /IDZAQAudioPlayer/en.lproj/IDZAQAudioPlayerViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1536 5 | 12A269 6 | 2835 7 | 1187 8 | 624.00 9 | 10 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 11 | 1919 12 | 13 | 14 | IBProxyObject 15 | IBUIView 16 | 17 | 18 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 19 | 20 | 21 | PluginDependencyRecalculationVersion 22 | 23 | 24 | 25 | 26 | IBFilesOwner 27 | IBCocoaTouchFramework 28 | 29 | 30 | IBFirstResponder 31 | IBCocoaTouchFramework 32 | 33 | 34 | 35 | 274 36 | {{0, 20}, {320, 548}} 37 | 38 | 39 | 40 | 41 | 3 42 | MC43NQA 43 | 44 | 2 45 | 46 | 47 | NO 48 | 49 | 50 | IBUIScreenMetrics 51 | 52 | YES 53 | 54 | 55 | 56 | 57 | 58 | {320, 568} 59 | {568, 320} 60 | 61 | 62 | IBCocoaTouchFramework 63 | Retina 4 Full Screen 64 | 2 65 | 66 | IBCocoaTouchFramework 67 | 68 | 69 | 70 | 71 | 72 | 73 | view 74 | 75 | 76 | 77 | 7 78 | 79 | 80 | 81 | 82 | 83 | 0 84 | 85 | 86 | 87 | 88 | 89 | -1 90 | 91 | 92 | File's Owner 93 | 94 | 95 | -2 96 | 97 | 98 | 99 | 100 | 6 101 | 102 | 103 | 104 | 105 | 106 | 107 | IDZAQAudioPlayerViewController 108 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 109 | UIResponder 110 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 111 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 112 | 113 | 114 | 115 | 116 | 117 | 7 118 | 119 | 120 | 121 | 122 | IDZAQAudioPlayerViewController 123 | UIViewController 124 | 125 | IBProjectSource 126 | ./Classes/IDZAQAudioPlayerViewController.h 127 | 128 | 129 | 130 | 131 | 0 132 | IBCocoaTouchFramework 133 | YES 134 | 3 135 | YES 136 | 1919 137 | 138 | 139 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/en.lproj/IDZAudioPlayerViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1536 5 | 12D78 6 | 3084 7 | 1187.37 8 | 626.00 9 | 10 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 11 | 2083 12 | 13 | 14 | IBProxyObject 15 | IBUIButton 16 | IBUILabel 17 | IBUISlider 18 | IBUIView 19 | 20 | 21 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 22 | 23 | 24 | PluginDependencyRecalculationVersion 25 | 26 | 27 | 28 | 29 | IBFilesOwner 30 | IBCocoaTouchFramework 31 | 32 | 33 | IBFirstResponder 34 | IBCocoaTouchFramework 35 | 36 | 37 | 38 | 274 39 | 40 | 41 | 42 | 292 43 | {{20, 403}, {72, 37}} 44 | 45 | 46 | _NS:9 47 | NO 48 | IBCocoaTouchFramework 49 | 0 50 | 0 51 | 1 52 | Play 53 | 54 | 3 55 | MQA 56 | 57 | 58 | 1 59 | MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA 60 | 61 | 62 | 3 63 | MC41AA 64 | 65 | 66 | 2 67 | 15 68 | 69 | 70 | Helvetica-Bold 71 | 15 72 | 16 73 | 74 | 75 | 76 | 77 | 292 78 | {{124, 403}, {72, 37}} 79 | 80 | 81 | _NS:9 82 | NO 83 | IBCocoaTouchFramework 84 | 0 85 | 0 86 | 1 87 | Pause 88 | 89 | 90 | 1 91 | MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 292 100 | {{228, 403}, {72, 37}} 101 | 102 | _NS:9 103 | NO 104 | IBCocoaTouchFramework 105 | 0 106 | 0 107 | 1 108 | Stop 109 | 110 | 111 | 1 112 | MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 292 121 | {{69, 364}, {183, 23}} 122 | 123 | 124 | _NS:9 125 | NO 126 | IBCocoaTouchFramework 127 | 0 128 | 0 129 | 0.5 130 | 131 | 132 | 133 | 292 134 | {{20, 364}, {43, 21}} 135 | 136 | 137 | _NS:9 138 | NO 139 | YES 140 | 7 141 | NO 142 | IBCocoaTouchFramework 143 | 00.00 144 | 145 | 1 146 | MCAwIDAAA 147 | darkTextColor 148 | 149 | 150 | 0 151 | 152 | 1 153 | 17 154 | 155 | 156 | Helvetica 157 | 17 158 | 16 159 | 160 | NO 161 | 162 | 163 | 164 | 292 165 | {{258, 364}, {43, 21}} 166 | 167 | 168 | _NS:9 169 | NO 170 | YES 171 | 7 172 | NO 173 | IBCocoaTouchFramework 174 | 00.00 175 | 176 | 177 | 0 178 | 179 | 180 | NO 181 | 182 | 183 | 184 | 292 185 | {{21, 54}, {91, 21}} 186 | 187 | 188 | _NS:9 189 | NO 190 | YES 191 | 7 192 | NO 193 | IBCocoaTouchFramework 194 | currentTime 195 | 196 | 197 | 0 198 | 199 | 200 | NO 201 | 202 | 203 | 204 | 292 205 | {{21, 83}, {144, 21}} 206 | 207 | 208 | _NS:9 209 | NO 210 | YES 211 | 7 212 | NO 213 | IBCocoaTouchFramework 214 | deviceCurrentTime 215 | 216 | 217 | 0 218 | 219 | 220 | NO 221 | 222 | 223 | 224 | 292 225 | {{20, 112}, {62, 21}} 226 | 227 | 228 | _NS:9 229 | NO 230 | YES 231 | 7 232 | NO 233 | IBCocoaTouchFramework 234 | duration 235 | 236 | 237 | 0 238 | 239 | 240 | NO 241 | 242 | 243 | 244 | 292 245 | {{21, 141}, {148, 21}} 246 | 247 | 248 | _NS:9 249 | NO 250 | YES 251 | 7 252 | NO 253 | IBCocoaTouchFramework 254 | numberOfChannels 255 | 256 | 257 | 0 258 | 259 | 260 | NO 261 | 262 | 263 | 264 | 292 265 | {{20, 170}, {54, 21}} 266 | 267 | 268 | _NS:9 269 | NO 270 | YES 271 | 7 272 | NO 273 | IBCocoaTouchFramework 274 | playing 275 | 276 | 277 | 0 278 | 279 | 280 | NO 281 | 282 | 283 | 284 | 292 285 | {{228, 54}, {42, 21}} 286 | 287 | 288 | _NS:9 289 | NO 290 | YES 291 | 7 292 | NO 293 | IBCocoaTouchFramework 294 | IA 295 | 296 | 297 | 0 298 | 299 | 300 | NO 301 | 302 | 303 | 304 | 292 305 | {{228, 76}, {42, 35}} 306 | 307 | 308 | _NS:9 309 | NO 310 | YES 311 | 7 312 | NO 313 | IBCocoaTouchFramework 314 | IA 315 | 316 | 317 | 0 318 | 319 | 320 | NO 321 | 322 | 323 | 324 | 292 325 | {{228, 105}, {42, 35}} 326 | 327 | 328 | _NS:9 329 | NO 330 | YES 331 | 7 332 | NO 333 | IBCocoaTouchFramework 334 | IA 335 | 336 | 337 | 0 338 | 339 | 340 | NO 341 | 342 | 343 | 344 | 292 345 | {{228, 134}, {42, 35}} 346 | 347 | 348 | _NS:9 349 | NO 350 | YES 351 | 7 352 | NO 353 | IBCocoaTouchFramework 354 | IA 355 | 356 | 357 | 0 358 | 359 | 360 | NO 361 | 362 | 363 | 364 | 292 365 | {{228, 164}, {42, 35}} 366 | 367 | 368 | _NS:9 369 | NO 370 | YES 371 | 7 372 | NO 373 | IBCocoaTouchFramework 374 | IA 375 | 376 | 377 | 0 378 | 379 | 380 | NO 381 | 382 | 383 | {{0, 20}, {320, 460}} 384 | 385 | 386 | 3 387 | MC43NQA 388 | 389 | 2 390 | 391 | 392 | NO 393 | 394 | IBCocoaTouchFramework 395 | 396 | 397 | 398 | 399 | 400 | 401 | view 402 | 403 | 404 | 405 | 7 406 | 407 | 408 | 409 | pauseButton 410 | 411 | 412 | 413 | 11 414 | 415 | 416 | 417 | playButton 418 | 419 | 420 | 421 | 12 422 | 423 | 424 | 425 | stopButton 426 | 427 | 428 | 429 | 13 430 | 431 | 432 | 433 | currentTimeLabel 434 | 435 | 436 | 437 | 30 438 | 439 | 440 | 441 | deviceCurrentTimeLabel 442 | 443 | 444 | 445 | 31 446 | 447 | 448 | 449 | durationLabel 450 | 451 | 452 | 453 | 32 454 | 455 | 456 | 457 | elapsedTimeLabel 458 | 459 | 460 | 461 | 35 462 | 463 | 464 | 465 | remainingTimeLabel 466 | 467 | 468 | 469 | 36 470 | 471 | 472 | 473 | currentTimeSlider 474 | 475 | 476 | 477 | 37 478 | 479 | 480 | 481 | numberOfChannelsLabel 482 | 483 | 484 | 485 | 40 486 | 487 | 488 | 489 | playingLabel 490 | 491 | 492 | 493 | 41 494 | 495 | 496 | 497 | play: 498 | 499 | 500 | 7 501 | 502 | 14 503 | 504 | 505 | 506 | pause: 507 | 508 | 509 | 7 510 | 511 | 15 512 | 513 | 514 | 515 | stop: 516 | 517 | 518 | 7 519 | 520 | 16 521 | 522 | 523 | 524 | currentTimeSliderValueChanged: 525 | 526 | 527 | 13 528 | 529 | 38 530 | 531 | 532 | 533 | currentTimeSliderTouchUpInside: 534 | 535 | 536 | 7 537 | 538 | 42 539 | 540 | 541 | 542 | 543 | 544 | 0 545 | 546 | 547 | 548 | 549 | 550 | -1 551 | 552 | 553 | File's Owner 554 | 555 | 556 | -2 557 | 558 | 559 | 560 | 561 | 6 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 8 585 | 586 | 587 | 588 | 589 | 9 590 | 591 | 592 | 593 | 594 | 10 595 | 596 | 597 | 598 | 599 | 17 600 | 601 | 602 | 603 | 604 | 18 605 | 606 | 607 | 608 | 609 | 19 610 | 611 | 612 | 613 | 614 | 20 615 | 616 | 617 | 618 | 619 | 21 620 | 621 | 622 | 623 | 624 | 22 625 | 626 | 627 | 628 | 629 | 23 630 | 631 | 632 | 633 | 634 | 24 635 | 636 | 637 | 638 | 639 | 25 640 | 641 | 642 | 643 | 644 | 26 645 | 646 | 647 | 648 | 649 | 27 650 | 651 | 652 | 653 | 654 | 28 655 | 656 | 657 | 658 | 659 | 29 660 | 661 | 662 | 663 | 664 | 665 | 666 | IDZAudioPlayerViewController 667 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 668 | UIResponder 669 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 670 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 671 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 672 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 673 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 674 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 675 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 676 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 677 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 678 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 679 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 680 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 681 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 682 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 683 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 684 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 685 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 686 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 687 | 688 | 689 | 690 | 691 | 692 | 42 693 | 694 | 695 | 0 696 | IBCocoaTouchFramework 697 | 698 | com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS 699 | 700 | 701 | YES 702 | 3 703 | 2083 704 | 705 | 706 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /IDZAQAudioPlayer/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // IDZAQAudioPlayer 4 | // 5 | // Created by idz on 4/5/13. 6 | // Copyright (c) 2013 iOSDeveloperZone.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "IDZAQAudioPlayerAppDelegate.h" 12 | 13 | int main(int argc, char *argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([IDZAQAudioPlayerAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | IDZAQAudioPlayer 2 | ================ 3 | 4 | An easy to use audio player that uses Audio Queues. 5 | 6 | This is unfinished source code for an upcoming tutorial on my blog. Please note the following: 7 | * Seeking is only partially implemented 8 | * Error handling is incomplete or non-existent. 9 | 10 | Structure 11 | --------- 12 | 13 | The protocol IDZAudioDecoder defines the methods and properties that are required to be an IDZAudioDecoder. 14 | The class IDZOggVorbisFileDecoder is an audio decoder that conforms to the IDZAudioDecoder protocol. 15 | 16 | The class IDZAQAudioPlayer can play, using Audio Queues, the decoded audio from an IDZAudioDecoder. 17 | 18 | The protocol IDZAudioPlayer defines the methods and properties that are required to be an IDZAudioPlayer. These are 19 | designed to be as close as possible to the methods provided by Apple's AVAudioPlayer class. 20 | 21 | The class IDZAudioPlayerViewController knows how to control an audio player that conforms to the IDZAudioPlayer protocol, 22 | so, for example, you could trivially subclass AVAudioPlayer, adopting the IDZAudioPlayer protocol and use the same view 23 | controller to control it. The IDZAudioPlayerViewController is not intended to be pretty or a great example of UI design; 24 | it is intended soley as a demonstration and test interface for IDZAudioPlayers!!! 25 | 26 | Licenses 27 | ======== 28 | 29 | iOSDeveloperZone.com Code 30 | ------------------------- 31 | 32 | All the iOSDeveloperZone.com code in this repository is covered by an MIT license. This license is reproduced at the top of each source file. 33 | 34 | 35 | Xiph.org Foundation Code 36 | ------------------------ 37 | 38 | This project uses libogg and libvorbis: 39 | 40 | Copyright (c) 2002-2008 Xiph.org Foundation 41 | 42 | Redistribution and use in source and binary forms, with or without 43 | modification, are permitted provided that the following conditions 44 | are met: 45 | 46 | - Redistributions of source code must retain the above copyright 47 | notice, this list of conditions and the following disclaimer. 48 | 49 | - Redistributions in binary form must reproduce the above copyright 50 | notice, this list of conditions and the following disclaimer in the 51 | documentation and/or other materials provided with the distribution. 52 | 53 | - Neither the name of the Xiph.org Foundation nor the names of its 54 | contributors may be used to endorse or promote products derived from 55 | this software without specific prior written permission. 56 | 57 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 58 | ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 59 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 60 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 61 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 62 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 63 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 64 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 65 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 66 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 67 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 68 | 69 | Wikipedia Commons 70 | ----------------- 71 | 72 | This repository contains an excerpt of http://commons.wikimedia.org/wiki/File:Rondo_Alla_Turka.ogg 73 | 74 | 75 | -------------------------------------------------------------------------------- /travis_build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xcodebuild -scheme IDZAQAudioPlayer -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.2' 3 | --------------------------------------------------------------------------------