일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- GitHub
- Series
- keras
- Button
- DFS
- 삼성소프트웨어멤버십
- Numpy
- install
- Lotto
- RNN
- pycharm
- SciPy
- Splunk
- GT-S80
- Python
- javascript
- CNN
- mean
- mariadb
- LSTM
- ipad
- pip
- index
- pandas
- 알고리즘
- synology
- E-P1
- imread
- SPL
- dataframe
- Today
- Total
잠토의 잠망경
[Code Project]C Sharp Ripper 본문
Introduction
This code shows a way to make a CD ripper in C#. There are APIs from some vendors that allow reading audio CD tracks but it is also possible to do it using APIs that allow low level access to CD drives such as ASPI from Adaptec or IOCTL control codes. The latter method is used in this case, because there is no need to install any third party software, it is completely covered by Win32 API functions (CreateFile
, CloseHandle
, DeviceIoControl
, GetDriveType
).
Interop is used to call the mentioned Win32 functions to open the CD drive and send IOCTL codes to open, close the drive, read state and make a raw read of audio tracks. It is true that the faster and more "logical" way of to do the same thing would be using C++.NET but using C# and Interop is a valid way and not necessarily less efficient, of course, it needs an API translation.
In this work there is code from the article A low level audio player in C# by Ianier Munoz
출처: http://www.codeproject.com/KB/cs/csharpripper.aspx