forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WAV file not read?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
Koba



Joined: 29 Sep 2005
Posts: 59

PostPosted: Sun Oct 02, 2005 9:22 am    Post subject: WAV file not read? Reply with quote

ok, i have tried two methods of grabbing the first 5 seconds of a song and putting it in a wav file for lua to play, first was windows movie maker, then sound recorder to turn it into a wav, second was audacity (mac) it edits and saves as wav, BOTH recieved an error while attempting to play in LUA, now is there a certain codec for LUA or somthing? kuz this is kind of pathetic... i like how easy lua is to learn and use, but it seems to have very tight limits...
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sun Oct 02, 2005 9:40 am    Post subject: Re: WAV file not read? Reply with quote

Koba wrote:
i like how easy lua is to learn and use, but it seems to have very tight limits...


It's still a 0.x version, so expect all kinds of strange problems, but you are invited to fix the bugs :-)

The reason for your wave problem might be, that currently PCM is supported, only. Microsoft might save WAV files in ADPCM or other WAV subformats. If you use the Microsoft sound recorder, you can convert your files and speficy the output format.
Back to top
View user's profile Send private message
Koba



Joined: 29 Sep 2005
Posts: 59

PostPosted: Sun Oct 02, 2005 11:37 am    Post subject: Reply with quote

well then, i get your point. i'll check into that, and if i knew C++ i would gladly help out, but alas, i am too lazy to take the time to learn C++, seeing as how i have never used a tutorial to learn a language before, i simply learn from experiance and help from others. and i am damn good at what i do (in time ;)) well, i'm off to work on my LUA game, ttyl
Back to top
View user's profile Send private message AIM Address
stonepimp



Joined: 23 Sep 2005
Posts: 5

PostPosted: Wed Oct 05, 2005 5:41 am    Post subject: Reply with quote

I'm having a similar issue with a 5Mb WAV file. Are there any file size limitations ? if not, what can I do to convert this horrendously large WAV file into something that I can actually use within my lua game???

what programs are out there that convert a WAV file (or OGG file as I have it in that format as well) into the correct WAV file.

SP.

PS: the file is not copyright.

PPS: what is an XM file and can I convert to that format...? Snake and AirHockey both have these music style files? any info folks?
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Wed Oct 05, 2005 6:49 am    Post subject: Reply with quote

stonepimp wrote:
I'm having a similar issue with a 5Mb WAV file. Are there any file size limitations ? if not, what can I do to convert this horrendously large WAV file into something that I can actually use within my lua game???


If you are using Windows, there is a program in multimedia called "Sound Recorder", which can load waves and with which you can save waves, for example in 8 bit mono.

stonepimp wrote:

PPS: what is an XM file and can I convert to that format...? Snake and AirHockey both have these music style files? any info folks?


http://www.google.de/search?q=xm+s3m+it+mod


Last edited by Shine on Wed Oct 05, 2005 7:11 am; edited 1 time in total
Back to top
View user's profile Send private message
stonepimp



Joined: 23 Sep 2005
Posts: 5

PostPosted: Wed Oct 05, 2005 7:01 am    Post subject: Reply with quote

Excellent - thanks Shine.

[ PS. thx for the inf on nested tables. much appreciate ! ]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group