Merge "DO NOT MERGE - fix truncated boot sound" into nyc-dev
This commit is contained in:
@@ -23,7 +23,8 @@ LOCAL_SHARED_LIBRARIES := \
|
|||||||
libEGL \
|
libEGL \
|
||||||
libGLESv1_CM \
|
libGLESv1_CM \
|
||||||
libgui \
|
libgui \
|
||||||
libtinyalsa
|
libtinyalsa \
|
||||||
|
libmedia
|
||||||
|
|
||||||
LOCAL_MODULE:= bootanimation
|
LOCAL_MODULE:= bootanimation
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include <tinyalsa/asoundlib.h>
|
#include <tinyalsa/asoundlib.h>
|
||||||
#include <utils/Log.h>
|
#include <utils/Log.h>
|
||||||
#include <utils/String8.h>
|
#include <utils/String8.h>
|
||||||
|
#include <media/AudioSystem.h>
|
||||||
|
|
||||||
#define ID_RIFF 0x46464952
|
#define ID_RIFF 0x46464952
|
||||||
#define ID_WAVE 0x45564157
|
#define ID_WAVE 0x45564157
|
||||||
@@ -143,6 +144,9 @@ bool AudioPlayer::init(const char* config)
|
|||||||
struct mixer* mixer = NULL;
|
struct mixer* mixer = NULL;
|
||||||
char name[MAX_LINE_LENGTH];
|
char name[MAX_LINE_LENGTH];
|
||||||
|
|
||||||
|
// Fake call to wait for audio HAL initialization completion
|
||||||
|
AudioSystem::getParameters(String8(""));
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
const char* endl = strstr(config, "\n");
|
const char* endl = strstr(config, "\n");
|
||||||
if (!endl) break;
|
if (!endl) break;
|
||||||
|
|||||||
Reference in New Issue
Block a user