(PS3) Build fix for PS3 audio driver - audio callback sound

still broken BTW
This commit is contained in:
twinaphex 2014-01-23 21:18:14 +01:00
parent f097b93a29
commit 823f68df99

View File

@ -165,10 +165,10 @@ static ssize_t ps3_audio_write(void *data, const void *buf, size_t size)
static bool ps3_audio_stop(void *data) static bool ps3_audio_stop(void *data)
{ {
ps3_audio_t *aud = data; ps3_audio_t *aud = data;
if (data->started) if (aud->started)
{ {
cellAudioPortStop(aud->audio_port); cellAudioPortStop(aud->audio_port);
data->started = false; aud->started = false;
} }
return true; return true;
} }
@ -176,10 +176,10 @@ static bool ps3_audio_stop(void *data)
static bool ps3_audio_start(void *data) static bool ps3_audio_start(void *data)
{ {
ps3_audio_t *aud = data; ps3_audio_t *aud = data;
if (!data->started) if (!aud->started)
{ {
cellAudioPortStart(aud->audio_port); cellAudioPortStart(aud->audio_port);
data->started = true; aud->started = true;
} }
return true; return true;
} }