Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi IMAPI Audio-CD brennen (https://www.delphipraxis.net/159486-imapi-audio-cd-brennen.html)

nuclearping 30. Mär 2011 11:22

IMAPI Audio-CD brennen
 
Hallo!

Hat hier jemand Erfahrung mit der IMAPI zum Brennen von Audio-CDs? Im Netz (und hier in der DP) finde ich nur massig Beispiele für Daten-CDs, aber leider absolut nichts für Audio-CDs.

Die MSDN sagt dazu folgendes:

1.) IRedbookDiscMaster::CreateAudioTrack Method

Code:
HRESULT CreateAudioTrack(
  [in] long nBlocks
);

nBlocks [in]

    Number of audio blocks to be added to this track. You can create up to 99 tracks, and the open track may consume all remaining available audio blocks.

    The nBlocks parameter is advisory only. It does not force the track length to this size.
Was genau sind diese "audio blocks"? Sicher nicht die Anzahl an Tracks? Wenn ich eine WAV habe, die zB 30 Sekunden lang ist, wieviele "Audio Blocks" wären das denn?

2.) IRedbookDiscMaster::AddAudioTrackBlocks Method

Code:
HRESULT AddAudioTrackBlocks(
  [in] byte *pby,
  [in] long cb
);

pby [in]

    Pointer to an array of track blocks. The format is 44.1 KHz 16-bit stereo RAW audio samples, in the same format as used by WAV in the data section.
cb [in]

    Size of the array, in bytes. This count must be a multiple of the audio block size.
a) Wenn ich das richtig verstehe, erwartet AddAudioTrackBlocks RAW audio samples im 44.1 KHz 16bit stereo format. Also praktisch wie in einer entsprechenden WAV Datei, nur ohne den ganzen WAV Header. Korrekt?

b) "Pointer to an array of track blocks" ... *TILT* ... Was meinen die denn mit diesen "Track Blocks"? Muss ich die RAW Daten in einem bestimmten Format übergeben? Ein Block = X Bytes? Oder was meinen die damit?

Würde mich freuen, wenn mir da jemand auf die Sprünge helfen könnte.

EDIT

Ok, hab grad nochmal Google mit "IMAPI Calculate Audio Blocks" bemüht und da spuckt er doch einiges aus, was interessant ausschaut.

http://www.google.de/#hl=de&source=h...e+audio+blocks


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:11 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz