Lines Matching defs:result
40 aaudio_result_t result;
49 result = player.open(2, 44100, AAUDIO_FORMAT_PCM_FLOAT,
51 if (result != AAUDIO_OK) {
52 fprintf(stderr, "ERROR - player.open() returned %d\n", result);
63 result = player.prime(); // FIXME crashes AudioTrack.cpp
64 if (result != AAUDIO_OK) {
65 fprintf(stderr, "ERROR - player.prime() returned %d\n", result);
70 result = player.start();
71 if (result != AAUDIO_OK) {
72 fprintf(stderr, "ERROR - player.start() returned %d\n", result);
83 result = AAudioStream_waitForStateChange(player.getStream(),
87 if (result != AAUDIO_OK) {
88 fprintf(stderr, "ERROR - AAudioStream_waitForStateChange() returned %d\n", result);
100 result = player.stop();
101 if (result != AAUDIO_OK) {
105 result = player.close();
106 if (result != AAUDIO_OK) {
120 printf("exiting - AAudio result = %d = %s\n", result, AAudio_convertResultToText(result));