Alsa renderer better error messages

This commit is contained in:
Iwan Timmer
2014-03-12 02:07:06 +01:00
parent fd85bf0387
commit 8f55f1e725
2 changed files with 1 additions and 8 deletions

View File

@@ -44,13 +44,6 @@ int nv_alsa_play(const unsigned char* indata, int data_len) {
int rc = snd_pcm_writei(handle, indata, frames);
if (rc == -EPIPE) {
snd_pcm_prepare(handle);
} else if (rc < 0) {
fprintf(stderr,
"error from writei: %s\n",
snd_strerror(rc));
} else if (rc != (int) frames) {
fprintf(stderr,
"short write, write %d frames\n", rc);
}
return rc;

View File

@@ -19,7 +19,7 @@ public class AlsaAudioRenderer implements AudioRenderer {
public void streamInitialized(int channelCount, int sampleRate) {
int ret = AlsaAudio.init(channelCount, sampleRate, device);
if (ret != 0)
throw new IllegalStateException("AVC decoder initialization failure: "+ret);
throw new IllegalStateException("Alsa renderer initialization failure: "+ret);
}
@Override