Professional Web Applications Themes

AIFF import from CD broken in 10.3? - Mac Programming

Hi, The Apple sample code "AudioConverter" no longer works when importing from an audio CD under 10.3. It's as if it gets stuck in a 'while' loop looking for a chunk that presumably never returns true. Only on some tracks, and only in 10.3. Bizzare. It's been working trouble-free up until 10.3. I must confess that I haven't spent the usual hours tracking this one down, as I suspected it might be a severe case of re-inventing the wheel! Is there some definitive code out there that will read the various AIFFs and permutations of chunk types? I apologize that ...

  1. #1

    Default AIFF import from CD broken in 10.3?

    Hi,
    The Apple sample code "AudioConverter" no longer works when importing
    from an audio CD under 10.3. It's as if it gets stuck in a 'while' loop
    looking for a chunk that presumably never returns true. Only on some
    tracks, and only in 10.3. Bizzare. It's been working trouble-free up
    until 10.3. I must confess that I haven't spent the usual hours tracking
    this one down, as I suspected it might be a severe case of re-inventing
    the wheel!
    Is there some definitive code out there that will read the various AIFFs
    and permutations of chunk types? I apologize that this is a faq, but I
    can't find any definitive answer.

    Also, until it broke, I had been inverting the non-native endian data
    myself. Given that reading CDs is such a common task, are there
    libraries that will handle the whole process?

    T.I.A.

    Steve


    (This post was also sent to the quicktime list.)

    Steve Guest

  2. #2

    Default Re: AIFF import from CD broken in 10.3?

    Steve James <com> wrote in message news:<brmj7j$6p7$btinternet.com>... 

    Look into libsndfile by Eric de Castro Lopo
    (http://www.zip.com.au/~erikd/libsndfile/) compiles just fine in OS X
    and will read quite a number of different sound file formats. Used in
    an app and found it quite easy to use and well doented.

    --jim
    Jim Guest

  3. #3

    Default Re: AIFF import from CD broken in 10.3?

    Thanks, just had a look at it. I'll try it.
    Shame about the lack of MP3 support though; still means using a second
    API (QuickTime (!) to handle those.)


    If any charitable person has a routine to read MP3 in to memory (not
    play... I can do that), I'd be immensley grateful for the help.

    FWIW, anyone with the same 'AudioConverter' problem. That code is really
    buggy. If the AudConv_SetFPosToChunk() routine doesn't find the chunk
    header it is looking for, it can end up looking at junk with length
    zero, and then the loop gets stuck as it only exited when the length is
    incremented past the e.o.f.


    Steve



    Jim Schimpf wrote: 
    >
    >
    > Look into libsndfile by Eric de Castro Lopo
    > (http://www.zip.com.au/~erikd/libsndfile/) compiles just fine in OS X
    > and will read quite a number of different sound file formats. Used in
    > an app and found it quite easy to use and well doented.
    >
    > --jim[/ref]

    Steve Guest

Similar Threads

  1. Can't loop MP3 imported into Director - use AIFF
    By tallscot webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 1
    Last Post: January 25th, 11:06 PM
  2. AIFF file won't burn to CD?
    By DaveC in forum Mac Applications & Software
    Replies: 4
    Last Post: September 16th, 03:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139