(psp1_audio.c) Style nits
This commit is contained in:
parent
474ef82274
commit
63c97763e7
|
@ -71,16 +71,14 @@ static int audioMainLoop(SceSize args, void* argp)
|
||||||
static void *psp_audio_init(const char *device,
|
static void *psp_audio_init(const char *device,
|
||||||
unsigned rate, unsigned latency)
|
unsigned rate, unsigned latency)
|
||||||
{
|
{
|
||||||
psp1_audio_t* psp;
|
psp1_audio_t *psp = (psp1_audio_t*)calloc(1, sizeof(psp1_audio_t));
|
||||||
|
|
||||||
(void)device;
|
|
||||||
(void)latency;
|
|
||||||
|
|
||||||
psp = (psp1_audio_t*)calloc(1, sizeof(psp1_audio_t));
|
|
||||||
|
|
||||||
if (!psp)
|
if (!psp)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
(void)device;
|
||||||
|
(void)latency;
|
||||||
|
|
||||||
/* Cache aligned, not necessary but helpful. */
|
/* Cache aligned, not necessary but helpful. */
|
||||||
psp->buffer = (uint32_t*)
|
psp->buffer = (uint32_t*)
|
||||||
memalign(64, AUDIO_BUFFER_SIZE * sizeof(uint32_t));
|
memalign(64, AUDIO_BUFFER_SIZE * sizeof(uint32_t));
|
||||||
|
@ -164,10 +162,10 @@ static bool psp_audio_alive(void *data)
|
||||||
static bool psp_audio_stop(void *data)
|
static bool psp_audio_stop(void *data)
|
||||||
{
|
{
|
||||||
SceKernelThreadRunStatus runStatus;
|
SceKernelThreadRunStatus runStatus;
|
||||||
SceUInt timeout = 100000;
|
SceUInt timeout = 100000;
|
||||||
psp1_audio_t* psp = (psp1_audio_t*)data;
|
psp1_audio_t* psp = (psp1_audio_t*)data;
|
||||||
|
|
||||||
runStatus.size = sizeof(SceKernelThreadRunStatus);
|
runStatus.size = sizeof(SceKernelThreadRunStatus);
|
||||||
|
|
||||||
if (sceKernelReferThreadRunStatus(
|
if (sceKernelReferThreadRunStatus(
|
||||||
psp->thread, &runStatus) < 0) /* Error */
|
psp->thread, &runStatus) < 0) /* Error */
|
||||||
|
@ -186,7 +184,7 @@ static bool psp_audio_start(void *data)
|
||||||
SceKernelThreadRunStatus runStatus;
|
SceKernelThreadRunStatus runStatus;
|
||||||
psp1_audio_t* psp = (psp1_audio_t*)data;
|
psp1_audio_t* psp = (psp1_audio_t*)data;
|
||||||
|
|
||||||
runStatus.size = sizeof(SceKernelThreadRunStatus);
|
runStatus.size = sizeof(SceKernelThreadRunStatus);
|
||||||
|
|
||||||
if (sceKernelReferThreadRunStatus(
|
if (sceKernelReferThreadRunStatus(
|
||||||
psp->thread, &runStatus) < 0) /* Error */
|
psp->thread, &runStatus) < 0) /* Error */
|
||||||
|
|
Loading…
Reference in New Issue