Whew !! Finally, after bygging you all for so long, I have been able to play sound using sdec component built over my own der.
I wasted so much time worrying about everything when everything was indeed working fine !! The fault was on my side and it was indeed a very sillly one. In the volume field of the Trackheader Atom for audio, I had made an entry of 1, out of ignorance. As soon as I changed it to 255, QTPlayer played the sound perfectly !!
My sound decompressor coponent for Windows platform is producing decompressed linear PCM samples from the compressed audio data. I also copy over the output PCM samples from my decode function to the outputBuffer in the getsourceData function. But there is absolutely no sound getting produced. Not even garbage.
Still havent been able to figure out the reason behind the correct output PCM samples not getting played. Just one small query I have. Do PCM samples need some special handling before copying them over to the output buffer in the getsourcedata function?
i.e. Some kind of manipulation with the output data from my decode function, before copying it over to the outputBuffer, in order to get them played.
It would be great if someone can throw some light on it. I am stuck and the only option that seems to be left is raising a technical support ticket with Apple !! I just hope I dont have to resort to that :(
Thanks in advance for help Regards Ayush
p.s. if I put some garbage data in the output buffer then it produces garbage sound. But my correctly decoded data (PCM samples) doesn't even produce the slightest of sound !!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden
This email sent to email@hidden