music question
Moderator: Stef
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
music question
In partic sample,use this program to play .wav
if (isPlayingSample2C(AUDIO_CHANNEL1))
stopPlaySample2C(AUDIO_CHANNEL1);
else
startPlaySample2C(w_title, sizeof(w_title), AUDIO_CHANNEL1);
// 2 channels sample player Z80 driver
// it can mix 2 samples (8 bit signed) at a fixed 13 Khz rate.
#define Z80_DRIVER_2SAMPLESPLAY 2
There are many noise . How to get a high quality music?
My wav file is 8bit-mono-13312hz,use bintocs16.bat to creat sound data.
if (isPlayingSample2C(AUDIO_CHANNEL1))
stopPlaySample2C(AUDIO_CHANNEL1);
else
startPlaySample2C(w_title, sizeof(w_title), AUDIO_CHANNEL1);
// 2 channels sample player Z80 driver
// it can mix 2 samples (8 bit signed) at a fixed 13 Khz rate.
#define Z80_DRIVER_2SAMPLESPLAY 2
There are many noise . How to get a high quality music?
My wav file is 8bit-mono-13312hz,use bintocs16.bat to creat sound data.
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
After I read "uwol_quest_for_money_source_code",I have a question.
How to get uwpsgfx.vgm?
I use vgm_mm.exe,creat a new module,the window samples can add some wav into it.and I saved the new file named xx.vge. than I hit the menu "file->export->vgm file for geneisis/md ".I get the file xx.vgm
but it can't use "vgmpsgfx xx.vgm" to creat xx.h file.
How to get uwpsgfx.vgm?
I use vgm_mm.exe,creat a new module,the window samples can add some wav into it.and I saved the new file named xx.vge. than I hit the menu "file->export->vgm file for geneisis/md ".I get the file xx.vgm
but it can't use "vgmpsgfx xx.vgm" to creat xx.h file.
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
Uwol sources, sound_src/uwpsgfx.psgmod is the source data for sound effects. You would find the Mod2PSG2 by typing the name in Google. Here it is.
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
From your previous posts you seem to use a very outdated version of SGDK... I do not give any support for old version as i don't even remember what you have in them.
If you want to use SGDK efficiently please use the last version (0.91) :
http://code.google.com/p/sgdk/downloads/list
In this version you have more sound drivers, more efficient, more documentation and even a sample source which use all Z80 drivers to play sound or music...
With this version you don't need anymore to use any bintoc conversion or anything else, the makefile handle WAV files directly...
If you want to use SGDK efficiently please use the last version (0.91) :
http://code.google.com/p/sgdk/downloads/list
In this version you have more sound drivers, more efficient, more documentation and even a sample source which use all Z80 drivers to play sound or music...
With this version you don't need anymore to use any bintoc conversion or anything else, the makefile handle WAV files directly...
-
- Very interested
- Posts: 101
- Joined: Thu Sep 04, 2008 2:57 am
- Location: China
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
You should modify the makefile.gen to add your command, don't recreate your own makefile or use the makefile.gen file as reference.zhengyaxin_8bit wrote:I have installed the new version of sgdk091.
I want to create rom.map after build program.Before I add command
like is:
rom.out: $(OBJ)
$(CC) -Wl,-Map=output.map -T D:/apps/GenDev/bin/md.ld -nostdlib $(LINKOBJ) D:/apps/GenDev/bin/libgcc.a -o rom.out