voodoopriestess
4th April 2002, 15:53
I'm halfway through development of a plugin that will encode the data coming out of WinAMP as a Dolby Digital AC-3 stream. I'm having a few problems with the WinAMP side of things...
1. GetOutputTime() and GetWrittenTime() -> are these meant to return the time from the start of the current song i.e. we are currently playing second 126 or timecode 00:02:06?
2. Write() is never called by WinAMP. Is this a problem from my understanding of how the GetxxxTime() functions work? From what I understand from the MiniSDK WinAMP issues an open command when a user hits the play button. WinAMP then checks the Setxxx(), CanWrite(), GetxxxTime() etc... Now my CanWrite () always returns 256 PCM samples space (calculated in bytes) as I want WinAMP to server the data as fast a possible. The real-time encoding of the buffer is _VERY_ CPU intensive.
Is all this mess caused by me not understand how the output SDK works? Incidently, the MiniSDK is very poor - a single disk writer example with no timing code or anything. Is there a bigger version of the output SDK or is that it?
BTW: Is a plugin that outputs Dolby Digital AC-3 5.1 via a SP/DIF is a good idea. Please tell me!
Iain
1. GetOutputTime() and GetWrittenTime() -> are these meant to return the time from the start of the current song i.e. we are currently playing second 126 or timecode 00:02:06?
2. Write() is never called by WinAMP. Is this a problem from my understanding of how the GetxxxTime() functions work? From what I understand from the MiniSDK WinAMP issues an open command when a user hits the play button. WinAMP then checks the Setxxx(), CanWrite(), GetxxxTime() etc... Now my CanWrite () always returns 256 PCM samples space (calculated in bytes) as I want WinAMP to server the data as fast a possible. The real-time encoding of the buffer is _VERY_ CPU intensive.
Is all this mess caused by me not understand how the output SDK works? Incidently, the MiniSDK is very poor - a single disk writer example with no timing code or anything. Is there a bigger version of the output SDK or is that it?
BTW: Is a plugin that outputs Dolby Digital AC-3 5.1 via a SP/DIF is a good idea. Please tell me!
Iain