Package javax.sound.sampled

Examples of javax.sound.sampled.SourceDataLine.stop()


                  line.write(myData, 0, numBytesRead);
                }
              }catch(Exception e) {}

              line.drain();
              line.stop();
            }
          }.start();

          return line;
        }else {
View Full Code Here


        }

      }
      // Stop
      line.drain();
      line.stop();
      line.close();
      din.close();
    }

  }
View Full Code Here

            }

            // Stop
            line.drain();
            line.stop();
            line.close();
            din.close();
            //96515374
        }
    }
View Full Code Here

      nBytesRead = din.read(data, 0, data.length);
      if (nBytesRead != -1) nBytesWritten = line.write(data, 0, nBytesRead);
      }
      // Stop
      line.drain();
      line.stop();
      line.close();
      din.close();
    }   
  }
}
View Full Code Here

            nBytesRead = din.read(data, 0, data.length);
            if (nBytesRead != -1) nBytesWritten = line.write(data, 0, nBytesRead);
          }
          // Stop
          line.drain();
          line.stop();
          line.close();
          din.close();
        }      
    }
View Full Code Here

    } catch (LineUnavailableException e) {
      //no-op
    } finally {
      if (sdl != null) {
        sdl.drain();
        sdl.stop();
        sdl.close();
      }
    }
  }
}
View Full Code Here

            while ((bytesRead = ais.read(data,0,data.length)) != -1) {
                line.write(data,0,bytesRead);
            }

            line.drain();
            line.stop();
            line.close();
        } catch (Exception e) {
            System.out.println(e);
        }
    }
View Full Code Here

                        line.write(temp, 0, 4);
                    }
                }
            }
            line.drain();
            line.stop();
            line.close();
if (os != null) {
os.flush();
os.close();
}
View Full Code Here

if (os != null) {
os.write(buf, 0, l);
}
        }
        line.drain();
        line.stop();
        line.close();
if (os != null) {
os.close();
}
        if (!isTest) {
View Full Code Here

if (os != null) {
os.write(buf, 0, l);
}
        }
        line.drain();
        line.stop();
        line.close();
if (os != null) {
os.close();
}
        if (!isTest) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.