Changeset 20871
- Timestamp:
- 09/26/07 14:49:39 (1 year ago)
- Files:
-
- juggler/trunk/modules/sonix/ChangeLog (modified) (1 diff)
- juggler/trunk/modules/sonix/VERSION (modified) (1 diff)
- juggler/trunk/modules/sonix/snx/sonix.cpp (modified) (2 diffs)
- juggler/trunk/modules/sonix/snx/sonix.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/sonix/ChangeLog
r20865 r20871 1 1 DATE AUTHOR CHANGE 2 2 ----------- ----------- ------------------------------------------------------- 3 Sep-26-2007 patrick Added snx::sonix::shutdownAPI() so that user-level code 4 can control when the sound API is closed rather than 5 having it happen only in the snx::sonix destructor. 6 NEW VERSION: 1.3.6 3 7 Sep-25-2007 patrick Changed method signatures to remove passing of 4 8 fundamental types by const reference. juggler/trunk/modules/sonix/VERSION
r20865 r20871 1 1.3.6-0 @09/26/2007 19:50:00 UTC@ 1 2 1.3.5-0 @09/25/2007 21:35:00 UTC@ 2 3 1.3.4-0 @09/25/2007 21:30:00 UTC@ juggler/trunk/modules/sonix/snx/sonix.cpp
r20865 r20871 58 58 sonix::~sonix() 59 59 { 60 // release the implementation 61 if (mImplementation != NULL) 62 { 63 // unload all sound data 64 mImplementation->unbindAll(); 65 66 // shutdown old api if exists 67 mImplementation->shutdownAPI(); 68 delete mImplementation; 69 mImplementation = NULL; 60 if ( NULL != mImplementation ) 61 { 62 shutdownAPI(); 70 63 } 71 64 } … … 230 223 } 231 224 225 // Destructor. 226 void sonix::shutdownAPI() 227 { 228 // release the implementation 229 if ( mImplementation != NULL ) 230 { 231 // unload all sound data 232 mImplementation->unbindAll(); 233 234 // shutdown old api if exists 235 mImplementation->shutdownAPI(); 236 delete mImplementation; 237 mImplementation = NULL; 238 } 239 } 240 232 241 void sonix::configure(const snx::SoundAPIInfo& sai) 233 242 { juggler/trunk/modules/sonix/snx/sonix.h
r20865 r20871 243 243 244 244 /** 245 * If there is a sound API currently active, its sounds are unbound, and 246 * it is told to shut itself down. 247 * 248 * @post \c mImplementation is NULL. 249 * 250 * @since 1.3.6 251 */ 252 void shutdownAPI(); 253 254 /** 245 255 * Configures/reconfigures the sound API global settings. 246 256 *
