Package vavi.sound.mfi

Examples of vavi.sound.mfi.MfiMessage


     *
     * @param masterVolume in %
     */
    public static MfiEvent getMasterVolumeEvent(int masterVolume) {
        int realMasterVolume = (int) (masterVolume * maxMasterVolume / 100f);
        MfiMessage message = new MasterVolumeMessage(0x00, 0xff, 0xb0, realMasterVolume);
        return new MfiEvent(message, 0l);
    }
View Full Code Here


    /**
     *
     * @param start true: start, false: end
     */
    public static MfiEvent getCuePointEvent(boolean start) {
        MfiMessage message = new CuePointMessage(0x00, start ? 0x00 : 0x01);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

    static int getAudioDatumLength(Sequence sequence) {
        int audioDataLength = 0;
        Track track = sequence.getTracks()[0];
        for (int j = 0; j < track.size(); j++) {
            MfiEvent event = track.get(j);
            MfiMessage message = event.getMessage();
            if (message instanceof AudioDataMessage) {
                audioDataLength += message.getLength();
            }
        }
Debug.println("audioDataLength: " + audioDataLength);
        return audioDataLength;
    }
View Full Code Here

    private List<AudioDataMessage> getAudioDatum() {
        List<AudioDataMessage> result = new ArrayList<AudioDataMessage>();
        Track track = sequence.getTracks()[0];
        for (int j = 0; j < track.size(); j++) {
            MfiEvent event = track.get(j);
            MfiMessage message = event.getMessage();
            if (message instanceof AudioDataMessage) {
                result.add((AudioDataMessage) message);
            }
        }
        return result;
View Full Code Here

     *
     * @param masterVolume in %
     */
    public static MfiEvent getMasterVolumeEvent(int masterVolume) {
        int realMasterVolume = (int) (masterVolume * maxMasterVolume / 100f);
        MfiMessage message = new MasterVolumeMessage(0x00, 0xff, 0xb0, realMasterVolume);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

     *
     * @param masterVolume in %
     */
    public static MfiEvent getMasterVolumeEvent(int masterVolume) {
        int realMasterVolume = (int) (masterVolume * maxMasterVolume / 100f);
        MfiMessage message = new MasterVolumeMessage(0x00, 0xff, 0xb0, realMasterVolume);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

     *
     * @param adpcmVolume in %
     */
    public static MfiEvent getVolumeEvent(int adpcmVolume) {
        int realAdpcmVolume = (int) (adpcmVolume * maxAdpcmVolume / 100f);
        MfiMessage message = new AudioChannelVolumeMessage(0x00, 0x7f, 0x80, realAdpcmVolume);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

    /**
     *
     * @param pan
     */
    public static MfiEvent getPanEvent(int pan) {
        MfiMessage message = new AudioChannelPanpotMessage(0x00, 0x7f, 0x81, pan);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

        return new MfiEvent(message, 0l);
    }

    /** */
    public static MfiEvent getPlayEvent() {
        MfiMessage message = new AudioPlayMessage(0x00, 0x7f, 0x00, new byte[] { 0, 63 });
        return new MfiEvent(message, 0l);
    }
View Full Code Here

    /**
     *
     * @param start true: start, false: end
     */
    public static MfiEvent getCuePointEvent(boolean start) {
        MfiMessage message = new CuePointMessage(0x00, start ? 0x00 : 0x01);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

TOP

Related Classes of vavi.sound.mfi.MfiMessage

Copyright © 2018 www.massapicom. 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.