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. Android 2.3 Cannot load library

hi,everyone,
My app with a ".so" can't run on android 2.3 witch runs nomarlly on 1.6,2.1 and 
2.2.When it starts up to System.loadLibrary the "so" file,the system throws a 
exception "java.lang.ExceptionInInitializerError",the detail below:
ERROR/AndroidRuntime(333): FATAL EXCEPTION: main
ERROR/AndroidRuntime(333): java.lang.ExceptionInInitializerError
ERROR/AndroidRuntime(333):     at java.lang.Class.newInstanceImpl(Native Method)
ERROR/AndroidRuntime(333):     at java.lang.Class.newInstance(Class.java:1409)
ERROR/AndroidRuntime(333):     at 
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
ERROR/AndroidRuntime(333):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1536)
ERROR/AndroidRuntime(333):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638)
ERROR/AndroidRuntime(333):     at 
android.app.ActivityThread.access$1500(ActivityThread.java:117)
ERROR/AndroidRuntime(333):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:928)
ERROR/AndroidRuntime(333):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
ERROR/AndroidRuntime(333):     at android.os.Looper.loop(Looper.java:123)
ERROR/AndroidRuntime(333):     at 
android.app.ActivityThread.main(ActivityThread.java:3647)
ERROR/AndroidRuntime(333):     at java.lang.reflect.Method.invokeNative(Native 
Method)
ERROR/AndroidRuntime(333):     at 
java.lang.reflect.Method.invoke(Method.java:507)
ERROR/AndroidRuntime(333):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
ERROR/AndroidRuntime(333):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
ERROR/AndroidRuntime(333):     at dalvik.system.NativeStart.main(Native Method)
ERROR/AndroidRuntime(333): Caused by: java.lang.UnsatisfiedLinkError: Cannot 
load library: reloc_library[1311]:    33 cannot locate '_length_code'...
ERROR/AndroidRuntime(333):     at 
java.lang.Runtime.loadLibrary(Runtime.java:434)
ERROR/AndroidRuntime(333):     at java.lang.System.loadLibrary(System.java:554)
ERROR/AndroidRuntime(333):     at com.amuse.Plugin.<clinit>(Plugin.java:9)
ERROR/AndroidRuntime(333):     ... 15 more


the log says that "Caused by: java.lang.UnsatisfiedLinkError: Cannot load 
library: reloc_library[1311]:".I also comiled my "so" file with ndk-r5,but the 
still the problem.
Please help me!!
Thanks in advance!



-- 

2. make an engine

how to make some classes in android to be .jar?
i want to make an engine for my project...thx

-- 

3. Ant not building app properly

4. Simple Database not so simple

5. example on asynctask class..

6. How to pass date object from one activity to other?

7. MMS Messages