Recent

Author Topic: to reproduce the whole folder  (Read 61170 times)

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: to reproduce the whole folder
« Reply #15 on: June 09, 2015, 11:42:13 am »
Neprofi, till now we don't have a clear idea about what are you trying to do, i. e., what kind of app you are trying to do.

If you don't show your code, we don't know what you are trying to do.

For example, why are you wanting to reproduce the whole folder? This contradicts what you are doing till now. One could expect this from a music app, but not from an app which plays sounds of words in a foreign language and in your language. It is supposed that people should play one sound at a time and carefuly pay attention on them.
« Last Edit: June 09, 2015, 12:13:31 pm by typo »

Neprofi

  • Full Member
  • ***
  • Posts: 174
Re: to reproduce the whole folder
« Reply #16 on: June 09, 2015, 04:19:54 pm »
Help me with playback. People write so I need to ask to Edit the number of replays! for example I enter in Edit 5 times the sound is played 5 times and switches the machine to another! how to do it???

Neprofi

  • Full Member
  • ***
  • Posts: 174
Re: to reproduce the whole folder
« Reply #17 on: June 09, 2015, 04:21:41 pm »
foto

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: to reproduce the whole folder
« Reply #18 on: June 09, 2015, 04:28:18 pm »
for example I enter in Edit 5 times the sound is played 5 times and switches the machine to another! how to do it???
you probably need to click "bNext" button. :-\

rvk

  • Hero Member
  • *****
  • Posts: 6171
Re: to reproduce the whole folder
« Reply #19 on: June 09, 2015, 04:33:57 pm »
You already have that code in your WMChannelEnd.
See here: http://forum.lazarus.freepascal.org/index.php/topic,28632.msg179291.html#msg179291

Code: [Select]
procedure TForm1.WMChannelEnd(var Msg: TMessage);
begin
  CurRepeat := CurRepeat + 1;
  Stop;
  if CurRepeat >= RepeatCount then Next;
  if CurRepeat < RepeatCount then play;
end;

You just need to set that RepeatCount to your SpinEdit count.

Which you already do in udRepeatCountChangingEx !!
Code: [Select]
procedure TForm1.udRepeatCountChangingEx(Sender: TObject;
  var AllowChange: Boolean; NewValue: Integer; Direction: TUpDownDirection);
begin
  FRepeatCount:=NewValue;
end;

I'm still unsure why you keep coming back to code you had already working.
« Last Edit: June 09, 2015, 04:37:12 pm by rvk »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: to reproduce the whole folder
« Reply #20 on: June 09, 2015, 04:39:15 pm »
I'm still unsure why you keep coming back to code you had already working.
Putting together pieces of a puzzle is what takes the most efforts.
It's one of the required skills for a developer.

Neprofi

  • Full Member
  • ***
  • Posts: 174
Re: to reproduce the whole folder
« Reply #21 on: June 09, 2015, 04:46:59 pm »
Guys I already it's different(( list I found in ini file, and through him, I appeal that would play the sound! how can I make that would be played the following sound?? and the quantity that you kept playing!

Neprofi

  • Full Member
  • ***
  • Posts: 174
Re: to reproduce the whole folder
« Reply #22 on: June 09, 2015, 04:52:06 pm »
HELP
« Last Edit: June 09, 2015, 09:35:45 pm by Neprofi »

Neprofi

  • Full Member
  • ***
  • Posts: 174
Re: to reproduce the whole folder
« Reply #23 on: June 09, 2015, 04:55:30 pm »
so, I create a list! and so the same code that is described in the topic on the forum! I need to change in code if I don't use Strinlist end listbox.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: to reproduce the whole folder
« Reply #24 on: June 09, 2015, 04:57:28 pm »
Please post the LFM file as text.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: to reproduce the whole folder
« Reply #25 on: June 09, 2015, 04:58:25 pm »
please start using [ code ] tags in your posts.

Neprofi

  • Full Member
  • ***
  • Posts: 174
Re: to reproduce the whole folder
« Reply #26 on: June 09, 2015, 05:37:42 pm »
So will you help??
Code: [Select]

Neprofi

  • Full Member
  • ***
  • Posts: 174
Re: to reproduce the whole folder
« Reply #27 on: June 09, 2015, 05:43:36 pm »
The same code only do not use a listbox and stringlist. can you play a song on the list from ini file! thanks for the feedback. your forum is the best)))

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: to reproduce the whole folder
« Reply #28 on: June 09, 2015, 05:45:57 pm »
Please post the contents of your INI file as text too.

Neprofi

  • Full Member
  • ***
  • Posts: 174
Re: to reproduce the whole folder
« Reply #29 on: June 09, 2015, 06:08:38 pm »
here is an example ini file


file=Sound/a.mp3
name=a
perevod=любой,некий
transk=[ə]

[1]
file=Sound/about.mp3
name=about
perevod=около
transk=[ə'baut]

[2]
file=Sound/across.mp3
name=across
perevod=поперек
transk=[ə'krɔs]

[3]
file=Sound/after.mp3
name=after
perevod=после того как
transk=['ʌ:ftə]

and so on

 

TinyPortal © 2005-2018