Permalink
Browse files

add BOARD_USES_ECLAIR_LIBAUDIO (used on Milestone port)

  • Loading branch information...
nadlabak committed Sep 19, 2010
1 parent dd699a2 commit dd4a7614ecf8573b4ee71d181450dd1f6c23d681
Showing with 12 additions and 0 deletions.
  1. +4 −0 libs/audioflinger/Android.mk
  2. +8 −0 libs/audioflinger/AudioFlinger.cpp
@@ -99,6 +99,10 @@ ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true)
LOCAL_CFLAGS += -DGENERIC_AUDIO
else
LOCAL_SHARED_LIBRARIES += libaudio libaudiopolicy
ifeq ($(BOARD_USES_ECLAIR_LIBAUDIO),true)
LOCAL_STATIC_LIBRARIES += libaudiopolicybase
LOCAL_CFLAGS += -DBOARD_USES_ECLAIR_LIBAUDIO
endif
endif
ifeq ($(TARGET_SIMULATOR),true)
@@ -1271,6 +1271,9 @@ void AudioFlinger::PlaybackThread::readOutputParameters()
status_t AudioFlinger::PlaybackThread::getRenderPosition(uint32_t *halFrames, uint32_t *dspFrames)
{
#ifdef BOARD_USES_ECLAIR_LIBAUDIO
return INVALID_OPERATION;
#else
if (halFrames == 0 || dspFrames == 0) {
return BAD_VALUE;
}
@@ -1280,6 +1283,7 @@ status_t AudioFlinger::PlaybackThread::getRenderPosition(uint32_t *halFrames, ui
*halFrames = mBytesWritten/mOutput->frameSize();
return mOutput->getRenderPosition(dspFrames);
#endif
}
// ----------------------------------------------------------------------------
@@ -3727,7 +3731,11 @@ void AudioFlinger::RecordThread::readInputParameters()
unsigned int AudioFlinger::RecordThread::getInputFramesLost()
{
#ifdef BOARD_USES_ECLAIR_LIBAUDIO
return 0;
#else
return mInput->getInputFramesLost();
#endif
}
// ----------------------------------------------------------------------------

1 comment on commit dd4a761

@nadlabak

This comment has been minimized.

Show comment
Hide comment
@nadlabak

nadlabak Sep 20, 2010

Owner

These changes are needed to take care of the functions missing from a proprietary eclair's libaudio in order to be able to use it on froyo.

Owner

nadlabak commented on dd4a761 Sep 20, 2010

These changes are needed to take care of the functions missing from a proprietary eclair's libaudio in order to be able to use it on froyo.

Please sign in to comment.