public void dispose ( ) { // make sure the stream is stopped if ( _state != AL10 . AL_STOPPED ) { stop ( ) ; } // delete the source and buffers _source . delete ( ) ; for ( Buffer buffer : _buffers ) { buffer . delete ( ) ; } // remove from manager _soundmgr . removeStream ( this ) ; }
Releases the resources held by this stream and removes it from the manager .