![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on playing wav files for sound effects using C? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; i can play background music via MP3_Init(1); MP3_Load("mySong.mp3"); MP3_Play(); but how do i make sound effects like for punching and ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() PREMIUM Member
|
i can play background music via
MP3_Init(1); MP3_Load("mySong.mp3"); MP3_Play(); but how do i make sound effects like for punching and stuff for my game? i am starting to code in C but cant find any info on it. i am trying to play a sound everytime i hit 'X' for example. thanks in advance.
__________________
My Releases In No Particular Order: ---------------------------------- TetriAbetes 1.21 | Metroid Life 0.03 | PSP Phone Dialer 0.02 | Test Your Might | Super Turbo Turkey Puncher 3 Nort v0.4 | Star Wars: Rocks 1.02 |Color Blocks | LUAmines 0.06b | LUAmines Patch to 0.6C | LUAmines Lite: Mario Edition Super Random Card Fighter 2 Special Champion Edition Alpha V0.3 |
|
|
|
|
|
#2 |
![]() ![]() Developer in Making...
|
Give ol' OSLIB a try, its very, very useful, if your using Graphics.c/h then i would suggested switching to OSLIB, its much more awesome, and its made of pure win. I guarantee it.
__________________
NEWMy New BLOG!NEW The Wentire Worls in two Sectors.... When did I get dev statz?Spoiler for my PSP homebrewReleases:
Spoiler for Great Quotes:
|
|
|
|
|
|
#3 |
![]() ![]() ...in a dream...
|
BlachShark - You succeeded in doing everything but answering his question... Good job! </sarcasm>
dragula - libmikmod (or mikmodlib, can't remember which one is the most recent in the SVN >.<) is a module player and library supporting many formats. From their main site: (669 (Composer 669, Unis 669), AMF (DSMI Advanced Module Format), AMF (ASYLUM Music Format V1.0), APUN (APlayer), DSM (DSIK internal format), FAR (Farandole Composer), GDM (General DigiMusic), IT (Impulse Tracker), IMF (Imago Orpheus), MOD (15 and 31 instruments), MED (OctaMED), MTM (MultiTracker Module editor), OKT (Amiga Oktalyzer), S3M (Scream Tracker 3), STM (Scream Tracker), STX (Scream Tracker Music Interface Kit), ULT (UltraTracker), UNI (MikMod), XM (FastTracker 2))
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#4 | |
![]() ![]() Developer in Making...
|
Quote:
that makes sence for beginners, @Dracula, OSLIB will allow you to load and play wave files easily. 'Tis why i suggested it.
__________________
NEWMy New BLOG!NEW The Wentire Worls in two Sectors.... When did I get dev statz?Spoiler for my PSP homebrewReleases:
Spoiler for Great Quotes:
|
|
|
|
|
|
|
#5 | |
![]() ![]() ...in a dream...
|
Quote:
Rather then suggesting to completely redesign the graphics portion of his game just to implement sound playback, just do what he asks and give him a library for implementing sounds, nothing more and nothing less. No going back and changing, just adding.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
|
#6 |
![]() ![]() Developer in Making...
|
...Shouldn't you be going to bed?
(and complex? common' its much easier to use than Graphics.whatever)
__________________
NEWMy New BLOG!NEW The Wentire Worls in two Sectors.... When did I get dev statz?Spoiler for my PSP homebrewReleases:
Spoiler for Great Quotes:
|
|
|
|
|
|
#7 |
![]() ![]() PREMIUM Member
|
well i tried mikmodlib for about 2 hours, couldent get it to work,
at first it would freez my slim when i tried to play the sound, then i re-write the code and then the memory stick indicator LED would just keep blinking endlessly
__________________
My Releases In No Particular Order: ---------------------------------- TetriAbetes 1.21 | Metroid Life 0.03 | PSP Phone Dialer 0.02 | Test Your Might | Super Turbo Turkey Puncher 3 Nort v0.4 | Star Wars: Rocks 1.02 |Color Blocks | LUAmines 0.06b | LUAmines Patch to 0.6C | LUAmines Lite: Mario Edition Super Random Card Fighter 2 Special Champion Edition Alpha V0.3 |
|
|
|
|
|
#8 | |
![]() ![]() Developer
|
__________________
![]() Check out my homebrew & C tutorials at http://insomniac.0x89.org/ Coder formerly known as Insomniac197 Quote:
|
|
|
|
|
|
|
#9 | |
![]() ![]() PREMIUM Member
|
Quote:
![]() enyway looks like OSlib did the job, i just used the audio part of it. thanks for the help guys ![]() oh by the way, has anyone used Jes game engine? is it good?
__________________
My Releases In No Particular Order: ---------------------------------- TetriAbetes 1.21 | Metroid Life 0.03 | PSP Phone Dialer 0.02 | Test Your Might | Super Turbo Turkey Puncher 3 Nort v0.4 | Star Wars: Rocks 1.02 |Color Blocks | LUAmines 0.06b | LUAmines Patch to 0.6C | LUAmines Lite: Mario Edition Super Random Card Fighter 2 Special Champion Edition Alpha V0.3 Last edited by dragula96; 02-24-2008 at 09:09 AM.. |
|
|
|
|
|
|
#10 |
![]() ![]() Bush Programmer
|
I don't know why you'd worry about Mikmod for wav files when it can only use
samples of **** quality anyway. Indeed it's a good mod player, but I wouldn't use it in a game for sound effects. That DTMF dial app, and Road Dog both have source released, and clearly show an easy way to play CD quality samples, but looks like you got it sorted. |
|
|
|
|
|
#12 |
![]() ![]() Bush Programmer
|
DTMF Dial is probably the simplest:
http://dl.qj.net/DTMF-Dial-v3-source...5954/catid/203 since it doesn't have any of the other source to string samples together. You could probably find the other on QL downloads as well, it's at least posted in one of the release threads. |
|
|
|
![]() |
| Tags |
| effects , files , playing , sound , wav |
| Thread Tools | |
|
|