QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Audio Mechanica V7b (direct file recording)

This is a discussion on Audio Mechanica V7b (direct file recording) within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Audio Mechanica V7b Hi Guys, Here's the second release of Audio Mechanica since the rewrite with Go!Cam support. This is ...

Reply
 
LinkBack Thread Tools
Old 11-02-2008, 08:41 AM   #1
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default Audio Mechanica V7b (direct file recording)

Audio Mechanica V7b

Hi Guys,
Here's the second release of Audio Mechanica since the rewrite with Go!Cam support.
This is the first series that can record direct to file, and is able to do so with either
the Socom microphone headset, DIY mic, or Chotto cam (Go!Cam) microphone

COMING SOON... Version 8!
Version 8 will also support the PSP-240 Talkman USB microphone

Audio Mechanica V8 Screenshots:





Updates for V7b:
Quote:
Program reports errors to screen, and constantly checks available space during recording.
Implemented recording timer, displays hours, minutes and seconds for the current or last completed recording.
Program checks and creates target recording data folder on the Memory Stick if it doesn't already exist.
Program checks and reports previously recorded files, and does not overwrite them.
Version 8 is almost ready, and can be expected within a couple of days.
Cheers, Art.
Attached Files
File Type: zip Audio Mechanica V7b.zip‎ (1.06 MB, 105 views)
__________________
http://www.freewebs.com/defxev/

Last edited by Art; 11-06-2008 at 04:26 AM..
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2008, 02:51 PM   #2
Local Tech
 
joseph10444's Avatar
 
Join Date: Oct 2007
Real First Name: Joe
Location: home
Just Played: rockband
Posts: 1,822
Trader Feedback: 0
Default

oh my gosh really!!
thank you!!

so this records without a reel??

i got a microphone and want to record stuff
joseph10444 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2008, 03:17 PM   #3
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

Yes, let me know if any problems.

Early ver doesn't check free Memory Stick space, or if PSP/MUSIC folder even exists.
Some unexpected events could crash it or corrupt your MS.
Art.
__________________
http://www.freewebs.com/defxev/
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2008, 03:22 PM   #4
Local Tech
 
joseph10444's Avatar
 
Join Date: Oct 2007
Real First Name: Joe
Location: home
Just Played: rockband
Posts: 1,822
Trader Feedback: 0
Default

wow i hate corruption
once that happened to me
i lost non backed up photos/savedata/homebrew
joseph10444 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2008, 03:41 PM   #5
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

For now you have to be sure you have enough space free on the MS,
but a future version will check MS free space, and do a running size calculation
of all audio files it creates.

Audio is saved to ms0:PSP/MUSIC btw.
__________________
http://www.freewebs.com/defxev/
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2008, 04:42 PM   #6
Local Tech
 
joseph10444's Avatar
 
Join Date: Oct 2007
Real First Name: Joe
Location: home
Just Played: rockband
Posts: 1,822
Trader Feedback: 0
Default

yes thank you so much!!!!
this is like what i was dreaming of earlier when i had v6e

tyvm
joseph10444 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2008, 05:14 PM   #7
 
infinity888's Avatar
 
Join Date: Jan 2008
Location: florida
Posts: 235
Trader Feedback: 0
Default

dang and im finally selling my fat in a couple of days
infinity888 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2008, 06:01 PM   #8
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

It should work on the slim, although I can't test.
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2008, 09:58 PM   #9

 
Mr_Shizzy's Avatar
 
Join Date: Aug 2007
Posts: 567
Trader Feedback: 0
Default

This is awesome !

thanks Art.
__________________
PSP MODEL: PSP SLIM 2000 TA-085v2
Custom Firmware: 5.50 GEN-D2
Mr_Shizzy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2008, 11:02 PM   #10
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

Thanks, there is an update due soon.

*Recording time display
*Free Memory Stick space monitor
*Folder & File checking
*Wave graph more responsive

Cheers, Art.
__________________
http://www.freewebs.com/defxev/
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2008, 05:33 AM   #11
 
Join Date: May 2008
Posts: 35
Trader Feedback: 0
Default

Great!
zhpenn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2008, 05:50 AM   #12
 
infinity888's Avatar
 
Join Date: Jan 2008
Location: florida
Posts: 235
Trader Feedback: 0
Default

very nice i just tested it on a psp slim with 5.00m33-3 and it worked great.

I created the folder psp/music because newer firmwares put the music folder in the root of the ms.

And every thing worked fine! I love how once your done you can go to music in the xmb and listen to the file you recorded.

Finaly i have some good brew made by ART on my slim. Looking forward to the update.
infinity888 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2008, 05:56 AM   #13
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

There's the update in the first post.
I've used the MUSIC folder at MS root now, with an Audio Mechanica subfolder.
Good to hear it's ok on the slim, thx.
Quote:
I love how once your done you can go to music in the xmb and listen to the file you recorded.
I like not having to bother coding another player
I might like to do the recording monitor though... playing through headphones while recording.
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2008, 06:08 AM   #14
 
Join Date: Feb 2008
Posts: 16
Trader Feedback: 0
Default

It can't use UsbMic(PSP-240).

How to use it: (please google cache this: )
javascript:alert("htt"+"p ://psp"+"."+"4mac"+".j"+"p/i"+"ndex."+"php"+"/"+"option=com_smf&Itemid= 26&topic=322.0");
This is written in japanese.

sorry, I can't speak english well.

Last edited by masaking; 11-03-2008 at 07:09 AM.. Reason: Automerged Doublepost
masaking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2008, 06:18 AM   #15
 
infinity888's Avatar
 
Join Date: Jan 2008
Location: florida
Posts: 235
Trader Feedback: 0
Default

Thank you very much Art. One question with the ms space check, is it just a monitor or will the app stop recording if space is to low. To prevent any corruption?
infinity888 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2008, 12:42 PM   #16
Local Tech
 
joseph10444's Avatar
 
Join Date: Oct 2007
Real First Name: Joe
Location: home
Just Played: rockband
Posts: 1,822
Trader Feedback: 0
Default

thank you so miuch
joseph10444 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2008, 01:34 PM   #17
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

Quote:
Thank you very much Art. One question with the ms space check, is it just a monitor or will the app stop recording if space is to low. To prevent any corruption?
The recording will auto stop when there is any less than a full Megabyte left.
-=Double Post Merge =-
Quote:
Originally Posted by masaking View Post
It can't use UsbMic(PSP-240).

How to use it: (please google cache this: )
javascript:alert("htt"+"p ://psp"+"."+"4mac"+".j"+"p/i"+"ndex."+"php"+"/"+"option=com_smf&Itemid= 26&topic=322.0");
This is written in japanese.

sorry, I can't speak english well.
I'd love to be able to use the Talkman (PSP-240), and I actually have one to test with.
That link doesn't appear to work???
__________________
http://www.freewebs.com/defxev/

Last edited by Art; 11-03-2008 at 01:37 PM.. Reason: Automerged Doublepost
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2008, 01:40 PM   #18
 
Korlithiel's Avatar
 
Join Date: Aug 2006
Posts: 454
Trader Feedback: 0
Default

Makes me wish my SOCOM headset hadn't died, since this could be really useful. Guess this means I need to scrounge around this weekend to see if I can find one for sale somewhere.
Korlithiel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-04-2008, 01:52 AM   #19
 
Join Date: Feb 2008
Posts: 16
Trader Feedback: 0
Default

I am sorry to write source code.
I can't write URL here.(it is necessary to write to BBS more than 10 times?)

I'm a Japanese.
I am sorry I can't speak English well...


"htt"+"p ://psp"+"."+"4mac"+".j"+"p/i"+"ndex."+"php"+"/"+"option=com_smf&Ite mid= 26&topic=322.0" of googlecache:

リモコン経由ヘッドセットの音声入力方法はある程度判 明していますが、
USBマイクの方は調べた所、PIDすら見つかってな い(?)様なので、
3.93のskype関連ファイル(skype_ve .prx)を解析し、簡単なサンプルを作成して、動作 確認しました。
sceUsbMicライブラリのプロトタイプはsce Audioライブラリとさほど変わらなさそうです。
以下のコードを参考に各々カスタマイズし て下さい。
簡素化するため、エラー処理等は抜いてありますが、実 装する際には返り値をチェックするように して下さい。


コード(code) :
//ユーザーモード(User mode)
#include <pspuser.h>
#include <pspusb.h>
#include <psputility.h>

//USBプロダクトID USB Product ID
#define PSP_USBMIC_PID 0x025b

//USB各ドライバ名定義
//#define PSP_USBBUS_DRIVERNAME "USBBusDriver" <pspusb.h> included
#define PSP_USBACCBASE_DRIVERNAME "USBAccBaseDriver"
#define PSP_USBMIC_DRIVERNAME "USBMicDriver"

extern "C" {
int sceUsbWaitState(u32 state, s32 waitmode, u32 *timeout);
}

#define INPUT_VOLUME_MAX 0x5fee

extern "C" {
int sceUsbMicInputInit(s32 Unknown1, s32 InputVolume, s32 Unknown2);
int sceUsbMicInput(s32 nSamples, s32 SamplingFrequency, void *Buffer);
int sceUsbMicInputBlocking(s3 2 nSamples, s32 SamplingFrequency, void *Buffer);
int sceUsbMicGetInputLength() ;
void sceUsbMicWaitInputEnd();
}

#define RECORDFRAMESAMPLES 0x00020000
#define INPUT_FREQUENCY 44100
#define INPUT_VOLUME INPUT_VOLUME_MAX

//マイク入力スレッド関数 (Mic input thread function)
int InputMicThreadFunc()
{
short *Buffer = NULL;
int RecordFrame = 0;

//USBモジュールの読み込み (Loading USB Module)
sceUtilityLoadUsbModule(P SP_USB_MODULE_ACC);
sceUtilityLoadUsbModule(P SP_USB_MODULE_MIC);

//各種USBドライバ開始 (Starting USB Drivers)
sceUsbStart(PSP_USBBUS_DR IVERNAME, 0, NULL);
sceUsbStart(PSP_USBACCBAS E_DRIVERNAME, 0, NULL);
sceUsbStart(PSP_USBMIC_DR IVERNAME, 0, NULL);

//マイク活性化
sceUsbActivate(PSP_USBMIC _PID);
sceUsbWaitState(PSP_USB_C ONNECTION_ESTABLISHED, 0, NULL);

//マイク初期化
sceUsbMicInputInit(0, INPUT_VOLUME, 0);

Buffer = (short *)malloc(RECORDFRAMESAMPL ES * sizeof(short) * 2);

//入力ループ開始
sceUsbMicInput(RECORDFRAM ESAMPLES, INPUT_FREQUENCY, &Buffer[RECORDFRAMESAMPLES * RecordFrame]);

while (loop_flag) {
sceUsbMicWaitInputEnd();
sceUsbMicInput(RECORDFRAM ESAMPLES, INPUT_FREQUENCY, &Buffer[RECORDFRAMESAMPLES * !RecordFrame]);
WriteSamples(&Buffer[RECORDFRAMESAMPLES * RecordFrame], RECORDFRAMESAMPLES);
RecordFrame = !RecordFrame;}

if (Buffer) {
free(Buffer);
Buffer = NULL;}

//マイク無効化
sceUsbDeactivate(PSP_USBM IC_PID);

//各種USBドライバ停止
sceUsbStop(PSP_USBMIC_DRI VERNAME, 0, NULL);
sceUsbStop(PSP_USBACCBASE _DRIVERNAME, 0, NULL);
sceUsbStop(PSP_USBBUS_DRI VERNAME, 0, NULL);

//USBモジュールの開放
sceUtilityUnloadUsbModule (PSP_USB_MODULE_MIC);
sceUtilityUnloadUsbModule (PSP_USB_MODULE_ACC);

return 0;
}


補足
1.sceUsbMicInputBlocking( )ではなぜか(Unknown reason)音飛び(Skip)が発生するので、
  解析結果と同様のsceUsbMicWaitIn putEnd()+sceUsbMicInput() を使用しています。
2.sceUsbMicInput()のRECORD FRAMESAMPLESは数バイト(Some bytes)のアライメント(Alignment)が 存在します。
  解析結果である0x200バイトの倍数(0x20 0*n bytes)や2のべき乗バイト(2^n bytes)を指定するのが良いでしょう。
masaking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-04-2008, 01:59 AM   #20
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

That's interesting,
What are all the funny characters?
__________________
http://www.freewebs.com/defxev/
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-04-2008, 02:02 AM   #21
 
Join Date: Feb 2008
Posts: 16
Trader Feedback: 0
Default

this is written in japanese.
it may be encoded Shift-JIS.
Your PC may have no japanese fonts.

Shift JIS is like UTF-8,Unicode, and so on.
masaking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-04-2008, 02:15 AM   #22
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

It looks like only the comments are affected, so assuming the code works,
I'll have a go at implementing the Talkman.

Do you know any homebrew that uses it already?
__________________
http://www.freewebs.com/defxev/
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-04-2008, 02:21 AM   #23
 
Join Date: Feb 2008
Posts: 16
Trader Feedback: 0
Default

>It looks like only the comments are affected,...
Yes, it is only the comments.

>Do you know any homebrew that uses it already?
No, there is no homebrew which uses the code.
masaking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-04-2008, 02:23 AM   #24
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

Ok, Thankyou very much, I'll give it a shot
-=Double Post Merge =-
No luck with that code unfortunately....

It looks like the device starts ok until the init command is called:
sceUsbMicWaitInputEnd();
And I get a compilation error.. undefined reference to sceUsbMicWaitInputEnd.
Same with the actual microphone input command.
Maybe there is a library needed like the Go Cam?

Last edited by Art; 11-04-2008 at 02:05 PM.. Reason: Automerged Doublepost
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-04-2008, 08:59 PM   #25
 
Join Date: Mar 2008
Location: Moscow
Posts: 159
Trader Feedback: 0
Default

Thank you very very much, I have been wondering about the possibility for an update to this for a while... you have made my day today when I see this post!

Not only Is obama elected, but I discover AM was updated
Natey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-05-2008, 12:22 AM   #26
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

Lol.. a pleasure.
I always thought it impossible to write to file, and answered that way when asked,
but guess I was mistaken.
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-05-2008, 01:38 AM   #27
 
Join Date: Feb 2008
Posts: 16
Trader Feedback: 0
Default

Japanese:
「sceUsbMicライブラリのプロトタイプはsc e Audioライブラリとさほど変わらなさそうです。 」

English:
[Prototype of sceUsbMic's library is similar to Prototype of sceAudio's library.]

I do NOT write the code... Sorry.

I'm looking forward to your job (^_^)
-=Double Post Merge =-
I found homebrew which uses UsbMic.

[Furikup PSP SIP Phone v0.1]

Its src folder has sceUsbMic.S.
Maybe it can use UsbMic.

Last edited by masaking; 11-05-2008 at 02:12 AM.. Reason: Automerged Doublepost
masaking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-05-2008, 02:24 AM   #28
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

I'll get hold of one of the authors of Furikup then.
-=Double Post Merge =-
EDIT,,,

I have found Firkup source, and included the stub file, and sceusbmic.h,
and I have had some success in that I can connect to the mic, but the
recording has some problem. I can hear my voice, but it doesn't turn out right.

I'll look at it with a fresh mind tomorrow...
__________________
http://www.freewebs.com/defxev/

Last edited by Art; 11-05-2008 at 07:23 AM.. Reason: Automerged Doublepost
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-05-2008, 07:48 AM   #29
Enter Custom Title
 

 
Join Date: Nov 2007
Real First Name: Janne
Location: Finland
Just Played: GTA IV
Posts: 844
Trader Feedback: 0
Default

Awesome! If I had known that this app has GO!Cam support, I would've started using this a long time ago instead of my wrist-watch with crappy microphone and sound recording

The sound quality is amazing compared to my watch, although I can hear some weird sound every second or so in the recording. That doesn't matter though. (It also happens with my videos recorded with the cam.)

And what's the best thing about this, it saves directly to ms0:/MUSIC/ (ms0:/PSP/MUSIC/ ?) so I can listen to the recording right away.

Thanks again, now I'll have to seriously reconsider selling my GO!Cam
JaX3RiR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-05-2008, 11:52 PM   #30
 
Join Date: Feb 2008
Posts: 16
Trader Feedback: 0
Default

I translated Japanese(a part of the code's comments) into English.
I hope to do my part.

[Somehow "sceUsbMicInputBlocki ng( )" has an unknown problem that is jumping, so you should use "sceUsbMicWaitInputEn d()" + "sceUsbMicInput()" like "skype_ve.prx".]

Please try your best!
Ganbatte kudasai.
masaking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
audio , direct , file , mechanica , recording , v7b

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 11:35 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us