Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

callbacks in XS code

by Jouke (Curate)
on Apr 29, 2004 at 06:22 UTC ( [id://349029]=perlquestion: print w/replies, xml ) Need Help??

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);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://349029]
Approved by mpeppler
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-24 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found