where is the definition of member functions in the struct audio_track_cblk_t

by max » Wed, 24 Jun 2009 20:33:14 GMT


Sponsored Links
 Hi All,

I don't know whether there is someone who have a look at the structure
audio_track_cblk_t, which is at
frameworks/base/include/private/media/AudioTrackShared.h
struct audio_track_cblk_t
{

    // The data members are grouped so that members accessed
frequently and in the same context
    // are in the same line of data cache.
                Mutex       lock;
                Condition   cv;
    volatile    uint32_t    user;
    volatile    uint32_t    server;
                uint32_t    userBase;
                uint32_t    serverBase;
    void*       buffers;
    uint32_t    frameCount;
    // Cache line boundary
    uint32_t    loopStart;
    uint32_t    loopEnd;
    int         loopCount;
    volatile    union {
                    uint16_t    volume[2];
                    uint32_t    volumeLR;
                };
                uint16_t    sampleRate;
                uint16_t    channels;
                int16_t     flowControlFlag; // underrun (out) or
overrrun (in) indication
                uint8_t     out;        // out equals 1 for AudioTrack
and 0 for AudioRecord
                uint8_t     forceReady;
                uint16_t    bufferTimeoutMs; // Maximum cumulated
timeout before restarting audioflinger
                uint16_t    waitTimeMs;      // Cumulated wait time
                // Padding ensuring that data buffer starts on a cache
line boundary (32 bytes).
                // See AudioFlinger::TrackBase constructor
                int32_t     Padding[3];

                            audio_track_cblk_t();
                uint32_t    stepUser(uint32_t frameCount);
                bool        stepServer(uint32_t frameCount);
                void*       buffer(uint32_t offset) const;
                uint32_t    framesAvailable();
                uint32_t    framesAvailable_l();
                uint32_t    framesReady();
};
I try to find where is the definition of framesReady(), stepUser() and
etc, but I cann't get the location, anybody can tell me?

Thanks a lot
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



where is the definition of member functions in the struct audio_track_cblk_t

by max » Wed, 24 Jun 2009 20:34:52 GMT


 Hi All,

I don't know whether there is someone who have a look at the structure
audio_track_cblk_t, which is at
frameworks/base/include/private/media/AudioTrackShared.h
struct audio_track_cblk_t
{

    // The data members are grouped so that members accessed
frequently and in the same context
    // are in the same line of data cache.
                Mutex       lock;
                Condition   cv;
    volatile    uint32_t    user;
    volatile    uint32_t    server;
                uint32_t    userBase;
                uint32_t    serverBase;
    void*       buffers;
    uint32_t    frameCount;
    // Cache line boundary
    uint32_t    loopStart;
    uint32_t    loopEnd;
    int         loopCount;
    volatile    union {
                    uint16_t    volume[2];
                    uint32_t    volumeLR;
                };
                uint16_t    sampleRate;
                uint16_t    channels;
                int16_t     flowControlFlag; // underrun (out) or
overrrun (in) indication
                uint8_t     out;        // out equals 1 for AudioTrack
and 0 for AudioRecord
                uint8_t     forceReady;
                uint16_t    bufferTimeoutMs; // Maximum cumulated
timeout before restarting audioflinger
                uint16_t    waitTimeMs;      // Cumulated wait time
                // Padding ensuring that data buffer starts on a cache
line boundary (32 bytes).
                // See AudioFlinger::TrackBase constructor
                int32_t     Padding[3];

                            audio_track_cblk_t();
                uint32_t    stepUser(uint32_t frameCount);
                bool        stepServer(uint32_t frameCount);
                void*       buffer(uint32_t offset) const;
                uint32_t    framesAvailable();
                uint32_t    framesAvailable_l();
                uint32_t    framesReady();
};
I try to find where is the definition of framesReady(), stepUser() and
etc, but I cann't get the location, anybody can tell me?

Thanks a lot
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


where is the definition of member functions in the struct audio_track_cblk_t

by Mark Murphy » Wed, 24 Jun 2009 20:36:02 GMT


 


Questions about the Android source code are best asked on a list that
pertains to the Android source code:

 http://source.android.com/discuss 

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to *Advanced* Android Development_
Version 0.9 Available!

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Google Calendar?

So I know Google is going to use Android to showcase all of its apps.
Picassa for photo, chrome for internet, and gmail and calendar will
certainly take the sportlight as well.

I am wondering however, will the calendar feature on the android
platform be able to support multiple calendars like the web interface?
I share a calendar with my girlfriend, and one of the most annoying
things about my windows mobile phone is that I cannot have multiple
(yet differently managed) calendars on my phone. And merging them and
trying to make them sync was impossible and out of the question.

So will google make the calendar feature very similar to their online
interface? because that would be awesome. And it would take one
element of my cloud syncing frustration away.

--~--~---------~--~----~------------~-------~--~----~

2. problem adding the android plugin to he eclipse 3.4 , plz help

Hi i'm new to android, while trying to add the android plugin to
eclipse 3.4 I got this error message.
I've downloaded the plugin and whas trying to install it from the hdd
itself.
Cannot complete the request.  See the details.
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.gef/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.gef/0.0.0
Unsatisfied dependency: [com.android.ide.eclipse.editors.feature.group
0.7.1.v200808141910-98467] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0

I'm using Mandriva linux , the kernel version is : 2.6.24.4.

PLZ help ASAP
Thanks in advance

Regards,
sukanta maikap

--~--~---------~--~----~------------~-------~--~----~

3. Software Articles Collection

4. Question about licensing by using apps-for-android?

5. Placing a call to the emulator

6. Visual-VoiceMail=GMail? GTalk=VoIP-Phone?

7. Google Developer Day 2008 in London