![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 | |
![]() ![]() Bush Programmer
|
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:
Cheers, Art. Last edited by Art; 11-06-2008 at 04:26 AM.. |
|
|
|
|
|
|
#3 |
![]() ![]() Bush Programmer
|
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. |
|
|
|
|
|
#5 |
![]() ![]() Bush Programmer
|
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. |
|
|
|
|
|
#10 |
![]() ![]() Bush Programmer
|
Thanks, there is an update due soon.
*Recording time display *Free Memory Stick space monitor *Folder & File checking *Wave graph more responsive Cheers, Art. |
|
|
|
|
|
#12 |
![]() |
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. |
|
|
|
|
|
#13 | |
![]() ![]() Bush Programmer
|
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 might like to do the recording monitor though... playing through headphones while recording. |
|
|
|
|
|
|
#14 |
|
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 |
|
|
|
|
|
|
#17 | ||
![]() ![]() Bush Programmer
|
Quote:
-=Double Post Merge =- Quote:
That link doesn't appear to work??? Last edited by Art; 11-03-2008 at 01:37 PM.. Reason: Automerged Doublepost |
||
|
|
|
|
|
#19 |
|
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)を指定するのが良いでしょう。 |
|
|
|
|
|
|
#20 |
![]() ![]() Bush Programmer
|
That's interesting,
What are all the funny characters? |
|
|
|
|
|
#22 |
![]() ![]() Bush Programmer
|
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? |
|
|
|
|
|
#24 |
![]() ![]() Bush Programmer
|
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 |
|
|
|
|
|
#25 |
![]() |
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
|
|
|
|
|
|
#27 |
|
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 |
|
|
|
|
|
|
#28 |
![]() ![]() Bush Programmer
|
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... Last edited by Art; 11-05-2008 at 07:23 AM.. Reason: Automerged Doublepost |
|
|
|
|
|
#29 |
![]() Enter Custom Title
Join Date: Nov 2007
Real First Name: Janne
Location: Finland
Just Played: GTA IV
Posts: 844
Trader Feedback: 0
|
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
|
|
|
|
|
|
#30 |
|
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. |
|
|
|
|
![]() |
| Tags |
| audio , direct , file , mechanica , recording , v7b |
| Thread Tools | |
|
|