Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer.
WINAMP FOR THE BLIND CODE
Redistributions of source code must retain the above copyright * modification, are permitted provided that the following conditions * Redistribution and use in source and binary forms, with or without
* Copyright (c) 2005 Dmirty Alexandrov aka dimzon aka dimzon541 Copyright (c) 2004 Will Fisher All rights reserved. * this code based on "The Winamp Transcoder" plugin () PrintN("Example (same as default): aacplus.exe pcm hz 44100 ch 2 bits 0") PrintN("pcm (PCM stream, only one supported so far)")
Until ((in_used (automatic stdin and stdout)") written+WriteConsoleData(*bufferout,outsize) If WinampCreateAudio3 And WinampFinishAudio3 WinampPrepareToFinish.WinampPrepareToFinish=GetFunction(#DLL_Enc_AACPlus,"PrepareToFinish") WinampFinishAudio3.WinampFinishAudio3=GetFunction(#DLL_Enc_AACPlus,"FinishAudio3") WinampCreateAudio3.WinampCreateAudio3=GetFunction(#DLL_Enc_AACPlus,"CreateAudio3") If OpenLibrary(#DLL_Enc_AACPlus,"enc_aacplus.dll") (PS! This code is considered Public Domain, so share ease:) ) I got another project depending on getting this code to work,īut I'm also sure many other folks here would love this code working as well, as all Winamp5 enc_?.dll encoders work just the same so this is the solution to making a encoder tool that can use Winamps encoders as well. I can't see what I've done wrong, I must be blind (no offense to you blind folks). In the 2nd post below is a C++ source with almost the same implementation.
If the encoding works you should get a test.aac (since the wav file was really handled the result is garbage/noise but it's a quick way to test the encoder) Then just make a file with some content (doesn't matter what) and call it test.wav To test this just grab nscrt.dll and enc_aacplus.dll from Winamp 5 (one of the latest versions preffered) It's probably something very obvious I missed but I can't see it due to programming tunnel vision I guess. I've been scratching my head for hours now,įor some reason there is a invalid memory write on the line.