[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] pygame.movie



Hi Pete,

>there is no audio support. i don't know if there ever will be.
>i just cannot get SMPEG to give me clean audio from the movies.
>(worse trouble than just trying to get MP3 audio from it).

My first SDL experience was trying to get SMPEG playing
some test MP3 files that I had.

It turned out that the click/ pops/ dropouts were due to
a global optimization problem with Visual C++. I submitted a 
patch to the SDL list but it wasn't accepted (I had failed to
checkout the latest CVS version which fixed one of the other
problems).

For a quick fix, put these lines in the file "audio/mpeglayer3.cpp"
which switches global optimization off around the problematic
function.

#pragma optimize( "g", off )

void layer3reorder_2(int version,int frequency,
                     REAL  in[SBLIMIT][SSLIMIT],
                     REAL out[SBLIMIT][SSLIMIT])
{
.....
}

#pragma optimize( "g", on )


Hope this is of some use to you,

cheers,
John.


____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org