home *** CD-ROM | disk | FTP | other *** search
- // Class TVocFile for CA-Clipper, use examples
- // (c) Antonio Linares, 1993
-
- //----------------------------------------------------------------------------//
-
- function Main( cFileName )
-
- local oVoc := TVocFile():Use( "boing.voc" ) // let's have some fun!
-
- if oVoc:lHardware
- oVoc:nVolVocL = 12
- oVoc:nVolVocR = 12
- oVoc:nDelay = 8
- oVoc:Play()
- endif
-
- oVoc:Use( "ManOver.voc" ) // quite wet...
- if oVoc:lHardware
- oVoc:nDelay = 12
- oVoc:Play()
- endif
-
- oVoc:Use( "MySound.voc" ) // let's create a VOC file
- if oVoc:lHardware
- Alert( "Press a key to start;and again to stop recording" )
- oVoc:nVolRec = 40
- oVoc:Rec()
- oVoc:Play() // let's listen it
- endif
-
- oVoc:Use()
-
- return
-
- //----------------------------------------------------------------------------//
-