[MPlayer-dev-eng] Re: OpenAL on Mac OSX: video playing at 2x speed

Nicolas Plourde nicolas.plourde at gmail.com
Sun Dec 10 00:54:51 CET 2006


On 9-Dec-06, at 8:38 AM, Reimar Döffinger wrote:

> Hello,
> On Sat, Dec 09, 2006 at 08:32:04AM -0500, Nicolas Plourde wrote:
>> Ok than, I will try to fix my samplerate problem. I did not know that
>> OpenAL support was just a toy at the moment.
>
> The documentation should tell nowadays *g*
>
>> OpenAL is fully supported in mac osx and part of the operating system
>> deafult framework so it could be interesting of supporting it.
>
> Now that I could verify that multichannel etc. actually works, I am  
> more
> open to improve build and other problems on non-linux platforms.
>
>> I will let you know if there is any progress.
>
> Well, there was progress on my side, now multichannel files should
> really sound multichannel, though it probably could use some more  
> tuning
> (laptop speakers are not suitable for testing such stuff *g*)


in init() there is

   alGetBufferi(buffers[0][0], AL_FREQUENCY, &bufrate);
   ao_data.samplerate = rate = bufrate;

call to alGetBufferi before alBufferData is useless...?

it should be

@@ -103,7 +110,7 @@
      alSource3f(sources[0], AL_POSITION, 0, 0, 1);
    ao_data.channels = channels;
    alGetBufferi(buffers[0][0], AL_FREQUENCY, &bufrate);
-  ao_data.samplerate = rate = bufrate;
+  ao_data.samplerate = rate;
    ao_data.format = AF_FORMAT_S16_NE;
    ao_data.bps = channels * rate * 2;
    ao_data.buffersize = CHUNK_SIZE * NUM_BUF;
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: macosx_openal.txt
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061209/4632daa7/attachment.txt>
-------------- next part --------------

====
Nicolas Plourde <nicolas.plourde at gmail.com>





More information about the MPlayer-dev-eng mailing list