Changeset 1339

Show
Ignore:
Timestamp:
02/15/08 02:50:33 (6 months ago)
Author:
rossb
Message:

resolved ticket #4 deleted V19-devel-readme.txt and moved relevant information from it into doxygen comments. improved doxygen documentation. wrapped config flags in pa_trace.h with #ifndef to allow them to be overridden using compiler flags.

Location:
portaudio/branches/v19-devel
Files:
1 removed
22 modified

Legend:

Unmodified
Added
Removed
  • portaudio/branches/v19-devel/doc/src/srcguide.dox

    r1097 r1339  
    11/* 
    22 define all of the file groups used to structure the documentation. 
     3*/ 
     4 
     5/** 
     6 @defgroup public_header Public API definitions for users of PortAudio  
    37*/ 
    48 
     
    2024 
    2125/** 
    22  @defgroup hostaip_src Source code for specific Host APIs 
     26 @defgroup hostapi_src Source code for specific Host APIs 
    2327*/ 
    2428 
     
    3034 @page srcguide A guide to the PortAudio sources. 
    3135 
     36 - \ref public_header 
    3237 - \ref common_src 
    3338 - \ref win_src 
    3439 - \ref unix_src 
    3540 - \ref macosx_src 
    36  - \ref hostaip_src 
     41 - \ref hostapi_src 
    3742 - \ref test_src 
    3843*/ 
  • portaudio/branches/v19-devel/doc/utils/checkfiledocs.py

    r1100 r1339  
    66paHtmlDocDirectory = os.path.join( paRootDirectory, "doc", "html" ) 
    77 
    8 ##this script assumes that html doxygen documentation has been generated 
     8## Script to check documentation status 
     9## this script assumes that html doxygen documentation has been generated 
    910## 
    10 ##it then walks the entire portaudio source tree and check that 
    11 ##- every source file (.c,.h,.cpp) has a doxygen comment block containing 
     11## it then walks the entire portaudio source tree and check that 
     12## - every source file (.c,.h,.cpp) has a doxygen comment block containing 
    1213##      - a @file directive 
    1314##      - a @brief directive 
    1415##      - a @ingroup directive 
    15 ##- it also checks that a corresponding html documentation file has been generated. 
     16## - it also checks that a corresponding html documentation file has been generated. 
    1617## 
    17 ##This can be used as a first-level check to make sure the documentation is in order. 
     18## This can be used as a first-level check to make sure the documentation is in order. 
    1819## 
    19 ##The idea is to get a list of which files are missing doxygen documentation. 
     20## The idea is to get a list of which files are missing doxygen documentation. 
    2021 
    2122 
  • portaudio/branches/v19-devel/src/common/pa_allocation.h

    r1097 r1339  
    77 * 
    88 * Based on the Open Source API proposed by Ross Bencina 
    9  * Copyright (c) 1999-2002 Ross Bencina, Phil Burk 
     9 * Copyright (c) 1999-2008 Ross Bencina, Phil Burk 
    1010 * 
    1111 * Permission is hereby granted, free of charge, to any person obtaining 
     
    4444 
    4545 @brief Allocation Group prototypes. An Allocation Group makes it easy to 
    46  allocate multiple blocks of memory and free them all simultanously. 
     46 allocate multiple blocks of memory and free them all at once. 
    4747  
    4848 An allocation group is useful for keeping track of multiple blocks 
    4949 of memory which are allocated at the same time (such as during initialization) 
    5050 and need to be deallocated at the same time. The allocation group maintains 
    51  a list of allocated blocks, and can deallocate them all simultaneously which 
     51 a list of allocated blocks, and can free all allocations at once. This 
    5252 can be usefull for cleaning up after a partially initialized object fails. 
    5353 
  • portaudio/branches/v19-devel/src/common/pa_converters.c

    r1097 r1339  
    4040 @ingroup common_src 
    4141 
    42  @brief Conversion functions implementations. 
     42 @brief Conversion function implementations. 
    4343  
    4444 If the C9x function lrintf() is available, define PA_USE_C99_LRINTF to use it 
  • portaudio/branches/v19-devel/src/common/pa_front.c

    r1325 r1339  
    55 * 
    66 * Based on the Open Source API proposed by Ross Bencina 
    7  * Copyright (c) 1999-2002 Ross Bencina, Phil Burk 
     7 * Copyright (c) 1999-2008 Ross Bencina, Phil Burk 
    88 * 
    99 * Permission is hereby granted, free of charge, to any person obtaining 
     
    4141 @ingroup common_src 
    4242 
    43  @brief Implements public PortAudio API, checks some errors, forwards to 
    44  host API implementations. 
     43 @brief Implements PortAudio API functions defined in portaudio.h, checks  
     44 some errors, delegates platform-specific behavior to host API implementations. 
    4545  
    46  Implements the functions defined in the PortAudio API, checks for 
    47  some parameter and state inconsistencies and forwards API requests to 
    48  specific Host API implementations (via the interface declared in 
    49  pa_hostapi.h), and Streams (via the interface declared in pa_stream.h). 
    50  
    51  This file handles initialization and termination of Host API 
    52  implementations via initializers stored in the paHostApiInitializers 
    53  global variable. 
     46 Implements the functions defined in the PortAudio API (portaudio.h),  
     47 validates some parameters and checks for state inconsistencies before  
     48 forwarding API requests to specific Host API implementations (via the  
     49 interface declared in pa_hostapi.h), and Streams (via the interface  
     50 declared in pa_stream.h). 
     51 
     52 This file manages initialization and termination of Host API 
     53 implementations via initializer functions stored in the paHostApiInitializers 
     54 global array (usually defined in an os-specific pa_[os]_hostapis.c file). 
     55 
     56 This file maintains a list of all open streams and closes them at Pa_Terminate(). 
    5457 
    5558 Some utility functions declared in pa_util.h are implemented in this file. 
  • portaudio/branches/v19-devel/src/common/pa_hostapi.h

    r1097 r1339  
    77 * 
    88 * Based on the Open Source API proposed by Ross Bencina 
    9  * Copyright (c) 1999-2002 Ross Bencina, Phil Burk 
     9 * Copyright (c) 1999-2008 Ross Bencina, Phil Burk 
    1010 * 
    1111 * Permission is hereby granted, free of charge, to any person obtaining 
     
    4343 @ingroup common_src 
    4444 
    45  @brief Interface used by pa_front to virtualize functions which operate on 
    46  host APIs. 
     45 @brief Interfaces and representation structures used by pa_front.c  
     46 to manage and communicate with host API implementations. 
    4747*/ 
    4848 
     
    225225 host API. 
    226226  
     227 This function should only return an error other than paNoError if it encounters  
     228 an unexpected and fatal error (memory allocation error for example). In general,  
     229 there may be conditions under which it returns a NULL interface pointer and also  
     230 returns paNoError. For example, if the ASIO implementation detects that ASIO is  
     231 not installed, it should return a NULL interface, and paNoError. 
     232 
    227233 @see paHostApiInitializers 
    228234*/ 
     
    231237 
    232238/** paHostApiInitializers is a NULL-terminated array of host API initialization 
    233  functions. These functions are called by pa_front to initialize the host APIs 
     239 functions. These functions are called by pa_front.c to initialize the host APIs 
    234240 when the client calls Pa_Initialize(). 
    235241 
  • portaudio/branches/v19-devel/src/common/pa_skeleton.c

    r1097 r1339  
    4444 @brief Skeleton implementation of support for a host API. 
    4545 
    46  @note This file is provided as a starting point for implementing support for 
    47  a new host API. IMPLEMENT ME comments are used to indicate functionality 
     46 This file is provided as a starting point for implementing support for 
     47 a new host API. It provides examples of how the common code can be used. 
     48 
     49 @note IMPLEMENT ME comments are used to indicate functionality 
    4850 which much be customised for each implementation. 
    4951*/ 
  • portaudio/branches/v19-devel/src/common/pa_stream.c

    r1097 r1339  
    22 * $Id$ 
    33 * Portable Audio I/O Library 
    4  *  
     4 * stream interface 
    55 * 
    66 * Based on the Open Source API proposed by Ross Bencina 
    7  * Copyright (c) 2002 Ross Bencina 
     7 * Copyright (c) 2008 Ross Bencina 
    88 * 
    99 * Permission is hereby granted, free of charge, to any person obtaining 
     
    4141 @ingroup common_src 
    4242 
    43  @brief Interface used by pa_front to virtualize functions which operate on 
    44  streams. 
     43 @brief Stream interfaces, representation structures and helper functions 
     44 used to interface between pa_front.c host API implementations. 
    4545*/ 
    4646 
  • portaudio/branches/v19-devel/src/common/pa_stream.h

    r1097 r1339  
    77 * 
    88 * Based on the Open Source API proposed by Ross Bencina 
    9  * Copyright (c) 1999-2002 Ross Bencina, Phil Burk 
     9 * Copyright (c) 1999-2008 Ross Bencina, Phil Burk 
    1010 * 
    1111 * Permission is hereby granted, free of charge, to any person obtaining 
     
    4343 @ingroup common_src 
    4444 
    45  @brief Interface used by pa_front to virtualize functions which operate on 
    46  streams. 
     45 @brief Stream interfaces, representation structures and helper functions 
     46 used to interface between pa_front.c host API implementations. 
    4747*/ 
    4848 
  • portaudio/branches/v19-devel/src/common/pa_trace.c

    r1097 r1339  
    4141 @ingroup common_src 
    4242 
    43  @brief Event trace mechanism for debugging. 
     43 @brief Real-time safe event trace logging facility for debugging. 
    4444*/ 
    4545 
  • portaudio/branches/v19-devel/src/common/pa_trace.h

    r1097 r1339  
    4343 @ingroup common_src 
    4444 
    45  @brief Event trace mechanism for debugging. 
     45 @brief Real-time safe event trace logging facility for debugging. 
    4646 
    47  Allows data to be written to the buffer at interrupt time and dumped later. 
     47 Allows data to be logged to a fixed size trace buffer in a real-time 
     48 execution context (such as at interrupt time). Each log entry consists  
     49 of a message comprising a string pointer and an int.  The trace buffer  
     50 may be dumped to stdout later. 
     51 
     52 This facility is only active if PA_TRACE_REALTIME_EVENTS is set to 1, 
     53 otherwise the trace functions expand to no-ops. 
     54 
     55 @fn PaUtil_ResetTraceMessages 
     56 @brief Clear the trace buffer. 
     57 
     58 @fn PaUtil_AddTraceMessage 
     59 @brief Add a message to the trace buffer. A message consists of string and an int. 
     60 @param msg The string pointer must remain valid until PaUtil_DumpTraceMessages  
     61    is called. As a result, usually only string literals should be passed as  
     62    the msg parameter. 
     63 
     64 @fn PaUtil_DumpTraceMessages 
     65 @brief Print all messages in the trace buffer to stdout and clear the trace buffer. 
    4866*/ 
    4967 
     68#ifndef PA_TRACE_REALTIME_EVENTS 
     69#define PA_TRACE_REALTIME_EVENTS     (0)   /**< Set to 1 to enable logging using the trace functions defined below */ 
     70#endif 
    5071 
    51 #define PA_TRACE_REALTIME_EVENTS     (0)   /* Keep log of various real-time events. */ 
    52 #define PA_MAX_TRACE_RECORDS      (2048) 
     72#ifndef PA_MAX_TRACE_RECORDS 
     73#define PA_MAX_TRACE_RECORDS      (2048)   /**< Maximum number of records stored in trace buffer */    
     74#endif 
    5375 
    5476#ifdef __cplusplus 
  • portaudio/branches/v19-devel/src/common/pa_util.h

    r1229 r1339  
    77 * 
    88 * Based on the Open Source API proposed by Ross Bencina 
    9  * Copyright (c) 1999-2002 Ross Bencina, Phil Burk 
     9 * Copyright (c) 1999-2008 Ross Bencina, Phil Burk 
    1010 * 
    1111 * Permission is hereby granted, free of charge, to any person obtaining 
     
    4444 
    4545    @brief Prototypes for utility functions used by PortAudio implementations. 
     46 
     47    Some functions declared here are defined in pa_front.c while others 
     48    are implemented separately for each platform. 
    4649 
    4750    @todo Document and adhere to the alignment guarantees provided by 
  • portaudio/branches/v19-devel/src/hostapi/coreaudio/pa_mac_core_blocking.c

    r1311 r1339  
    5454/** 
    5555 @file 
    56  @ingroup hostaip_src 
     56 @ingroup hostapi_src 
    5757 
    5858 This file contains the implementation 
  • portaudio/branches/v19-devel/src/hostapi/coreaudio/pa_mac_core_blocking.h

    r1270 r1339  
    5454/** 
    5555 @file 
    56  @ingroup hostaip_src 
     56 @ingroup hostapi_src 
    5757*/ 
    5858 
  • portaudio/branches/v19-devel/src/hostapi/dsound/pa_win_ds.c

    r1335 r1339  
    3939 
    4040/** @file 
    41  @ingroup hostaip_src 
     41 @ingroup hostapi_src 
    4242 
    4343    @todo implement paInputOverflow callback status flag 
  • portaudio/branches/v19-devel/src/hostapi/dsound/pa_win_ds_dynlink.c

    r1268 r1339  
    4242/** 
    4343 @file 
    44  @ingroup hostaip_src 
     44 @ingroup hostapi_src 
    4545*/ 
    4646 
  • portaudio/branches/v19-devel/src/hostapi/dsound/pa_win_ds_dynlink.h

    r1280 r1339  
    4242/** 
    4343 @file 
    44  @ingroup hostaip_src 
     44 @ingroup hostapi_src 
    4545*/ 
    4646 
  • portaudio/branches/v19-devel/src/hostapi/wasapi/pa_win_wasapi.cpp

    r1242 r1339  
    3838 
    3939/** @file 
    40  @ingroup hostaip_src 
     40 @ingroup hostapi_src 
    4141 @brief WASAPI implementation of support for a host API. 
    4242 
  • portaudio/branches/v19-devel/src/hostapi/wdmks/pa_win_wdmks.c

    r1263 r1339  
    3939 
    4040/** @file 
    41  @ingroup hostaip_src 
     41 @ingroup hostapi_src 
    4242 @brief Portaudio WDM-KS host API. 
    4343 
  • portaudio/branches/v19-devel/src/hostapi/wmme/pa_win_wmme.c

    r1286 r1339  
    6363 
    6464/** @file 
    65         @ingroup hostaip_src 
     65        @ingroup hostapi_src 
     66 
     67    @brief Win32 host API implementation for the Windows MultiMedia Extensions (WMME) audio API. 
    6668 
    6769        @todo Fix buffer catch up code, can sometimes get stuck (perhaps fixed now, 
  • portaudio/branches/v19-devel/src/os/win/pa_win_hostapis.c

    r1097 r1339  
    44 * 
    55 * Based on the Open Source API proposed by Ross Bencina 
    6  * Copyright (c) 1999-2002 Ross Bencina, Phil Burk 
     6 * Copyright (c) 1999-2008 Ross Bencina, Phil Burk 
    77 * 
    88 * Permission is hereby granted, free of charge, to any person obtaining 
     
    4040 @ingroup win_src 
    4141 
    42     Win32 host API initialization function table. 
     42    @brief Win32 host API initialization function table. 
    4343 
    4444    @todo Consider using PA_USE_WMME etc instead of PA_NO_WMME. This is what 
  • portaudio/branches/v19-devel/src/os/win/pa_win_util.c

    r1197 r1339  
    55 * 
    66 * Based on the Open Source API proposed by Ross Bencina 
    7  * Copyright (c) 1999-2000 Ross Bencina 
     7 * Copyright (c) 1999-2008 Ross Bencina 
    88 * 
    99 * Permission is hereby granted, free of charge, to any person obtaining 
     
    4141 @ingroup win_src 
    4242 
    43  Win32 platform-specific support functions. 
     43 @brief Win32 implementation of platform-specific PaUtil support functions. 
    4444 
    4545    @todo Implement workaround for QueryPerformanceCounter() skipping forward