Menu

#2 mci.c include improved

open
nobody
None
5
2003-03-15
2003-03-15
No

see the patch for setup_win32.py for explanations.

Discussion

  • Chris Withers

    Chris Withers - 2003-05-16

    Logged In: YES
    user_id=24723

    You didn't attach the file here! ;-)

    I'm guessing this patch fixed the dependency on:

    C:\Programme\Python\include\Python.h

    ?

     
  • Vivian De Smedt

    Vivian De Smedt - 2003-05-17

    Logged In: YES
    user_id=511447

    You are right. You will find the the begining of my mci.c
    file at the end of this message.

    Sorry for messing everything up.

    Vivian.

    #include "mci.h"
    #include <windows.h>
    #include <mmsystem.h>

    #include <Python.h>

    /*
    * mci.c
    * micSendString implementation
    * Purpose:
    * Python extension module for reading in audio CD-ROM data
    in wi
    *
    * Written 6 Dez 1999 by Frank David <f.david@digitecgmbh.de>
    */

    static PyObject *mci_error;

    #define MCI_STRING_LEN 1000

    static PyObject *mci_mciSendString(PyObject *self, PyObject
    *args)
    {
    char resultStr[MCI_STRING_LEN+1];
    PyObject *pyStr = 0;
    if (!PyArg_ParseTuple(args, "O!", &PyString_Type, &pyStr))
    return NULL;
    // winows mciSendString see cdrom.py for Samples (or
    MSDN for complete doc)
    mciSendString( PyString_AsString(pyStr),
    resultStr,MCI_STRING_LEN,0);
    return Py_BuildValue("s", resultStr);
    }

     
  • Vivian De Smedt

    Vivian De Smedt - 2003-05-17

    mci.c

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.