next up previous contents index
Next: DVDI_SPRM Up: DVD settings Previous: DVD settings   Contents   Index

DVDI_AST_ATR

Query the attributes of the Audio Streams of the current VTS.

DWORD DVDQueryAttribute (DVDI_AST_ATR, PAST_ATR pAST_ATR);

Arguments
PAST_ATR pAST_ATR Pointer to a AST_ATR structure:
typedef struct {
BYTE bAST_Ns;                      // Number of Audio Streams available (1 to 8)
BOOL bAvailable[MAX_AST];          // If True, the audio stream is available in the current Program Chain.
BYTE bAudioCodingMode [MAX_AST];   // Audio Coding Mode :
BOOL bMultichannelExtenstion [MAX_AST];    // Multichannel extension
BYTE bAudioType [MAX_AST];                 // Audio Type
BYTE bAudioApplicationMode [MAX_AST];      // Audio Application Mode
BYTE bQuantization [MAX_AST];              // Quantization / DRC
BYTE bfs [MAX_AST];                        // Frequency
BYTE bNumberOfAudioChannels [MAX_AST];     // Number of Audio channels
WORD wLanguageCode [MAX_AST];              // Refer to Language codes
WORD wLanguageCodeExtension [MAX_AST];     // Refer to Language codes
BYTE bApplicationExtension [MAX_AST];      // Refer Annex C
} AST_ATR, *PAST_ASTR;
Audio coding modes ares:
000b Dolby AC-3
010b MPEG-1
011b MPEG-2 with extension
100b Linear PCM audio
110b DTS
111b SDDS

Audio types are:

00b Not specified
01b Language

Audio application modes are:

00b Not specified
01b Karaoke mode
10b Surround mode
11b reserved

Number of audio channels are:

000b 1ch (mono)
001b 2ch (stereo)
010b 3ch
011b 4ch
100b 5ch
101b 6ch
110b 7ch
111b 8ch
All arrays go from 0 to b_Ns.

Return value
Zero if successful. Otherwise returns an error code.
DVDE_ARG Arguments are not valid.
DVDE_UNAUTHORIZED Unauthorized operation.

Remarks
Here is a small code:
DWORD dwReturn;
AST_ATR ast_atr;
dwReturn = DVDQueryAttribute ( DVDI_AST_ATR, (DWORD)&ast_atr);
dwReturn = (DWORD) ast_atr.bAST_Ns;
dwReturn = (DWORD) ast_atr.bAudioCodingMode [1];
dwReturn = (DWORD) ast_atr.bMultichannelExtenstion [1];
dwReturn = (DWORD) ast_atr.bAudioType [1];
dwReturn = (DWORD) ast_atr.bAudioApplicationMode [1];
dwReturn = (DWORD) ast_atr.bQuantization [1];
dwReturn = (DWORD) ast_atr.bfs [1];
dwReturn = (DWORD) ast_atr.bNumberOfAudioChannels [1];
dwReturn = (DWORD) ast_atr.wLanguageCode [1];
dwReturn = (DWORD) ast_atr.wLanguageCodeExtension [1];
dwReturn = (DWORD) ast_atr.bApplicationExtension [1];
if ( ast_atr.bAvailable [1])
return TRUE;
else return FALSE;

Figure 7.4: DVDI_AST_ATR Operating Systems and Streaming Models
\begin{figure}\centering\begin{tabular}{\vert l\vert c\vert c\vert c\vert c\vert...
...$\bullet$& & & \\
Linux & & $\bullet$& & & \\
\hline
\end{tabular}\end{figure}


next up previous contents index
Next: DVDI_SPRM Up: DVD settings Previous: DVD settings   Contents   Index
Realmagic Build 2001-12-07