Re: Play from Audio CD
Re: Play from Audio CD
- Subject: Re: Play from Audio CD
- From: John Johnson <email@hidden>
- Date: Fri, 11 Jun 2010 20:28:35 -0500
> You already have the audio data in your process space, as well as the converted audio data, so why would you want to read it back from a file? I understand that you might have some handy code which plays an audio file, and you might want to keep that for simplicity. However, CoreAudio also allows playback of audio directly from memory. Since you're already going to the trouble of ripping the audio data into memory and converting it into memory, why not just play back from memory, too?
>
> As others have pointed out, your attempt to play an audio file which has not been completely written to disc is just asking for trouble. You'll note that iTunes will not allow the user to play a ripped track until it has been completely ripped and the file has been closed for writing. If you want to allow playback before the file has been written, then I suggest playback from memory.
>
> There are plenty of CoreAudio samples for playing audio from buffers.
Wait, I think I understand now... when I convert the data in memory, it takes a much smaller footprint. Most songs are then only ~3 - 5 MB in size. I just did a quick test and it may actually work out to do it that way.... Hmm _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden