int sceAtracSetAA3DataAndGetID(u32 buffer, int bufferSize, int fileSize, u32 metadataSizeAddr) { ERROR_LOG_LIMITED(HLE, "UNIMPL sceAtracSetAA3DataAndGetID(%08x, %i, %i, %08x)", buffer, bufferSize, fileSize, metadataSizeAddr); int codecType = getCodecType(buffer); Atrac *atrac = new Atrac(); atrac->first.addr = buffer; atrac->first.size = bufferSize; return createAtrac(atrac); }
int sceAtracSetDataAndGetID(u32 buffer, u32 bufferSize) { ERROR_LOG_LIMITED(HLE, "UNIMPL sceAtracSetDataAndGetID(%08x, %08x)", buffer, bufferSize); int codecType = getCodecType(buffer); Atrac *atrac = new Atrac(); atrac->first.addr = buffer; atrac->first.size = bufferSize; return createAtrac(atrac); }
int sceAtracSetHalfwayBufferAndGetID(int atracID, u32 halfBuffer, u32 readSize, u32 halfBufferSize) { ERROR_LOG_LIMITED(HLE, "UNIMPL sceAtracSetHalfwayBufferAndGetID(%i, %08x, %08x, %08x)", atracID, halfBuffer, readSize, halfBufferSize); int codecType = getCodecType(halfBuffer); Atrac *atrac = new Atrac(); atrac->first.addr = halfBuffer; atrac->first.size = halfBufferSize; return createAtrac(atrac); }
int sceAtracSetHalfwayBufferAndGetID(u32 halfBuffer, u32 readSize, u32 halfBufferSize) { ERROR_LOG(HLE, "UNIMPL sceAtracSetHalfwayBufferAndGetID(%08x, %08x, %08x)", halfBuffer, readSize, halfBufferSize); if (readSize > halfBufferSize) return ATRAC_ERROR_INCORRECT_READ_SIZE; int codecType = getCodecType(halfBuffer); Atrac *atrac = new Atrac(); atrac->first.addr = halfBuffer; atrac->first.size = halfBufferSize; atrac->Analyze(); return createAtrac(atrac); }
/* ** API : Ve890CreateLineObj() ** Desp : Create Realtek line obj ** input : ch_id : unique ch_id ** channelId : channel id in each device ** RTKLineType : Realtek line type ** RTKDevObj : point to its RTK dev obj ** RTKLineObj : point to line obj ** slot : tx/rx time slot ** return : SUCCESS/FAILED */ BOOL Ve890CreateLineObj( int ch_id, int channelId, /* line# within a slic. usually 0 or 1 */ RTKLineType line_type, RTKLineObj *pLine, int law, unsigned int slot ) { /* channel 0 is FXS */ pLine->ch_id = ch_id; pLine->channelId = channelId; pLine->hook_st = 0; pLine->line_st = DEV_S_NOT_INIT; pLine->slot_tx = slot; pLine->slot_rx = slot; pLine->line_type = line_type; pLine->pcm_law_save = law; pLine->codec_type = getCodecType(law); if (line_type == LINE_FXS) pLine->pAC_profile = DEF_LE890_AC_PROFILE; else if (line_type == LINE_FXO) pLine->pAC_profile = DEF_LE890_AC_FXO_LC_PROFILE; else return FAILED; if (line_type == LINE_FXS) pLine->pDCfxo_profile = DEF_LE890_DC_PROFILE; else if (line_type == LINE_FXO) pLine->pDCfxo_profile = DEF_LE890_FXO_DIALING_PROFILE; else return FAILED; pLine->pRing_profile = DEF_LE890_RING_PROFILE; pLine->pRing_cad_profile= DEF_LE890_RING_CAD_PROFILE; pLine->TxGainAdj = 0; /* Adjust 0dB */ pLine->RxGainAdj = 0; /* Adjust 0dB */ PRINT_MSG("DEV%x:CH%d is %s\n", pLine->pDev->dev_id, ch_id, line_type == LINE_FXS?"FXS":"FXO"); return SUCCESS; }