forked from mia/Aegisub
Fixing a file not meant to be changed last revision
Originally committed to SVN as r817.
This commit is contained in:
parent
37865943da
commit
ee3238a657
2 changed files with 5 additions and 5 deletions
|
@ -443,11 +443,11 @@ void AudioKaraoke::OnMouse(wxMouseEvent &event) {
|
||||||
Refresh(false);
|
Refresh(false);
|
||||||
}
|
}
|
||||||
// Released left button
|
// Released left button
|
||||||
else if (0&&event.LeftUp()) {
|
else if (event.LeftUp()) {
|
||||||
ReleaseMouse();
|
ReleaseMouse();
|
||||||
}
|
}
|
||||||
// Released right button; make a menu for selecting \k type
|
// Released right button; make a menu for selecting \k type
|
||||||
else if (0&&event.RightUp()) {
|
else if (event.RightUp()) {
|
||||||
ReleaseMouse();
|
ReleaseMouse();
|
||||||
|
|
||||||
AudioKaraokeTagMenu menu(this);
|
AudioKaraokeTagMenu menu(this);
|
||||||
|
|
|
@ -675,11 +675,11 @@ void SubtitlesGrid::OnAudioClip(wxCommandEvent &event) {
|
||||||
size_t spr = 65536/(provider->GetBytesPerSample()*provider->GetChannels());
|
size_t spr = 65536/(provider->GetBytesPerSample()*provider->GetChannels());
|
||||||
for(int i=start;i<end;i+=spr) {
|
for(int i=start;i<end;i+=spr) {
|
||||||
int len=(i+spr>end)?(end-i):spr;
|
int len=(i+spr>end)?(end-i):spr;
|
||||||
size_t thisbufsize=len*(provider->GetBytesPerSample()*provider->GetChannels());
|
bufsize=len*(provider->GetBytesPerSample()*provider->GetChannels());
|
||||||
void *buf = malloc(thisbufsize);
|
void *buf = malloc(bufsize);
|
||||||
if (buf) {
|
if (buf) {
|
||||||
provider->GetAudio(buf,i,len);
|
provider->GetAudio(buf,i,len);
|
||||||
outfile.write((char*)buf,thisbufsize);
|
outfile.write((char*)buf,bufsize);
|
||||||
free(buf);
|
free(buf);
|
||||||
}
|
}
|
||||||
else if (spr>128) {
|
else if (spr>128) {
|
||||||
|
|
Loading…
Reference in a new issue