g_mp3stream := nil;
mmr := acmStreamOpen(g_mp3stream, // open an ACM conversion stream
nil, // querying all ACM drivers
TWAVEFORMATEX(Pointer(mp3format)^), //TWAVEFORMATEX(Pointer(LongInt(@mp3format))), // converting from MP3
waveFormat^, &