0
0

Hi,
As I convert the Sample in second???

durata = FSOUND_Sample_GetLength(handle);

Thx ๐Ÿ˜‰

  • You must to post comments
0
0

seconds = FSOUND_Sample_GetLength(handle) / FSOUND_Sample_GetDefaults(handle)

??????????????

Help :(

  • You must to post comments
0
0

I will not answer this time, READ THE MANUAL ! ๐Ÿ‘ฟ

http://52.88.2.202/docs/HTML/FSOUND_Sa … aults.html

  • You must to post comments
0
0

Return False or True .. .Not frequency ….
๐Ÿ˜•

  • You must to post comments
0
0

Are you kidding ??

Parameters
sptr Pointer to the sample to get the default information from.
[b:3llt18kl]deffreq Pointer to value to be filled with the sample default frequency. Can be NULL.[/b:3llt18kl]
defvol Pointer to value to be filled with the sample default volume. Can be NULL.
defpan Pointer to value to be filled with the sample default pan. Can be NULL.
defpri Pointer to value to be filled with the sample default priority. Can be NULL.

  • You must to post comments
0
0

I want to receive the frequency, not to insert it…..

Example?

  • You must to post comments
0
0

[code:2bfdqmbj]int freq;
FSOUND_Sample_GetDefaults(handle,&freq) [/code:2bfdqmbj]

  • You must to post comments
0
0

[code:5hggno0n]
int freq;
FSOUND_Sample_GetDefaults(handle,&freq, NULL, NULL, NULL);
[/code:5hggno0n]

This wil save us a post saying that your code isn’t working :roll:

  • You must to post comments
0
0

[quote="KarLKoX":1gvu2zce][code:1gvu2zce]
int freq;
FSOUND_Sample_GetDefaults(handle,&freq, NULL, NULL, NULL);
[/code:1gvu2zce]

This wil save us a post saying that your code isn’t working :roll:[/quote:1gvu2zce]

THX ๐Ÿ˜‰

I’m

do I have another problem, as do I do to plan the volume?

[code:1gvu2zce]
void setvolume (char mode,char handle,int freq,int volume,int pan,int sample) {
switch (mode) {
case ‘+’:
if (volume != 255) {
volume++;
FSOUND_Sample_SetDefaults(handle,freq,volume,pan,sample);
}
else {
FSOUND_Sample_SetDefaults(handle,freq,volume,pan,sample);
}
break;
case ‘-‘:
if (volume != 0) {
volume–;
FSOUND_Sample_SetDefaults(handle,freq,volume,pan,sample);
}
else {
FSOUND_Sample_SetDefaults(handle,freq,volume,pan,sample);
}
break;
default:
break;
}
[/code:1gvu2zce]

๐Ÿ˜ณ

  • You must to post comments
Showing 8 results
Your Answer

Please first to submit.