# sound.h

`#include "dxlibp.h"`
`#include <pspmp3.h>`
`#include <psputility.h>`
sound.hのインクルード依存関係図

ソースコードを見る。

## データ構造
struct | DXPAVCODEC_BUFFER
struct | DXPAVCONTEXT_MP3
struct | DXPAVCONTEXT
struct | DXPSOUNDHANDLE
struct | DXPSOUNDDATA
## マクロ定義
#define | DXP_BUILDOPTION_SOUNDHANDLE_MAX 32
#define | DXP_SOUNDCMD_NONE 0
#define | DXP_SOUNDCMD_PLAY 1
#define | DXP_SOUNDCMD_STOP 2
#define | DXP_SOUNDCMD_EXIT 3
#define | DXP_SOUNDFMT_MP3 1
#define | SHND2PTR(HNDLE, PTR) {if(!dxpSoundData.init)return -1; if(HNDLE < 0 || HNDLE >= DXP_BUILDOPTION_SOUNDHANDLE_MAX)return -1;PTR = dxpSoundArray + HNDLE;if(!PTR->used)return -1;}
## 関数
int | dxpSoundInit ()
int | dxpSoundTerm ()
int | dxpSoundReserveHandle ()
int | dxpSoundReleaseHandle (int handle)
int | dxpSoundMp3Init (DXPAVCONTEXT *av)
int | dxpSoundMp3GetSampleLength (DXPAVCONTEXT *av)
int | dxpSoundMp3Seek (DXPAVCONTEXT *av, int sample)
int | dxpSoundMp3Decode (DXPAVCONTEXT *av)
int | dxpSoundMp3End (DXPAVCONTEXT *av)
int | dxpSoundCodecInit (DXPSOUNDHANDLE *pHnd)
int | dxpSoundCodecGetSampleLength (DXPSOUNDHANDLE *pHnd)
int | dxpSoundCodecSeek (DXPSOUNDHANDLE *pHnd, int sample)
int | dxpSoundCodecDecode (DXPSOUNDHANDLE *pHnd)
int | dxpSoundCodecEnd (DXPSOUNDHANDLE *pHnd)
int | dxpSoundThreadFunc_file (SceSize size, void *argp)
int | dxpSoundThreadFunc_memnopress (SceSize size, void *argp)
## 変数
DXPSOUNDHANDLE | dxpSoundArray []
DXPSOUNDDATA | dxpSoundData

## マクロ定義

#define DXP_BUILDOPTION_SOUNDHANDLE_MAX 32

#define DXP_SOUNDCMD_EXIT 3

#define DXP_SOUNDCMD_NONE 0

#define DXP_SOUNDCMD_PLAY 1

#define DXP_SOUNDCMD_STOP 2

#define DXP_SOUNDFMT_MP3 1

#define SHND2PTR | ( | HNDLE,
|  | PTR |  | ) | {if(!dxpSoundData.init)return -1; if(HNDLE < 0 || HNDLE >= DXP_BUILDOPTION_SOUNDHANDLE_MAX)return -1;PTR = dxpSoundArray + HNDLE;if(!PTR->used)return -1;}

## 関数

int dxpSoundCodecDecode | ( | DXPSOUNDHANDLE * | pHnd | ) |

int dxpSoundCodecEnd | ( | DXPSOUNDHANDLE * | pHnd | ) |

int dxpSoundCodecGetSampleLength | ( | DXPSOUNDHANDLE * | pHnd | ) |

int dxpSoundCodecInit | ( | DXPSOUNDHANDLE * | pHnd | ) |

int dxpSoundCodecSeek | ( | DXPSOUNDHANDLE * | pHnd,
|  | int | sample |
| ) |  |  |

int dxpSoundInit | ( |  | ) |

int dxpSoundMp3Decode | ( | DXPAVCONTEXT * | av | ) |

int dxpSoundMp3End | ( | DXPAVCONTEXT * | av | ) |

int dxpSoundMp3GetSampleLength | ( | DXPAVCONTEXT * | av | ) |

int dxpSoundMp3Init | ( | DXPAVCONTEXT * | av | ) |

int dxpSoundMp3Seek | ( | DXPAVCONTEXT * | av,
|  | int | sample |
| ) |  |  |

int dxpSoundReleaseHandle | ( | int | handle | ) |

int dxpSoundReserveHandle | ( |  | ) |

int dxpSoundTerm | ( |  | ) |

int dxpSoundThreadFunc_file | ( | SceSize | size,
|  | void * | argp |
| ) |  |  |

int dxpSoundThreadFunc_memnopress | ( | SceSize | size,
|  | void * | argp |
| ) |  |  |

## 変数

DXPSOUNDHANDLE dxpSoundArray[]

DXPSOUNDDATA dxpSoundData