/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.21
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


Class name: Seekable extends: SwigProxy fields: swigCPtrForSeekable, swigCMemoryOwn {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    swigCMemoryOwn := newCMemoryOwn.
    swigCPtrForSeekable := newCPtr.
  ]

  Method [ getCPtrForSeekable
    ^swigCPtrForSeekable
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForSeekable ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_Seekable: swigCPtrForSeekable.
    ].
    swigCPtrForSeekable := 0.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForSeekable
  ]

  Method [ setMCurrentFrame: mCurrentFrame 
    CslNI cslNI_set_Seekable_mCurrentFrame: swigCPtrForSeekable with: mCurrentFrame
  ]

  Method [ getMCurrentFrame 
    ^CslNI cslNI_get_Seekable_mCurrentFrame: swigCPtrForSeekable 
  ]

  Method [ seekTo: position whence: whence 
    ^CslNI cslNI_Seekable_seekTo: swigCPtrForSeekable with: position with: whence
  ]

  Method [ reset 
    CslNI cslNI_Seekable_reset: swigCPtrForSeekable 
  ]

  Method [ duration 
    ^CslNI cslNI_Seekable_duration: swigCPtrForSeekable 
  ]

}
