MHEG5  15.3.0
include/dvb_audio.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
00003  * Copyright © 2012 Ocean Blue Software Ltd
00004  *
00005  * This file is part of a DTVKit Software Component
00006  * You are permitted to copy, modify or distribute this file subject to the terms
00007  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
00008  *
00009  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
00010  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
00011  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
00012  *
00013  * If you or your organisation is not a member of DTVKit then you have access
00014  * to this source code outside of the terms of the licence agreement
00015  * and you are expected to delete this and any associated files immediately.
00016  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
00017  *******************************************************************************/
00041 #ifndef _DVB_AUDIO_H
00042 #define _DVB_AUDIO_H
00043 
00044 #include "techtype.h"
00045 #include "dvblocator.h"
00046 #include "mherrors.h"
00047 
00048 /*---Constant and macro definitions for public use-----------------------------*/
00049 
00050 /*---Enumerations for public use-----------------------------------------------*/
00051 
00052 /* Control of the audio decoder's speed. As trick modes are not implemented,
00053  * there are only two possibilities
00054  */
00055 typedef enum
00056 {
00057    /* Pause the audio decoding */
00058    AUDIO_SPEED_PAUSE,
00059 
00060    /* Resume audio playback after pause */
00061    AUDIO_SPEED_PLAY
00062 } E_AudioSpeed;
00063 
00064 
00065 typedef enum
00066 {
00067    AUDIO_ENC_MPEG2,
00068    AUDIO_ENC_HEAAC,
00069    AUDIO_ENC_E_AC3,
00070    AUDIO_ENC_MP3
00071 } E_AudioEncoding;
00072 
00073 /*---Global type defs for public use-------------------------------------------*/
00074 
00075 /*---Global Function prototypes for public use---------------------------------*/
00076 
00083 E_MhegErr DVB_MhegAudioPlayDefault(void);
00084 
00090 E_MhegErr DVB_MhegAudioStopStream(void);
00091 
00104 E_MhegErr DVB_MhegAudioPlayStream(S_DvbComponent *pDvbComponent);
00105 
00134 E_MhegErr DVB_MhegAudioPlayClip( U8BIT *pAudioData,
00135    U32BIT dataLength,
00136    U32BIT repeatCount,
00137    E_AudioEncoding encoding );
00138 
00147 E_MhegErr DVB_MhegAudioStopClip(void);
00148 
00160 E_MhegErr DVB_MhegAudioSetSpeed(E_AudioSpeed speed);
00161 
00173 E_MhegErr DVB_MhegAudioSetVolume(S32BIT volumeAdjust);
00174 
00183 U8BIT DVB_MhegPrefAudioLangs(U32BIT *langs,U8BIT max);
00184 
00194 BOOLEAN DVB_MhegAudioDescriptionPref(void);
00195 
00196 #endif /* _PM_AUDIO_H */
 All Data Structures Files Functions Variables Typedefs Defines