Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do output PCM samples require some special data handling before copying them to outputBuffer?



Hi all
 
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 !!
So finally my sound component is working fine.
Thanks to you all for your support
 
Regards
Ayush

 
On 9/1/06, ayush ghai <email@hidden> wrote:
Hi all

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

References: 
 >Do output PCM samples require some special data handling before copying them to outputBuffer? (From: "ayush ghai" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.