Hey there, I'm using omap based board (Devkit8000). I've managed to get the mic working fine using alsa commands to capture audio. (alsa_aplay -C -t wav -d 5 sample.wav) and it plays fine in the gui.
Few problems tho. 1. When i try playing a recorded sound (recorded via alsa_aplay command) the sound's duration does not show up (the music player shows the progress bar as complete). and logcat shows I/PVPlayer( 1932): duration = -1 2. When recording through gui, through any application, the app fails with mediaserver crashing and app giving numerous errors. the main error i seem to get is this: Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported Using android's soundrecorder app (sms>attach>record sound) When i click record i get this (uv meter not moving): I/ActivityManager( 906): Displayed activity com.android.soundrecorder/.SoundRecorder: 411 ms (total 411 ms) E/PV ( 2022): PVLOG:TID(0x2aec8):Time=3:OsclLib::loadlibrary: Error opening library (libomx_sharedlibrary_debug.so): Cannot load library: load_library[1052]: Library 'libomx_sharedlibrary_debug.so' not found E/audio_input( 2022): unsupported parameter: x-pvmf/media-input-node/ cap-config-interface;valtype=key_specific_value E/PV ( 2022): PVLOG:TID(0x2aec8):Time=40:PVAuthorEngineNodeUtility::NodeCommandCompleted E/PV ( 2022): PVLOG:TID(0x2aec8):Time=42:PVAuthorEngineNodeUtility::NodeCommandCompleted E/PV ( 2022): PVLOG:TID(0x2aec8):Time=42:PVAuthorEngineNodeUtility::NodeCommandCompleted E/PV ( 2022): PVLOG:TID(0x2aec8):Time=44:PVAuthorEngineNodeUtility::NodeCommandCompleted E/PV ( 2022): PVLOG:TID(0x2aec8):Time=45:PVAuthorEngineNodeUtility::NodeCommandCompleted E/PV ( 2022): PVLOG:TID(0x2aec8):Time=45:PVAuthorEngineNodeUtility::NodeCommandCompleted E/PV ( 2022): PVLOG:TID(0x2aec8):Time=45:PVAuthorEngineNodeUtility::NodeCommandCompleted E/PV ( 2022): PVLOG:TID(0x2aec8):Time=46:PVAuthorEngineNodeUtility::NodeCommandCompleted E/PV ( 2022): PVLOG:TID(0x2aec8):Time=47:PVAuthorEngineNodeUtility::NodeCommandCompleted W/AudioSystem( 906): AudioFlinger server died! W/AudioSystem( 906): AudioPolicyService server died! I/ServiceManager( 860): service 'media.audio_flinger' died I/ServiceManager( 860): service 'media.player' died I/ServiceManager( 860): service 'media.camera' died I/ServiceManager( 860): service 'media.audio_policy' died I/ ( 2053): ServiceManager: 0xad08 I/CameraService( 2053): CameraService started: pid=2053 D/AudioHardwareALSA( 2053): openOutputStream called for devices: 0x00000002 D/ALSAModule( 2053): open called for devices 00000002 in mode 0... I/ALSAModule( 2053): Initialized ALSA PLAYBACK device AndroidPlayback I/AudioFlinger( 2053): AudioFlinger's thread 0x21ac0 ready to run D/ALSAModule( 2053): route called for devices 00000002 in mode 0... E/AudioService( 906): Media server died. E/AudioService( 906): Media server started. W/AudioPolicyManagerALSA( 2053): setPhoneState() setting same state 0 D/dalvikvm( 1093): GC freed 1363 objects / 71880 bytes in 49ms D/dalvikvm( 978): GC freed 431 objects / 24360 bytes in 76ms Then i try to playback the sound, i get "Unable to access SD card" dialog. and following: E/PV ( 2053): PVLOG:TID(0x2b128):Time=2:OsclLib::loadlibrary: Error opening library (libomx_sharedlibrary_debug.so): Cannot load library: load_library[1052]: Library 'libomx_sharedlibrary_debug.so' not found E/PV ( 2053): PVLOG:TID(0x2b128):Time=11:OsclLib::loadlibrary: Error opening library (libopencore_streamingreg_debug.so): Cannot load library: load_library[1052]: Library 'libopencore_streamingreg_debug.so' not found E/PV ( 2053): PVLOG:TID(0x2b128):Time=14:OsclLib::loadlibrary: Error opening library (libopencore_downloadreg_debug.so): Cannot load library: load_library[1052]: Library 'libopencore_downloadreg_debug.so' not found E/PV ( 2053): PVLOG:TID(0x2b128):Time=17:OsclLib::loadlibrary: Error opening library (libopencore_mp4localreg_debug.so): Cannot load library: load_library[1052]: Library 'libopencore_mp4localreg_debug.so' not found E/PV ( 2053): PVLOG:TID(0x2b128):Time=23:OsclLib::loadlibrary: Error opening library (libopencore_mp4localreg_debug.so): Cannot load library: load_library[1052]: Library 'libopencore_mp4localreg_debug.so' not found E/PV ( 2053): PVLOG:TID(0x2b128):Time=31:PVMFRecognizerRegistryImpl::CheckForDataAvailability - RequestReadCapacityNotification Failed W/MediaPlayer( 1921): info/warning (1, 26) E/PlayerDriver( 2053): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported E/MediaPlayer( 1921): error (1, -4) W/PlayerDriver( 2053): PVMFInfoErrorHandlingComplete I/MediaPlayer( 1921): Info (1,26) So what seems to be the issue? I have a feeling it relates back to the driver as I can't figure out why there is no duration on the recorded item... but im not sure if thats the main issue. Can anyone shed some light? -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
