Help for this page

Select Code to Download


  1. or download this
    HSTREAM BASSDEF(BASS_StreamCreate)(DWORD freq, DWORD chans, DWORD flag
    +s, void *proc, DWORD user);
    
  2. or download this
    typedef DWORD (CALLBACK STREAMPROC)(HSTREAM handle, void *buffer, DWOR
    +D length, DWORD user);
    
  3. or download this
    DWORD CALLBACK stream(HSTREAM handle, char *buffer, int length, DWORD 
    +user)
    {
    ...
    chan=BASS_StreamCreate(44100,2,0,(STREAMPROC*)stream,0);
    BASS_StreamPlay(chan,0,BASS_SAMPLE_LOOP);
    
  4. or download this
    #include "EXTERN.h"
    #include "perl.h"
    ...
    OUTPUT:
        RETVAL
    
  5. or download this
    static SV * streamproccallback = (SV*)NULL;
    
    ...
        LEAVE;
        return ret;
    }
    
  6. or download this
    #!/usr/bin/perl
    use strict;
    ...
    BASS_StreamPlay($stream,0,BASS_SAMPLE_LOOP);
    sleep(10);
    close(FH);