# Proposed change to AudioCDReader up on swirly-juce

**URL:** <https://forum.juce.com/t/proposed-change-to-audiocdreader-up-on-swirly-juce/5500>\
**Category:** General JUCE discussion\
**Created:** [July 22, 2010, 4:57pm UTC](https://forum.juce.com/t/proposed-change-to-audiocdreader-up-on-swirly-juce/5500 "2010-07-22T16:57:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomswirly](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tomswirly/32/236_2.png) [@tomswirly](https://forum.juce.com/u/tomswirly)\
**Post date:** [July 22, 2010, 4:57pm UTC](https://forum.juce.com/t/proposed-change-to-audiocdreader-up-on-swirly-juce/5500/1 "2010-07-22T16:57:39Z")

</div>

[http://ax.to/cdreader](http://ax.to/cdreader) has it: here’s the [diff](http://ax.to/cdreaderdiff)!

To summarize, I “pulled up” `Array<int> trackStartSamples;` from the Mac implementation to “every platform”. I then make that the authoritative place to get both the track number of tracks and the length of each track, and make sure to feed it correctly from the Mac.

Most of the new code is for the Mac, in the two \_helper files - I’m parsing the .TOC.plist file to get the information.

There are unit tests that requires Google’s gtest but are more there just as a “proof it does something reasonable”. URG, I should add that I haven’t even compiled the PC code - I could arrange for this to be done if needs be but I am personally not set up to do this. I am willing to take bets on whether it will compile and work first time… 😃 Here’s the [diff](http://github.com/rec/swirly-juce/blob/master/src/rec/audio/cd/juce_AudioCDReader.diff#L359) for that specific Windows-only file that was touched.

One of the nice things about JUCE is that it’s single-owner - so my intention for the workflow is to basically throw it over the wall to Jules, see what he does with it, and let him keep it, rather than maintain some sort of ownership over it, get it reviewed and crap like that. 😃

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 22, 2010, 11:44pm UTC](https://forum.juce.com/t/proposed-change-to-audiocdreader-up-on-swirly-juce/5500/2 "2010-07-22T23:44:41Z")

</div>

Nice one Tom, I’ll check that out asap!..

---

<div class="post-metadata">

**Author:** ![tomswirly](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tomswirly/32/236_2.png) [@tomswirly](https://forum.juce.com/u/tomswirly)\
**Post date:** [July 28, 2010, 5:25pm UTC](https://forum.juce.com/t/proposed-change-to-audiocdreader-up-on-swirly-juce/5500/3 "2010-07-28T17:25:35Z")

</div>

This code is now completed and in JUCE! Thanks to Jules for fast response and fix when I chucked the code over the fence to him…
