QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: johnno56 on October 15, 2018, 06:17:03 am
-
Does QB64 have the ability to access and play CD's and if so how?
-
Hi. The following sentences are my estimation. If there really is a better way, of course I would also be very interested in how.
This is probably only possible with use an some external library because the audio CD format uses its own data format. They are basically WAV files but are not readable because CD-DA has one BYTE size of 14 bits, which is not compatible with the standard (8 bites per byte). With such a structure, the OPEN statement is computed, so CD-DA without special software is directly not accessible to QB64.
-
Thanks Petr.
I was hoping for something a little less complicated... lol I wasn't sure it was possible but had to at least try...
Thank you for the information. Much appreciated.
J
-
Hi. The following sentences are my estimation. If there really is a better way, of course I would also be very interested in how.
This is probably only possible with use an some external library because the audio CD format uses its own data format. They are basically WAV files but are not readable because CD-DA has one BYTE size of 14 bits, which is not compatible with the standard (8 bites per byte). With such a structure, the OPEN statement is computed, so CD-DA without special software is directly not accessible to QB64.
CDDA is 16-bit Linear PCM sampled at 44,100 Hz. (source: Wikipedia) (but there is no WAV header). However, you still can't read it with ordinary file OPEN . https://superuser.com/questions/1302319/why-you-cant-just-dd-cd-audio-like-an-ordinary-data-cd