]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - osx_writer.c
osx_write: decrypt format settings.
[paraslash.git] / osx_writer.c
index 2af553db4386561ff58cc1652be235f30f8f551a..c4a97e4b5ae9c0f2575f8239bb79c43dab45a8f7 100644 (file)
@@ -227,8 +227,10 @@ static int osx_writer_open(struct writer_node *wn)
         * We produce 2-channel audio. Now if we have a mega-super-hyper card for our
         * audio, it is its problem to convert it to 8-, 16-, 32- or 1024-channel data.
         */
         * We produce 2-channel audio. Now if we have a mega-super-hyper card for our
         * audio, it is its problem to convert it to 8-, 16-, 32- or 1024-channel data.
         */
-       format.mBytesPerFrame = (format.mFramesPerPacket = 1)
-               * (format.mBytesPerPacket = (format.mChannelsPerFrame = 2) * sizeof(float));
+       format.mFramesPerPacket = 1;
+       format.mChannelsPerFrame = 2;
+       format.mBytesPerPacket = format.mChannelsPerFrame * sizeof(float);
+       format.mBytesPerFrame = format.mFramesPerPacket * format.mBytesPerPacket;
        /* one of the most constant constants of the whole computer history */
        format.mBitsPerChannel = sizeof(float) * 8;
        ret = -E_STREAM_FORMAT;
        /* one of the most constant constants of the whole computer history */
        format.mBitsPerChannel = sizeof(float) * 8;
        ret = -E_STREAM_FORMAT;