VLSI Solution Oy VS1103 VLSI Solution Karaoke, MIDI and ADPCM Player Source Code Documentation

Main Page | Class List | File List | Class Members | File Members | Related Pages

ui.h File Reference

User Interface common definitions - functions are still in player.c. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define NEXT_THRESHOLD   (2)
#define PREV_THRESHOLD   (-2)

Enumerations

enum  uimodetype {
  UI_MIDISOURCE, UI_MIDIFILE, UI_WAVEFILE, UI_RECORDFILE,
  UI_MIDITRANSPOSE, UI_MIDIVOLUME, UI_WAVEVOLUME, UI_MIC_VOLUME,
  UI_MIC_GAIN, UI_VOLUME, UI_ECHOMODE, UI_BASS,
  UI_TREBLE, UI_MIDI_CH1, UI_MIDI_CH2, UI_MIDI_CH3,
  UI_MIDI_CH4, UI_MIDI_CH5, UI_MIDI_CH6, UI_MIDI_CH7,
  UI_MIDI_CH8, UI_MIDI_CH9, UI_MIDI_CH10, UI_MIDI_CH11,
  UI_MIDI_CH12, UI_MIDI_CH13, UI_MIDI_CH14, UI_MIDI_CH15,
  UI_MIDI_CH16, UI_END_OF_MODES
}
 User Interface Modes. More...
enum  playingstatetype {
  PS_NORMAL = 0, PS_END_OF_SONG, PS_NEXT_SONG, PS_PREVIOUS_SONG,
  PS_CUE, PS_CUE_WAIT1003, PS_CUE_ACTION, PS_REWIND,
  PS_REW_WAIT1003, PS_FALLBACK_1, PS_FALLBACK_N, PS_RECORDING
}
 Playing states. More...

Variables

xdata uimodetype uiMode
 Current User Interface mode (Title, Volume, ...).
xdata unsigned char volume
 
  • volume: Current volume setting


Detailed Description

User Interface common definitions - functions are still in player.c.

Definition in file ui.h.


Define Documentation

#define NEXT_THRESHOLD   (2)
 

Definition at line 61 of file ui.h.

#define PREV_THRESHOLD   (-2)
 

Definition at line 62 of file ui.h.


Enumeration Type Documentation

enum playingstatetype
 

Playing states.

Todo:
safe rewind
Enumeration values:
PS_NORMAL  Continue playing, do nothing special.
PS_END_OF_SONG  Request termination of current song.
PS_NEXT_SONG  Request next song.
PS_PREVIOUS_SONG  Request previous song.
PS_CUE  Request to start fast forward.
PS_CUE_WAIT1003  WMA: wait for permission to break stream.
PS_CUE_ACTION  Just do it.
PS_REWIND  Request to start rewind (not implemented).
PS_REW_WAIT1003  WMA: wait for permission to break stream.
PS_FALLBACK_1  Start fallback to normal after ff/rew.
PS_FALLBACK_N  fallbackCount sectors to PS_NORMAL
PS_RECORDING  Recording mode.

Definition at line 43 of file ui.h.

00043              {
00044   PS_NORMAL = 0,    
00045   PS_END_OF_SONG,   
00046   PS_NEXT_SONG,     
00047   PS_PREVIOUS_SONG, 
00048   PS_CUE,           
00049   PS_CUE_WAIT1003,  
00050   PS_CUE_ACTION,    
00051   PS_REWIND,        
00052   PS_REW_WAIT1003,  
00053   PS_FALLBACK_1,    
00054   PS_FALLBACK_N,    
00055   PS_RECORDING      
00057 } playingstatetype;

enum uimodetype
 

User Interface Modes.

Enumeration values:
UI_MIDISOURCE 
UI_MIDIFILE 
UI_WAVEFILE 
UI_RECORDFILE 
UI_MIDITRANSPOSE 
UI_MIDIVOLUME 
UI_WAVEVOLUME 
UI_MIC_VOLUME 
UI_MIC_GAIN 
UI_VOLUME  Volume setting.
UI_ECHOMODE 
UI_BASS  Bass enhancer setting.
UI_TREBLE  Treble enhancer setting.
UI_MIDI_CH1 
UI_MIDI_CH2 
UI_MIDI_CH3 
UI_MIDI_CH4 
UI_MIDI_CH5 
UI_MIDI_CH6 
UI_MIDI_CH7 
UI_MIDI_CH8 
UI_MIDI_CH9 
UI_MIDI_CH10 
UI_MIDI_CH11 
UI_MIDI_CH12 
UI_MIDI_CH13 
UI_MIDI_CH14 
UI_MIDI_CH15 
UI_MIDI_CH16 
UI_END_OF_MODES  Nothing, jump go to first mode.

Definition at line 7 of file ui.h.

00007              {
00008   //UI_MODE,      
00009   UI_MIDISOURCE,
00010   UI_MIDIFILE,      
00011   UI_WAVEFILE,      
00012   UI_RECORDFILE,
00013   UI_MIDITRANSPOSE,
00014   UI_MIDIVOLUME,
00015   UI_WAVEVOLUME,
00016   UI_MIC_VOLUME,
00017   UI_MIC_GAIN,
00018   UI_VOLUME,       
00019   UI_ECHOMODE,
00020   UI_BASS,         
00021   UI_TREBLE,       
00022   UI_MIDI_CH1,
00023   UI_MIDI_CH2,
00024   UI_MIDI_CH3,
00025   UI_MIDI_CH4,
00026   UI_MIDI_CH5,
00027   UI_MIDI_CH6,
00028   UI_MIDI_CH7,
00029   UI_MIDI_CH8,
00030   UI_MIDI_CH9,
00031   UI_MIDI_CH10,
00032   UI_MIDI_CH11,
00033   UI_MIDI_CH12,
00034   UI_MIDI_CH13,
00035   UI_MIDI_CH14,
00036   UI_MIDI_CH15,
00037   UI_MIDI_CH16,
00038   UI_END_OF_MODES  
00039 } uimodetype;


Variable Documentation

xdata uimodetype uiMode
 

Current User Interface mode (Title, Volume, ...).

Definition at line 62 of file player.c.

Referenced by AvailableProcessorTime(), main(), and SelectWaveFile().

xdata unsigned char volume
 

  • volume: Current volume setting

Definition at line 71 of file player.c.

Referenced by AvailableProcessorTime(), main(), and Mp3Reset().


All software copyright 2000-2004 VLSI Solution OY. Redistribution of these software modules is limited to VLSI Solution Oy chip promotional use only. Free or commercial use of these software modules in MP3 players is ok if the product includes chip(s) from VLSI. You can request the complete (compilable) package from mp3@vlsi.fi. This exampe code is provided with good faith to assist You in code development, but under no circumstances will VLSI offer any guarantees on the usability or functionality of any example software or its fitness for any purpose.